From 8edfc6a8468ed353d84b1c344ed0b90431374aa1 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 7 Feb 2019 17:40:34 +0100 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20r=C3=A9arrange=20le=20fichier?= =?UTF-8?q?=20circle-ci=20(factorisation=20des=20commandes)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- circle.yml | 102 ++++++++++++------ .../embauche/external-integrations.js | 12 --- .../external/external-integrations.js | 22 ++++ cypress/integration/mon-entreprise/landing.js | 17 +++ yarn.lock | 94 +++++++++++++--- 5 files changed, 186 insertions(+), 61 deletions(-) delete mode 100644 cypress/integration/embauche/external-integrations.js create mode 100644 cypress/integration/external/external-integrations.js create mode 100644 cypress/integration/mon-entreprise/landing.js diff --git a/circle.yml b/circle.yml index eea17300d..418dacedd 100644 --- a/circle.yml +++ b/circle.yml @@ -1,8 +1,6 @@ -version: 2 -jobs: - unit-test: - docker: - - image: cypress/base:8 +version: 2.1 +commands: + install: steps: - checkout - restore_cache: @@ -15,12 +13,27 @@ jobs: key: v1-deps-{{ .Branch }}-{{ checksum "package.json" }} paths: - ~/.cache + +jobs: + unit-test: + docker: + - image: node + steps: + - install - run: | - yarn run flow-typed install + yarn run flow-typed install git config --global core.quotepath false yarn test end-to-end-test: + parameters: + site: + type: enum + enum: ['embauche', 'mon-entreprise', 'mycompanyinfrance'] + cypress_folder: + type: enum + enum: ['embauche', 'mon-entreprise'] + default: mon-entreprise docker: - image: cypress/base:8 environment: @@ -28,35 +41,33 @@ jobs: TERM: xterm CYPRESS_baseUrl: http://localhost:5000 steps: - - checkout - - restore_cache: - keys: - - v1-deps-{{ .Branch }}-{{ checksum "package.json" }} - - v1-deps-{{ .Branch }} - - v1-deps - - run: yarn install --frozen-lockfile - - save_cache: - key: v1-deps-{{ .Branch }}-{{ checksum "package.json" }} - paths: - - ~/.cache + - install - run: | yarn run compile - yarn run serve:embauche & - yarn run cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759 --spec 'cypress/integration/**/!(external-integrations.js)' + yarn run serve:<< parameters.site >> & + yarn run cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759 --spec 'cypress/integration/<< parameters.cypress_folder >>/**/*.js' - test-production: + production-end-to-end-test: + parameters: + site: + type: string + default: '' + cypress_folder: + type: enum + enum: ['embauche', 'mon-entreprise', 'external'] + default: mon-entreprise docker: - image: cypress/base:8 environment: ## this enables colors in the output TERM: xterm - CYPRESS_baseUrl: https://embauche.beta.gouv.fr + CYPRESS_baseUrl: << parameters.site >> steps: - checkout - run: npm install --save-dev cypress - - run: sleep 120 + - run: sleep 300 - run: | - if ./node_modules/.bin/cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759; + if ./node_modules/.bin/cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759 --spec 'cypress/integration/<< parameters.cypress_folder >>/**/*.js'; then echo "SUCCESS \o/" else @@ -69,16 +80,41 @@ workflows: test: jobs: - unit-test - - end-to-end-test - - test-production: + - end-to-end-test: + site: embauche + cypress_folder: embauche + # - end-to-end-test: + # site: mon-entreprise + # cypress_folder: mon-entreprise + # - end-to-end-test: + # site: mycompanyinfrance + # cypress_folder: mon-entreprise + - production-end-to-end-test: + site: 'https://embauche.beta.gouv.fr' + cypress_folder: 'embauche' + filters: + branches: + only: master + # - production-end-to-end-test: + # site: 'https://mon-entreprise.fr' + # cypress_folder: 'mon-entreprise' + # filters: + # branches: + # only: master + # - production-end-to-end-test: + # site: 'https://mycompanyinfrance.fr' + # cypress_folder: 'mon-entreprise' + # filters: + # branches: + # only: master + # - production-end-to-end-test: + # site: 'https://demo.mon-entreprise.fr' + # cypress_folder: 'embauche' + # filters: + # branches: + # only: demo + - production-end-to-end-test: + cypress_folder: 'external' filters: branches: only: master - -experimental: - notify: - webhooks: - - url: https://hooks.zapier.com/hooks/catch/3746650/qsp818/ - branches: - only: - - master diff --git a/cypress/integration/embauche/external-integrations.js b/cypress/integration/embauche/external-integrations.js deleted file mode 100644 index 3c73de01c..000000000 --- a/cypress/integration/embauche/external-integrations.js +++ /dev/null @@ -1,12 +0,0 @@ -describe('Pole emploi test', function() { - it('should display an iframe of the simulateur', function() { - cy.on('uncaught:exception', err => { - return !err.message.contains('Unexpected token <') - }) - cy.visit('https://entreprise.pole-emploi.fr/cout-salarie/') - cy.reload(true) - cy.get('#simulateurEmbauche') - .iframe() - .contains('Touché sur le compte bancaire') - }) -}) diff --git a/cypress/integration/external/external-integrations.js b/cypress/integration/external/external-integrations.js new file mode 100644 index 000000000..4541fb587 --- /dev/null +++ b/cypress/integration/external/external-integrations.js @@ -0,0 +1,22 @@ +describe('Pole emploi', function() { + it('should display an iframe of the simulateur', function() { + cy.on('uncaught:exception', err => { + return !err.message.contains('Unexpected token <') + }) + cy.visit('https://entreprise.pole-emploi.fr/cout-salarie/') + cy.get('#simulateurEmbauche') + .iframe() + .contains('Touché sur le compte bancaire') + }) +}) + +describe('URSSAF', function() { + it('should display an iframe of the simulateur', function() { + cy.visit( + 'https://www.urssaf.fr/portail/home/utile-et-pratique/estimateur-de-cotisations-2019.html' + ) + cy.get('#simulateurEmbauche') + .iframe() + .contains('Touché sur le compte bancaire') + }) +}) diff --git a/cypress/integration/mon-entreprise/landing.js b/cypress/integration/mon-entreprise/landing.js new file mode 100644 index 000000000..3f956095e --- /dev/null +++ b/cypress/integration/mon-entreprise/landing.js @@ -0,0 +1,17 @@ +cy.default +describe('Landing test', function() { + it('should not crash', function() { + cy.visit('/') + cy.contains('mon-entreprise.fr') + }) + it('should display urssaf and marianne logo', function() { + cy.visit('/') + cy.get('img[alt="logo urssaf"]').should('be.visible') + cy.get('img[alt="logo marianne"]').should('be.visible') + }) + it('should display actionnable items', function() { + cy.visit('/') + cy.contains('Créer une entreprise').should('be.') + cy.contains('Estimer les cotisations et taxes') + }) +}) diff --git a/yarn.lock b/yarn.lock index ef082151a..e8c48a07c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -988,6 +988,7 @@ "@zeit/schemas@2.6.0": version "2.6.0" resolved "https://registry.yarnpkg.com/@zeit/schemas/-/schemas-2.6.0.tgz#004e8e553b4cd53d538bd38eac7bcbf58a867fe3" + integrity sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg== abab@^2.0.0: version "2.0.0" @@ -1056,6 +1057,7 @@ ajv-keywords@^3.1.0: ajv@6.5.3: version "6.5.3" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.3.tgz#71a569d189ecf4f4f321224fecb166f071dd90f9" + integrity sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg== dependencies: fast-deep-equal "^2.0.1" fast-json-stable-stringify "^2.0.0" @@ -1231,6 +1233,7 @@ alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: ansi-align@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" + integrity sha1-w2rsy6VjuJzrVW82kPCx2eNUf38= dependencies: string-width "^2.0.0" @@ -1285,6 +1288,7 @@ aproba@^1.0.3, aproba@^1.1.1: arch@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/arch/-/arch-2.1.1.tgz#8f5c2731aa35a30929221bb0640eed65175ec84e" + integrity sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg== are-we-there-yet@~1.1.2: version "1.1.5" @@ -1296,6 +1300,7 @@ are-we-there-yet@~1.1.2: arg@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arg/-/arg-2.0.0.tgz#c06e7ff69ab05b3a4a03ebe0407fac4cba657545" + integrity sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w== argparse@^1.0.7: version "1.0.10" @@ -1654,6 +1659,7 @@ boolbase@~1.0.0: boxen@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" + integrity sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw== dependencies: ansi-align "^2.0.0" camelcase "^4.0.0" @@ -1830,6 +1836,7 @@ builtin-status-codes@^3.0.0: bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg= cacache@^10.0.4: version "10.0.4" @@ -1965,7 +1972,7 @@ chainsaw@~0.1.0: dependencies: traverse ">=0.3.0 <0.4" -chalk@2.4.1, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1: +chalk@2.4.1, chalk@^2.0.0, chalk@^2.3.0, chalk@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" dependencies: @@ -1983,7 +1990,7 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.1.0: +chalk@^2.0.1, chalk@^2.1.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -2104,6 +2111,7 @@ clean-css@4.2.x: cli-boxes@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" + integrity sha1-T6kXw+WclKAEzWH47lCdplFocUM= cli-cursor@^1.0.2: version "1.0.2" @@ -2143,6 +2151,7 @@ clipboard@^2.0.0: clipboardy@1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-1.2.3.tgz#0526361bf78724c1f20be248d428e365433c07ef" + integrity sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA== dependencies: arch "^2.1.0" execa "^0.8.0" @@ -2292,6 +2301,26 @@ component-emitter@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" +compressible@~2.0.14: + version "2.0.15" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.15.tgz#857a9ab0a7e5a07d8d837ed43fe2defff64fe212" + integrity sha512-4aE67DL33dSW9gw4CI2H/yTxqHLNcxp0yS6jB+4h+wr3e43+1z7vm0HU9qXOH8j+qjKuL8+UtkOxYQSMq60Ylw== + dependencies: + mime-db ">= 1.36.0 < 2" + +compression@1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.3.tgz#27e0e176aaf260f7f2c2813c3e440adb9f1993db" + integrity sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.14" + debug "2.6.9" + on-headers "~1.0.1" + safe-buffer "5.1.2" + vary "~1.1.2" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -2349,6 +2378,7 @@ constants-browserify@^1.0.0: content-disposition@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" + integrity sha1-DPaLud318r55YcOoUXjLhdunjLQ= content-type@~1.0.4: version "1.0.4" @@ -2474,6 +2504,7 @@ create-react-context@0.2.3: cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= dependencies: lru-cache "^4.0.1" shebang-command "^1.2.0" @@ -2760,6 +2791,7 @@ deep-equal@^1.0.1: deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== deep-is@~0.1.3: version "0.1.3" @@ -3339,6 +3371,7 @@ execa@0.10.0, execa@^0.10.0: execa@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + integrity sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= dependencies: cross-spawn "^5.0.1" get-stream "^3.0.0" @@ -3351,6 +3384,7 @@ execa@^0.7.0: execa@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" + integrity sha1-2NdrvBtVIX7RkP1t1J08d07PyNo= dependencies: cross-spawn "^5.0.1" get-stream "^3.0.0" @@ -3510,6 +3544,7 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.4: fast-url-parser@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" + integrity sha1-9K8+qfNNiicc9YrSs3WfQx8LMY0= dependencies: punycode "^1.3.2" @@ -3884,10 +3919,6 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-slash@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/glob-slash/-/glob-slash-1.0.0.tgz#fe52efa433233f74a2fe64c7abb9bc848202ab95" - glob@7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" @@ -4454,6 +4485,7 @@ inherits@2.0.1: ini@^1.3.4, ini@~1.3.0: version "1.3.5" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== inquirer@^6.1.0: version "6.2.0" @@ -5318,7 +5350,15 @@ lowlight@~1.9.1: fault "^1.0.2" highlight.js "~9.12.0" -lru-cache@^4.0.1, lru-cache@^4.1.1, lru-cache@^4.1.3: +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +lru-cache@^4.1.1, lru-cache@^4.1.3: version "4.1.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" dependencies: @@ -5439,9 +5479,15 @@ miller-rabin@^4.0.0: bn.js "^4.0.0" brorand "^1.0.1" +"mime-db@>= 1.36.0 < 2": + version "1.38.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.38.0.tgz#1a2aab16da9eb167b49c6e4df2d9c68d63d8e2ad" + integrity sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg== + mime-db@~1.33.0: version "1.33.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" + integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ== mime-db@~1.37.0: version "1.37.0" @@ -5450,6 +5496,7 @@ mime-db@~1.37.0: mime-types@2.1.18: version "2.1.18" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" + integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ== dependencies: mime-db "~1.33.0" @@ -5983,6 +6030,11 @@ on-finished@~2.3.0: dependencies: ee-first "1.1.1" +on-headers@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + integrity sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c= + once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -6282,6 +6334,7 @@ path-to-regexp@0.1.7: path-to-regexp@2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.2.1.tgz#90b617025a16381a879bc82a38d4e8bdeb2bcf45" + integrity sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ== path-to-regexp@^1.7.0: version "1.7.0" @@ -6779,6 +6832,7 @@ prr@~1.0.1: pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= psl@^1.1.24: version "1.1.29" @@ -7389,6 +7443,7 @@ regexpu-core@^4.1.3, regexpu-core@^4.2.0: registry-auth-token@3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" + integrity sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ== dependencies: rc "^1.1.6" safe-buffer "^5.0.1" @@ -7396,6 +7451,7 @@ registry-auth-token@3.3.2: registry-url@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" + integrity sha1-PU74cPc93h138M+aOBQyRE4XSUI= dependencies: rc "^1.0.1" @@ -7754,14 +7810,14 @@ serialize-javascript@^1.4.0: version "1.5.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.5.0.tgz#1aa336162c88a890ddad5384baebc93a655161fe" -serve-handler@5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/serve-handler/-/serve-handler-5.0.3.tgz#19033fa7f804c4c9447aacd6d323fa595845c878" +serve-handler@5.0.8: + version "5.0.8" + resolved "https://registry.yarnpkg.com/serve-handler/-/serve-handler-5.0.8.tgz#790dbe340dabf1d61bdbaa02ea37dcab372377a8" + integrity sha512-pqk0SChbBLLHfMIxQ55czjdiW7tj2cFy53svvP8e5VqEN/uB/QpfiTJ8k1uIYeFTDVoi+FGi5aqXScuu88bymg== dependencies: bytes "3.0.0" content-disposition "0.5.2" fast-url-parser "1.1.3" - glob-slash "1.0.0" mime-types "2.1.18" minimatch "3.0.4" path-is-inside "1.0.2" @@ -7791,8 +7847,9 @@ serve-static@1.13.2: send "0.16.2" serve@^10.0.2: - version "10.0.2" - resolved "https://registry.yarnpkg.com/serve/-/serve-10.0.2.tgz#28ae50434b87c92792ad5a4a296db2edece6474b" + version "10.1.2" + resolved "https://registry.yarnpkg.com/serve/-/serve-10.1.2.tgz#805917f2692ed5d8720bbd1981ac3974d38b7d8d" + integrity sha512-TVH35uwndRlCqSeX3grR3Ntrjx2aBTeu6sx+zTD2CzN2N/rHuEDTvxiBwWbrellJNyWiQFz2xZmoW+UxV+Zahg== dependencies: "@zeit/schemas" "2.6.0" ajv "6.5.3" @@ -7800,7 +7857,8 @@ serve@^10.0.2: boxen "1.3.0" chalk "2.4.1" clipboardy "1.2.3" - serve-handler "5.0.3" + compression "1.7.3" + serve-handler "5.0.8" update-check "1.5.2" set-blocking@^2.0.0, set-blocking@~2.0.0: @@ -8292,6 +8350,7 @@ tar@^4: term-size@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" + integrity sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk= dependencies: execa "^0.7.0" @@ -8603,6 +8662,7 @@ upath@^1.0.5: update-check@1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/update-check/-/update-check-1.5.2.tgz#2fe09f725c543440b3d7dabe8971f2d5caaedc28" + integrity sha512-1TrmYLuLj/5ZovwUS7fFd1jMH3NnFDN1y1A8dboedIDt7zs/zJMo6TwwlhYKkSeEwzleeiSBV5/3c9ufAQWDaQ== dependencies: registry-auth-token "3.3.2" registry-url "3.1.0" @@ -8917,8 +8977,9 @@ wide-align@^1.1.0: string-width "^1.0.2 || 2" widest-line@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" + version "2.0.1" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.1.tgz#7438764730ec7ef4381ce4df82fb98a53142a3fc" + integrity sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA== dependencies: string-width "^2.1.1" @@ -9157,6 +9218,7 @@ y18n@^3.2.1: yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= yallist@^3.0.0, yallist@^3.0.2: version "3.0.2"