From 8d6fdfa55c34f1691427c74744dc716f0bbb58a9 Mon Sep 17 00:00:00 2001 From: arturovt Date: Mon, 28 Mar 2022 13:08:12 +0300 Subject: [PATCH] Upgrade to Angular 13 --- .gitignore | 3 +- .nvmrc | 2 +- .prettierignore | 1 + README.md | 62 +++- browser-test/systemjs-setup.js | 3 +- browser-test/test.js | 51 ++- package.json | 30 +- pnpm-lock.yaml | 610 ++++++++++++++++++++------------- rollup.config.js | 39 --- rollup.config.mjs | 105 ++++++ 10 files changed, 611 insertions(+), 295 deletions(-) delete mode 100644 rollup.config.js create mode 100644 rollup.config.mjs diff --git a/.gitignore b/.gitignore index efc21352..7acea689 100644 --- a/.gitignore +++ b/.gitignore @@ -105,4 +105,5 @@ dist esm system -es2015 \ No newline at end of file +es2015 +es2020 diff --git a/.nvmrc b/.nvmrc index 32b6e495..64f5a0a6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -node \ No newline at end of file +node diff --git a/.prettierignore b/.prettierignore index e6a4ebf5..7fea5f53 100644 --- a/.prettierignore +++ b/.prettierignore @@ -11,3 +11,4 @@ karma.conf.cjs .nvmrc pnpm-lock.yaml es2015 +es2020 diff --git a/README.md b/README.md index c87c700f..1c25374c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,11 @@ A repo that tests automatic detection of upstream publishes and the publishing o Upstream repo at https://github.com/angular/angular. -### Latest Version +## Latest Version + +### @angular/common + +#### ES2015 https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-common.js @@ -20,7 +24,61 @@ https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-common.j https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-common.min.js -### Specific Version +#### ES2020 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-common.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-common.min.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-common.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-common.min.js + +### @angular/common/http + +#### ES2015 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-http.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-http.min.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-http.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-http.min.js + +#### ES2020 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-http.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-http.min.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-http.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-http.min.js + +### @angular/common/upgrade + +#### ES2015 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-upgrade.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-upgrade.min.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-upgrade.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2015/ivy/angular-upgrade.min.js + +#### ES2020 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-upgrade.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2020/ivy/angular-upgrade.min.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-upgrade.js + +https://unpkg.com/@esm-bundle/angular__common/system/es2020/ivy/angular-upgrade.min.js + +## Specific Version https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common@11.1.1/system/es2015/ivy/angular-common.js diff --git a/browser-test/systemjs-setup.js b/browser-test/systemjs-setup.js index 7492e9e6..44edd755 100644 --- a/browser-test/systemjs-setup.js +++ b/browser-test/systemjs-setup.js @@ -6,7 +6,8 @@ document.head.appendChild( "imports": { "rxjs": "https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/es2015/rxjs.min.js", "rxjs/operators": "https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/es2015/rxjs-operators.min.js", - "@angular/core": "https://cdn.jsdelivr.net/npm/@esm-bundle/angular__core/system/es2015/ivy/angular-core.js" + "@angular/core": "https://cdn.jsdelivr.net/npm/@esm-bundle/angular__core/system/es2015/ivy/angular-core.js", + "@angular/common": "/base/system/es2015/ivy/angular-common.min.js" } }`, }) diff --git a/browser-test/test.js b/browser-test/test.js index a0e4503b..d8f21ea4 100644 --- a/browser-test/test.js +++ b/browser-test/test.js @@ -1,9 +1,52 @@ describe("@esm-bundle/angular-common", () => { - it("can load the System.register es2015 bundle", () => { - return System.import("/base/system/es2015/ivy/angular-common.js"); + describe("@angular/common", () => { + ["es2015", "es2020"].forEach((ecma) => { + it(`can load the System.register ${ecma} bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-common.js` + ); + expect(m.Location).toBeDefined(); + }); + + it(`can load the System.register ${ecma} prod bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-common.min.js` + ); + expect(m.Location).toBeDefined(); + }); + }); }); - it("can load the System.register es2015 prod bundle", () => { - return System.import("/base/system/es2015/ivy/angular-common.min.js"); + describe("@angular/common/http", () => { + ["es2015", "es2020"].forEach((ecma) => { + it(`can load the System.register ${ecma} bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-http.js` + ); + expect(m.HttpClient).toBeDefined(); + }); + + it(`can load the System.register ${ecma} prod bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-http.min.js` + ); + expect(m.HttpClient).toBeDefined(); + }); + }); }); + + // TODO(artur): this should be uncommented once we have `esm-bundle/angular__upgrade`. + // describe('@angular/common/upgrade', () => { + // ['es2015', 'es2020'].forEach((ecma) => { + // it(`can load the System.register ${ecma} bundle`, async () => { + // const m = await System.import(`/base/system/${ecma}/ivy/angular-upgrade.js`); + // expect(m.HttpClient).toBeDefined(); + // }); + + // it(`can load the System.register ${ecma} prod bundle`, async () => { + // const m = await System.import(`/base/system/${ecma}/ivy/angular-upgrade.min.js`); + // expect(m.HttpClient).toBeDefined(); + // }); + // }); + // }); }); diff --git a/package.json b/package.json index 16f7687e..f8949f58 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,21 @@ "version": "12.2.16", "description": "Repo to test esm-bundle's automatic publishing", "exports": { - ".": "./es2015/ivy/angular-common.js" + ".": { + "es2015": "./es2015/ivy/angular-common.js", + "es2020": "./es2020/ivy/angular-common.js", + "default": "./es2020/ivy/angular-common.js" + }, + "./http": { + "es2015": "./es2015/ivy/angular-http.mjs", + "es2020": "./es2020/ivy/angular-http.mjs", + "default": "./es2020/ivy/angular-http.mjs" + }, + "./upgrade": { + "es2015": "./es2015/ivy/angular-upgrade.mjs", + "es2020": "./es2020/ivy/angular-upgrade.mjs", + "default": "./es2020/ivy/angular-upgrade.mjs" + } }, "type": "module", "scripts": { @@ -11,15 +25,16 @@ "test:browser": "karma start karma.conf.cjs --single-run", "debug:test:browser": "karma start karma.conf.cjs", "test:formatting": "prettier --check .", - "build": "rimraf system es2015 && rollup -c", + "build": "rimraf system es2015 es2020 && rollup -c", "format": "prettier --write .", "release": "release-it", "prepublishOnly": "pnpm build && pinst --disable", - "postinstall": "ngcc --no-tsconfig --target @angular/common --properties es2015 --first-only", + "postinstall": "husky install", "postpublish": "pinst --enable" }, "files": [ "es2015", + "es2020", "system" ], "repository": { @@ -33,10 +48,11 @@ }, "homepage": "https://github.com/esm-bundle/angular__common#readme", "devDependencies": { - "@angular/common": "12.2.16", - "@angular/compiler": "12.2.16", - "@angular/compiler-cli": "12.2.16", - "@angular/core": "^11.1.1", + "@angular/common": "13.3.0", + "@angular/compiler": "13.3.0", + "@angular/compiler-cli": "13.3.0", + "@angular/core": "13.3.0", + "@rollup/plugin-babel": "5.3.1", "concurrently": "7.0.0", "esm-bundle-scripts": "1.2.0", "husky": "7.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2de50d34..87534429 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,10 +1,11 @@ lockfileVersion: 5.3 specifiers: - '@angular/common': 12.2.16 - '@angular/compiler': 12.2.16 - '@angular/compiler-cli': 12.2.16 - '@angular/core': ^11.1.1 + '@angular/common': 13.3.0 + '@angular/compiler': 13.3.0 + '@angular/compiler-cli': 13.3.0 + '@angular/core': 13.3.0 + '@rollup/plugin-babel': 5.3.1 concurrently: 7.0.0 esm-bundle-scripts: 1.2.0 husky: 7.0.4 @@ -23,10 +24,11 @@ specifiers: typescript: 4.6.3 devDependencies: - '@angular/common': 12.2.16_@angular+core@11.1.1+rxjs@7.5.5 - '@angular/compiler': 12.2.16 - '@angular/compiler-cli': 12.2.16_a147a57f9161eded13c67d883f24abd9 - '@angular/core': 11.1.1_rxjs@7.5.5 + '@angular/common': 13.3.0_@angular+core@13.3.0+rxjs@7.5.5 + '@angular/compiler': 13.3.0 + '@angular/compiler-cli': 13.3.0_c9617b06dccf7a85fc513437b488b5e2 + '@angular/core': 13.3.0_rxjs@7.5.5 + '@rollup/plugin-babel': 5.3.1_rollup@2.70.1 concurrently: 7.0.0 esm-bundle-scripts: 1.2.0 husky: 7.0.4 @@ -46,331 +48,368 @@ devDependencies: packages: - /@angular/common/12.2.16_@angular+core@11.1.1+rxjs@7.5.5: - resolution: {integrity: sha512-FEqTXTEsnbDInqV1yFlm97Tz1OFqZS5t0TUkm8gzXRgpIce/F/jLwAg0u1VQkgOsno6cNm0xTWPoZgu85NI4ug==} - engines: {node: ^12.14.1 || >=14.0.0} + /@ampproject/remapping/2.1.2: + resolution: {integrity: sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/trace-mapping': 0.3.4 + dev: true + + /@angular/common/13.3.0_@angular+core@13.3.0+rxjs@7.5.5: + resolution: {integrity: sha512-yl09TWBmz++Z3MKjzZIwU2wZHiedCn1DjGILjjNXegHFOfINRHiqLhHca4kGWFcTsdvcuEhd9Hk9JATqi45rjg==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} peerDependencies: - '@angular/core': 12.2.16 - rxjs: ^6.5.3 || ^7.0.0 + '@angular/core': 13.3.0 + rxjs: ^6.5.3 || ^7.4.0 dependencies: - '@angular/core': 11.1.1_rxjs@7.5.5 + '@angular/core': 13.3.0_rxjs@7.5.5 rxjs: 7.5.5 tslib: 2.3.0 dev: true - /@angular/compiler-cli/12.2.16_a147a57f9161eded13c67d883f24abd9: - resolution: {integrity: sha512-tlalh8SJvdCWbUPRUR5GamaP+wSc/GuCsoUZpSbcczGKgSlbaEVXUYtVXm8/wuT6Slk2sSEbRs7tXGF2i7qxVw==} - engines: {node: ^12.14.1 || >=14.0.0} + /@angular/compiler-cli/13.3.0_c9617b06dccf7a85fc513437b488b5e2: + resolution: {integrity: sha512-f9m55YejHJNIDTwHyGwf3wn5AvZepDfdAgeJP0Re4XmO1mf/Z9Ob5mJP5Q1yLNhqk0DlURWsZ1CbJqufPXMTbQ==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} hasBin: true peerDependencies: - '@angular/compiler': 12.2.16 - typescript: '>=4.2.3 <4.4' + '@angular/compiler': 13.3.0 + typescript: '>=4.4.2 <4.7' dependencies: - '@angular/compiler': 12.2.16 - '@babel/core': 7.12.10 - '@babel/types': 7.12.12 - canonical-path: 1.0.0 + '@angular/compiler': 13.3.0 + '@babel/core': 7.17.8 chokidar: 3.5.1 convert-source-map: 1.7.0 dependency-graph: 0.11.0 - magic-string: 0.25.7 - minimist: 1.2.5 + magic-string: 0.26.1 reflect-metadata: 0.1.13 semver: 7.3.5 - source-map: 0.6.1 sourcemap-codec: 1.4.8 tslib: 2.3.0 typescript: 4.6.3 - yargs: 17.0.1 + yargs: 17.4.0 transitivePeerDependencies: - supports-color dev: true - /@angular/compiler/12.2.16: - resolution: {integrity: sha512-nsYEw+yu8QyeqPf9nAmG419i1mtGM4v8+U+S3eQHQFXTgJzLymMykWHYu2ETdjUpNSLK6xcIQDBWtWnWSfJjAA==} - engines: {node: ^12.14.1 || >=14.0.0} + /@angular/compiler/13.3.0: + resolution: {integrity: sha512-oeUvaBOVpey2G1I5fWZa3JcyRuBQ3dAeRay5UtQhu1Xw2L8jd2tYkbZb1XOgP9J1/Ma4LO62pjSaOpR2EtO5ww==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} dependencies: tslib: 2.3.0 dev: true - /@angular/core/11.1.1_rxjs@7.5.5: - resolution: {integrity: sha512-yBBLekXeDviZ+KW3DmGeOK0CK/yQ9gCy2uHY47KUDI4UTRRLz0NI5nS9NdKwk5bpCPId6ZPNsJtHPBFXRhAnNA==} + /@angular/core/13.3.0_rxjs@7.5.5: + resolution: {integrity: sha512-ZnuIMEK8YFBtthNqrxapYolMp6qRy4Yp/VG+M11YNiuBp/BoYYDjTaknwO8vu36Cn6372zWjcibsknkZMjdBkg==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} peerDependencies: - rxjs: ^6.5.3 - zone.js: ^0.10.2 || ^0.11.3 + rxjs: ^6.5.3 || ^7.4.0 + zone.js: ~0.11.4 dependencies: rxjs: 7.5.5 - tslib: 2.1.0 + tslib: 2.3.0 dev: true /@babel/code-frame/7.12.11: resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==} dependencies: - '@babel/highlight': 7.10.4 + '@babel/highlight': 7.16.10 dev: true - /@babel/core/7.12.10: - resolution: {integrity: sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w==} + /@babel/code-frame/7.16.7: + resolution: {integrity: sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.12.11 - '@babel/generator': 7.12.11 - '@babel/helper-module-transforms': 7.12.1 - '@babel/helpers': 7.12.5 - '@babel/parser': 7.12.11 - '@babel/template': 7.12.7 - '@babel/traverse': 7.12.12 - '@babel/types': 7.12.12 + '@babel/highlight': 7.16.10 + dev: true + + /@babel/compat-data/7.17.7: + resolution: {integrity: sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/core/7.17.8: + resolution: {integrity: sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.1.2 + '@babel/code-frame': 7.16.7 + '@babel/generator': 7.17.7 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.8 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helpers': 7.17.8 + '@babel/parser': 7.17.8 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.3 + '@babel/types': 7.17.0 convert-source-map: 1.7.0 debug: 4.3.3 gensync: 1.0.0-beta.2 json5: 2.1.3 - lodash: 4.17.21 - semver: 5.7.1 - source-map: 0.5.7 + semver: 6.3.0 transitivePeerDependencies: - supports-color dev: true - /@babel/generator/7.12.11: - resolution: {integrity: sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==} + /@babel/generator/7.17.7: + resolution: {integrity: sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 jsesc: 2.5.2 source-map: 0.5.7 dev: true - /@babel/helper-function-name/7.12.11: - resolution: {integrity: sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==} + /@babel/helper-compilation-targets/7.17.7_@babel+core@7.17.8: + resolution: {integrity: sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/compat-data': 7.17.7 + '@babel/core': 7.17.8 + '@babel/helper-validator-option': 7.16.7 + browserslist: 4.20.2 + semver: 6.3.0 + dev: true + + /@babel/helper-environment-visitor/7.16.7: + resolution: {integrity: sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-get-function-arity': 7.12.10 - '@babel/template': 7.12.7 - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true - /@babel/helper-get-function-arity/7.12.10: - resolution: {integrity: sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag==} + /@babel/helper-function-name/7.16.7: + resolution: {integrity: sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/helper-get-function-arity': 7.16.7 + '@babel/template': 7.16.7 + '@babel/types': 7.17.0 dev: true - /@babel/helper-member-expression-to-functions/7.12.7: - resolution: {integrity: sha512-DCsuPyeWxeHgh1Dus7APn7iza42i/qXqiFPWyBDdOFtvS581JQePsc1F/nD+fHrcswhLlRc2UpYS1NwERxZhHw==} + /@babel/helper-get-function-arity/7.16.7: + resolution: {integrity: sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true - /@babel/helper-module-imports/7.12.5: - resolution: {integrity: sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA==} + /@babel/helper-hoist-variables/7.16.7: + resolution: {integrity: sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true - /@babel/helper-module-transforms/7.12.1: - resolution: {integrity: sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==} + /@babel/helper-module-imports/7.16.7: + resolution: {integrity: sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-module-imports': 7.12.5 - '@babel/helper-replace-supers': 7.12.11 - '@babel/helper-simple-access': 7.12.1 - '@babel/helper-split-export-declaration': 7.12.11 - '@babel/helper-validator-identifier': 7.12.11 - '@babel/template': 7.12.7 - '@babel/traverse': 7.12.12 - '@babel/types': 7.12.12 - lodash: 4.17.21 - transitivePeerDependencies: - - supports-color + '@babel/types': 7.17.0 dev: true - /@babel/helper-optimise-call-expression/7.12.10: - resolution: {integrity: sha512-4tpbU0SrSTjjt65UMWSrUOPZTsgvPgGG4S8QSTNHacKzpS51IVWGDj0yCwyeZND/i+LSN2g/O63jEXEWm49sYQ==} + /@babel/helper-module-transforms/7.17.7: + resolution: {integrity: sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-simple-access': 7.17.7 + '@babel/helper-split-export-declaration': 7.16.7 + '@babel/helper-validator-identifier': 7.16.7 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.3 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color dev: true /@babel/helper-plugin-utils/7.10.4: resolution: {integrity: sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==} dev: true - /@babel/helper-replace-supers/7.12.11: - resolution: {integrity: sha512-q+w1cqmhL7R0FNzth/PLLp2N+scXEK/L2AHbXUyydxp828F4FEa5WcVoqui9vFRiHDQErj9Zof8azP32uGVTRA==} + /@babel/helper-simple-access/7.17.7: + resolution: {integrity: sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-member-expression-to-functions': 7.12.7 - '@babel/helper-optimise-call-expression': 7.12.10 - '@babel/traverse': 7.12.12 - '@babel/types': 7.12.12 - transitivePeerDependencies: - - supports-color + '@babel/types': 7.17.0 dev: true - /@babel/helper-simple-access/7.12.1: - resolution: {integrity: sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA==} + /@babel/helper-split-export-declaration/7.16.7: + resolution: {integrity: sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true - /@babel/helper-split-export-declaration/7.12.11: - resolution: {integrity: sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==} - dependencies: - '@babel/types': 7.12.12 + /@babel/helper-validator-identifier/7.16.7: + resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} + engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier/7.12.11: - resolution: {integrity: sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==} + /@babel/helper-validator-option/7.16.7: + resolution: {integrity: sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==} + engines: {node: '>=6.9.0'} dev: true - /@babel/helpers/7.12.5: - resolution: {integrity: sha512-lgKGMQlKqA8meJqKsW6rUnc4MdUk35Ln0ATDqdM1a/UpARODdI4j5Y5lVfUScnSNkJcdCRAaWkspykNoFg9sJA==} + /@babel/helpers/7.17.8: + resolution: {integrity: sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.12.7 - '@babel/traverse': 7.12.12 - '@babel/types': 7.12.12 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.3 + '@babel/types': 7.17.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight/7.10.4: - resolution: {integrity: sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==} + /@babel/highlight/7.16.10: + resolution: {integrity: sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.12.11 + '@babel/helper-validator-identifier': 7.16.7 chalk: 2.4.2 js-tokens: 4.0.0 dev: true - /@babel/parser/7.12.11: - resolution: {integrity: sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==} + /@babel/parser/7.17.8: + resolution: {integrity: sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==} engines: {node: '>=6.0.0'} hasBin: true dev: true - /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.12.10: + /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.17.8: resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-bigint/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-bigint/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-class-properties/7.12.1_@babel+core@7.12.10: + /@babel/plugin-syntax-class-properties/7.12.1_@babel+core@7.17.8: resolution: {integrity: sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.12.10: + /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.17.8: resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.12.10: + /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.17.8: resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.12.10: + /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.17.8: resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.12.10: + /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.17.8: resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@babel/helper-plugin-utils': 7.10.4 dev: true - /@babel/template/7.12.7: - resolution: {integrity: sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==} + /@babel/template/7.16.7: + resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.12.11 - '@babel/parser': 7.12.11 - '@babel/types': 7.12.12 + '@babel/code-frame': 7.16.7 + '@babel/parser': 7.17.8 + '@babel/types': 7.17.0 dev: true - /@babel/traverse/7.12.12: - resolution: {integrity: sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==} + /@babel/traverse/7.17.3: + resolution: {integrity: sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.12.11 - '@babel/generator': 7.12.11 - '@babel/helper-function-name': 7.12.11 - '@babel/helper-split-export-declaration': 7.12.11 - '@babel/parser': 7.12.11 - '@babel/types': 7.12.12 + '@babel/code-frame': 7.16.7 + '@babel/generator': 7.17.7 + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-function-name': 7.16.7 + '@babel/helper-hoist-variables': 7.16.7 + '@babel/helper-split-export-declaration': 7.16.7 + '@babel/parser': 7.17.8 + '@babel/types': 7.17.0 debug: 4.3.3 globals: 11.12.0 - lodash: 4.17.21 transitivePeerDependencies: - supports-color dev: true - /@babel/types/7.12.12: - resolution: {integrity: sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==} + /@babel/types/7.17.0: + resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==} + engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.12.11 - lodash: 4.17.21 + '@babel/helper-validator-identifier': 7.16.7 to-fast-properties: 2.0.0 dev: true @@ -435,7 +474,7 @@ packages: ansi-escapes: 4.3.1 chalk: 3.0.0 exit: 0.1.2 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-changed-files: 25.5.0 jest-config: 25.5.4 jest-haste-map: 25.5.1 @@ -504,7 +543,7 @@ packages: collect-v8-coverage: 1.0.1 exit: 0.1.2 glob: 7.1.7 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 istanbul-lib-coverage: 3.0.0 istanbul-lib-instrument: 4.0.3 istanbul-lib-report: 3.0.0 @@ -530,7 +569,7 @@ packages: engines: {node: '>= 8.3'} dependencies: callsites: 3.1.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 source-map: 0.6.1 dev: true @@ -549,7 +588,7 @@ packages: engines: {node: '>= 8.3'} dependencies: '@jest/test-result': 25.5.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-haste-map: 25.5.1 jest-runner: 25.5.4 jest-runtime: 25.5.4 @@ -564,13 +603,13 @@ packages: resolution: {integrity: sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==} engines: {node: '>= 8.3'} dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@jest/types': 25.5.0 babel-plugin-istanbul: 6.0.0 chalk: 3.0.0 convert-source-map: 1.7.0 fast-json-stable-stringify: 2.1.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-haste-map: 25.5.1 jest-regex-util: 25.2.6 jest-util: 25.5.0 @@ -594,6 +633,22 @@ packages: chalk: 3.0.0 dev: true + /@jridgewell/resolve-uri/3.0.5: + resolution: {integrity: sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/sourcemap-codec/1.4.11: + resolution: {integrity: sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==} + dev: true + + /@jridgewell/trace-mapping/0.3.4: + resolution: {integrity: sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==} + dependencies: + '@jridgewell/resolve-uri': 3.0.5 + '@jridgewell/sourcemap-codec': 1.4.11 + dev: true + /@nodelib/fs.scandir/2.1.4: resolution: {integrity: sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==} engines: {node: '>= 8'} @@ -736,6 +791,22 @@ packages: '@octokit/openapi-types': 11.2.0 dev: true + /@rollup/plugin-babel/5.3.1_rollup@2.70.1: + resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} + engines: {node: '>= 10.0.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@types/babel__core': ^7.1.9 + rollup: ^1.20.0||^2.0.0 + peerDependenciesMeta: + '@types/babel__core': + optional: true + dependencies: + '@babel/helper-module-imports': 7.16.7 + '@rollup/pluginutils': 3.1.0_rollup@2.70.1 + rollup: 2.70.1 + dev: true + /@rollup/plugin-commonjs/11.1.0_rollup@2.70.1: resolution: {integrity: sha512-Ycr12N3ZPN96Fw2STurD21jMqzKwL9QuFhms3SD7KKRK7oaXUsBU9Zt0jL/rOPHiPYisI21/rXGO3jr9BnLHUA==} engines: {node: '>= 8.0.0'} @@ -816,8 +887,8 @@ packages: /@types/babel__core/7.1.12: resolution: {integrity: sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==} dependencies: - '@babel/parser': 7.12.11 - '@babel/types': 7.12.12 + '@babel/parser': 7.17.8 + '@babel/types': 7.17.0 '@types/babel__generator': 7.6.2 '@types/babel__template': 7.4.0 '@types/babel__traverse': 7.11.0 @@ -826,20 +897,20 @@ packages: /@types/babel__generator/7.6.2: resolution: {integrity: sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true /@types/babel__template/7.4.0: resolution: {integrity: sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==} dependencies: - '@babel/parser': 7.12.11 - '@babel/types': 7.12.12 + '@babel/parser': 7.17.8 + '@babel/types': 7.17.0 dev: true /@types/babel__traverse/7.11.0: resolution: {integrity: sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 dev: true /@types/cacheable-request/6.0.1: @@ -867,8 +938,8 @@ packages: resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} dev: true - /@types/estree/0.0.46: - resolution: {integrity: sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==} + /@types/estree/0.0.51: + resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} dev: true /@types/graceful-fs/4.1.4: @@ -986,6 +1057,12 @@ packages: hasBin: true dev: true + /acorn/8.7.0: + resolution: {integrity: sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + /after/0.8.2: resolution: {integrity: sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=} dev: true @@ -1027,8 +1104,8 @@ packages: engines: {node: '>=6'} dev: true - /ansi-regex/5.0.0: - resolution: {integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==} + /ansi-regex/5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} dev: true @@ -1165,20 +1242,20 @@ packages: resolution: {integrity: sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==} dev: true - /babel-jest/25.5.1_@babel+core@7.12.10: + /babel-jest/25.5.1_@babel+core@7.17.8: resolution: {integrity: sha512-9dA9+GmMjIzgPnYtkhBg73gOo/RHqPmLruP3BaGL4KEX3Dwz6pI8auSN8G8+iuEG90+GSswyKvslN+JYSaacaQ==} engines: {node: '>= 8.3'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@jest/transform': 25.5.1 '@jest/types': 25.5.0 '@types/babel__core': 7.1.12 babel-plugin-istanbul: 6.0.0 - babel-preset-jest: 25.5.0_@babel+core@7.12.10 + babel-preset-jest: 25.5.0_@babel+core@7.17.8 chalk: 3.0.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 slash: 3.0.0 transitivePeerDependencies: - supports-color @@ -1201,39 +1278,39 @@ packages: resolution: {integrity: sha512-u+/W+WAjMlvoocYGTwthAiQSxDcJAyHpQ6oWlHdFZaaN+Rlk8Q7iiwDPg2lN/FyJtAYnKjFxbn7xus4HCFkg5g==} engines: {node: '>= 8.3'} dependencies: - '@babel/template': 7.12.7 - '@babel/types': 7.12.12 + '@babel/template': 7.16.7 + '@babel/types': 7.17.0 '@types/babel__traverse': 7.11.0 dev: true - /babel-preset-current-node-syntax/0.1.4_@babel+core@7.12.10: + /babel-preset-current-node-syntax/0.1.4_@babel+core@7.17.8: resolution: {integrity: sha512-5/INNCYhUGqw7VbVjT/hb3ucjgkVHKXY7lX3ZjlN4gm565VyFmJUrJ/h+h16ECVB38R/9SF6aACydpKMLZ/c9w==} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.12.10 - '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.12.10 - '@babel/plugin-syntax-bigint': 7.8.3_@babel+core@7.12.10 - '@babel/plugin-syntax-class-properties': 7.12.1_@babel+core@7.12.10 - '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.12.10 - '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.12.10 - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.12.10 - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.12.10 - '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.12.10 - '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.12.10 - '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.12.10 - '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.12.10 - dev: true - - /babel-preset-jest/25.5.0_@babel+core@7.12.10: + '@babel/core': 7.17.8 + '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.17.8 + '@babel/plugin-syntax-bigint': 7.8.3_@babel+core@7.17.8 + '@babel/plugin-syntax-class-properties': 7.12.1_@babel+core@7.17.8 + '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.17.8 + '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.17.8 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.17.8 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.17.8 + '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.17.8 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.17.8 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.17.8 + '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.17.8 + dev: true + + /babel-preset-jest/25.5.0_@babel+core@7.17.8: resolution: {integrity: sha512-8ZczygctQkBU+63DtSOKGh7tFL0CeCuz+1ieud9lJ1WPQ9O6A1a/r+LGn6Y705PA6whHQ3T1XuB/PmpfNYf8Fw==} engines: {node: '>= 8.3'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 babel-plugin-jest-hoist: 25.5.0 - babel-preset-current-node-syntax: 0.1.4_@babel+core@7.12.10 + babel-preset-current-node-syntax: 0.1.4_@babel+core@7.17.8 dev: true /backo2/1.0.2: @@ -1327,7 +1404,7 @@ packages: camelcase: 5.3.1 chalk: 3.0.0 cli-boxes: 2.2.1 - string-width: 4.2.0 + string-width: 4.2.3 term-size: 2.2.1 type-fest: 0.8.1 widest-line: 3.1.0 @@ -1341,7 +1418,7 @@ packages: camelcase: 6.2.0 chalk: 4.1.2 cli-boxes: 2.2.1 - string-width: 4.2.0 + string-width: 4.2.3 type-fest: 0.20.2 widest-line: 3.1.0 wrap-ansi: 7.0.0 @@ -1391,6 +1468,18 @@ packages: resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} dev: true + /browserslist/4.20.2: + resolution: {integrity: sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001320 + electron-to-chromium: 1.4.96 + escalade: 3.1.1 + node-releases: 2.0.2 + picocolors: 1.0.0 + dev: true + /bser/2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} dependencies: @@ -1486,8 +1575,8 @@ packages: engines: {node: '>=10'} dev: true - /canonical-path/1.0.0: - resolution: {integrity: sha512-feylzsbDxi1gPZ1IjystzIQZagYYLvfKrSuygUCgf7z6x790VEzze5QEkdSV1U58RA7Hi0+v6fv4K54atOzATg==} + /caniuse-lite/1.0.30001320: + resolution: {integrity: sha512-MWPzG54AGdo3nWx7zHZTefseM5Y1ccM7hlQKHRqJkPozUaw3hNbBTMmLn16GG2FUzjR13Cr3NPfhIieX5PzXDA==} dev: true /capture-exit/2.0.0: @@ -1639,15 +1728,15 @@ packages: /cliui/6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} dependencies: - string-width: 4.2.0 - strip-ansi: 6.0.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 wrap-ansi: 6.2.0 dev: true /cliui/7.0.4: resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} dependencies: - string-width: 4.2.0 + string-width: 4.2.3 strip-ansi: 6.0.0 wrap-ansi: 7.0.0 dev: true @@ -1781,7 +1870,7 @@ packages: engines: {node: '>=8'} dependencies: dot-prop: 5.3.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 make-dir: 3.1.0 unique-string: 2.0.0 write-file-atomic: 3.0.3 @@ -2149,6 +2238,10 @@ packages: resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} dev: true + /electron-to-chromium/1.4.96: + resolution: {integrity: sha512-DPNjvNGPabv6FcyjzLAN4C0psN/GgD9rSGvMTuv81SeXG/EX3mCz0wiw9N1tUEnfQXYCJi3H8M0oFPRziZh7rw==} + dev: true + /emoji-regex/7.0.3: resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==} dev: true @@ -2717,7 +2810,7 @@ packages: resolution: {integrity: sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==} engines: {node: '>=12'} dependencies: - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jsonfile: 6.1.0 universalify: 2.0.0 dev: true @@ -2961,6 +3054,10 @@ packages: resolution: {integrity: sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==} dev: true + /graceful-fs/4.2.9: + resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==} + dev: true + /growl/1.10.5: resolution: {integrity: sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==} engines: {node: '>=4.x'} @@ -3505,7 +3602,7 @@ packages: /is-reference/1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: - '@types/estree': 0.0.46 + '@types/estree': 0.0.51 dev: true /is-regex/1.1.1: @@ -3609,7 +3706,7 @@ packages: resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@istanbuljs/schema': 0.1.2 istanbul-lib-coverage: 3.0.0 semver: 6.3.0 @@ -3688,14 +3785,14 @@ packages: resolution: {integrity: sha512-SZwR91SwcdK6bz7Gco8qL7YY2sx8tFJYzvg216DLihTWf+LKY/DoJXpM9nTzYakSyfblbqeU48p/p7Jzy05Atg==} engines: {node: '>= 8.3'} dependencies: - '@babel/core': 7.12.10 + '@babel/core': 7.17.8 '@jest/test-sequencer': 25.5.4 '@jest/types': 25.5.0 - babel-jest: 25.5.1_@babel+core@7.12.10 + babel-jest: 25.5.1_@babel+core@7.17.8 chalk: 3.0.0 deepmerge: 4.2.2 glob: 7.1.7 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-environment-jsdom: 25.5.0 jest-environment-node: 25.5.0 jest-get-type: 25.2.6 @@ -3783,7 +3880,7 @@ packages: '@types/graceful-fs': 4.1.4 anymatch: 3.1.1 fb-watchman: 2.0.1 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-serializer: 25.5.0 jest-util: 25.5.0 jest-worker: 25.5.0 @@ -3799,7 +3896,7 @@ packages: resolution: {integrity: sha512-9acbWEfbmS8UpdcfqnDO+uBUgKa/9hcRh983IHdM+pKmJPL77G0sWAAK0V0kr5LK3a8cSBfkFSoncXwQlRZfkQ==} engines: {node: '>= 8.3'} dependencies: - '@babel/traverse': 7.12.12 + '@babel/traverse': 7.17.3 '@jest/environment': 25.5.0 '@jest/source-map': 25.5.0 '@jest/test-result': 25.5.0 @@ -3845,11 +3942,11 @@ packages: resolution: {integrity: sha512-ezddz3YCT/LT0SKAmylVyWWIGYoKHOFOFXx3/nA4m794lfVUskMcwhip6vTgdVrOtYdjeQeis2ypzes9mZb4EA==} engines: {node: '>= 8.3'} dependencies: - '@babel/code-frame': 7.12.11 + '@babel/code-frame': 7.16.7 '@jest/types': 25.5.0 '@types/stack-utils': 1.0.1 chalk: 3.0.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 micromatch: 4.0.2 slash: 3.0.0 stack-utils: 1.0.4 @@ -3895,7 +3992,7 @@ packages: '@jest/types': 25.5.0 browser-resolve: 1.11.3 chalk: 3.0.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-pnp-resolver: 1.2.2_jest-resolve@25.5.1 read-pkg-up: 7.0.1 realpath-native: 2.0.0 @@ -3913,7 +4010,7 @@ packages: '@jest/types': 25.5.0 chalk: 3.0.0 exit: 0.1.2 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-config: 25.5.4 jest-docblock: 25.3.0 jest-haste-map: 25.5.1 @@ -3924,7 +4021,7 @@ packages: jest-runtime: 25.5.4 jest-util: 25.5.0 jest-worker: 25.5.0 - source-map-support: 0.5.19 + source-map-support: 0.5.21 throat: 5.0.0 transitivePeerDependencies: - bufferutil @@ -3950,7 +4047,7 @@ packages: collect-v8-coverage: 1.0.1 exit: 0.1.2 glob: 7.1.7 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-config: 25.5.4 jest-haste-map: 25.5.1 jest-message-util: 25.5.0 @@ -3975,19 +4072,19 @@ packages: resolution: {integrity: sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==} engines: {node: '>= 8.3'} dependencies: - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 dev: true /jest-snapshot/25.5.1: resolution: {integrity: sha512-C02JE1TUe64p2v1auUJ2ze5vcuv32tkv9PyhEb318e8XOKF7MOyXdJ7kdjbvrp3ChPLU2usI7Rjxs97Dj5P0uQ==} engines: {node: '>= 8.3'} dependencies: - '@babel/types': 7.12.12 + '@babel/types': 7.17.0 '@jest/types': 25.5.0 '@types/prettier': 1.19.1 chalk: 3.0.0 expect: 25.5.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 jest-diff: 25.5.0 jest-get-type: 25.2.6 jest-matcher-utils: 25.5.0 @@ -4005,7 +4102,7 @@ packages: dependencies: '@jest/types': 25.5.0 chalk: 3.0.0 - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 is-ci: 2.0.0 make-dir: 3.1.0 dev: true @@ -4170,7 +4267,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.6 + graceful-fs: 4.2.9 dev: true /jsprim/1.4.1: @@ -4452,6 +4549,13 @@ packages: sourcemap-codec: 1.4.8 dev: true + /magic-string/0.26.1: + resolution: {integrity: sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==} + engines: {node: '>=12'} + dependencies: + sourcemap-codec: 1.4.8 + dev: true + /make-dir/3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} @@ -4725,6 +4829,10 @@ packages: dev: true optional: true + /node-releases/2.0.2: + resolution: {integrity: sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==} + dev: true + /normalize-package-data/2.5.0: resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} dependencies: @@ -5045,7 +5153,7 @@ packages: resolution: {integrity: sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.12.11 + '@babel/code-frame': 7.16.7 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.1.6 @@ -5055,7 +5163,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.12.11 + '@babel/code-frame': 7.16.7 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.1.6 @@ -5143,6 +5251,10 @@ packages: resolution: {integrity: sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=} dev: true + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + /picomatch/2.2.2: resolution: {integrity: sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==} engines: {node: '>=8.6'} @@ -5221,7 +5333,7 @@ packages: engines: {node: '>= 8.3'} dependencies: '@jest/types': 25.5.0 - ansi-regex: 5.0.0 + ansi-regex: 5.0.1 ansi-styles: 4.3.0 react-is: 16.13.1 dev: true @@ -5721,11 +5833,11 @@ packages: peerDependencies: rollup: ^2.0.0 dependencies: - '@babel/code-frame': 7.12.11 + '@babel/code-frame': 7.16.7 jest-worker: 26.6.2 rollup: 2.70.1 serialize-javascript: 4.0.0 - terser: 5.5.1 + terser: 5.12.1 dev: true /rollup-pluginutils/2.8.2: @@ -6060,8 +6172,8 @@ packages: urix: 0.1.0 dev: true - /source-map-support/0.5.19: - resolution: {integrity: sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==} + /source-map-support/0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: buffer-from: 1.1.1 source-map: 0.6.1 @@ -6223,6 +6335,15 @@ packages: strip-ansi: 6.0.0 dev: true + /string-width/4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + /string.prototype.trimend/1.0.3: resolution: {integrity: sha512-ayH0pB+uf0U28CtjlLvL7NaohvR1amUvVZk+y3DYb0Ey2PUV5zPkkKy9+U1ndVEIXO8hNg18eIv9Jntbii+dKw==} dependencies: @@ -6261,7 +6382,14 @@ packages: resolution: {integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==} engines: {node: '>=8'} dependencies: - ansi-regex: 5.0.0 + ansi-regex: 5.0.1 + dev: true + + /strip-ansi/6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 dev: true /strip-bom/4.0.0: @@ -6351,17 +6479,18 @@ packages: dependencies: commander: 2.20.3 source-map: 0.6.1 - source-map-support: 0.5.19 + source-map-support: 0.5.21 dev: true - /terser/5.5.1: - resolution: {integrity: sha512-6VGWZNVP2KTUcltUQJ25TtNjx/XgdDsBDKGt8nN0MpydU36LmbPPcMBd2kmtZNNGVVDLg44k7GKeHHj+4zPIBQ==} + /terser/5.12.1: + resolution: {integrity: sha512-NXbs+7nisos5E+yXwAD+y7zrcTkMqb0dEJxIGtSKPdCBzopf7ni4odPul2aechpV7EXNvOudYOX2bb5tln1jbQ==} engines: {node: '>=10'} hasBin: true dependencies: + acorn: 8.7.0 commander: 2.20.3 source-map: 0.7.3 - source-map-support: 0.5.19 + source-map-support: 0.5.21 dev: true /test-exclude/6.0.0: @@ -6482,10 +6611,6 @@ packages: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true - /tslib/2.1.0: - resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==} - dev: true - /tslib/2.3.0: resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} dev: true @@ -6811,7 +6936,7 @@ packages: resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==} engines: {node: '>=8'} dependencies: - string-width: 4.2.0 + string-width: 4.2.3 dev: true /wildcard-match/5.1.2: @@ -6853,8 +6978,8 @@ packages: engines: {node: '>=8'} dependencies: ansi-styles: 4.3.0 - string-width: 4.2.0 - strip-ansi: 6.0.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 dev: true /wrap-ansi/7.0.0: @@ -6862,7 +6987,7 @@ packages: engines: {node: '>=10'} dependencies: ansi-styles: 4.3.0 - string-width: 4.2.0 + string-width: 4.2.3 strip-ansi: 6.0.0 dev: true @@ -6971,6 +7096,11 @@ packages: engines: {node: '>=10'} dev: true + /yargs-parser/21.0.1: + resolution: {integrity: sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==} + engines: {node: '>=12'} + dev: true + /yargs-unparser/1.6.0: resolution: {integrity: sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==} engines: {node: '>=6'} @@ -7025,17 +7155,17 @@ packages: yargs-parser: 20.2.9 dev: true - /yargs/17.0.1: - resolution: {integrity: sha512-xBBulfCc8Y6gLFcrPvtqKz9hz8SO0l1Ni8GgDekvBX2ro0HRQImDGnikfc33cgzcYUSncapnNcZDjVFIH3f6KQ==} + /yargs/17.4.0: + resolution: {integrity: sha512-WJudfrk81yWFSOkZYpAZx4Nt7V4xp7S/uJkX0CnxovMCt1wCE8LNftPpNuF9X/u9gN5nsD7ycYtRcDf2pL3UiA==} engines: {node: '>=12'} dependencies: cliui: 7.0.4 escalade: 3.1.1 get-caller-file: 2.0.5 require-directory: 2.1.1 - string-width: 4.2.0 + string-width: 4.2.3 y18n: 5.0.5 - yargs-parser: 20.2.9 + yargs-parser: 21.0.1 dev: true /yeast/0.1.2: diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index 975a99e0..00000000 --- a/rollup.config.js +++ /dev/null @@ -1,39 +0,0 @@ -import { terser } from "rollup-plugin-terser"; -import packageJson from "@angular/common/package.json"; - -export default [ - createConfig({ prod: false, format: "system" }), - createConfig({ prod: true, format: "system" }), - createConfig({ prod: false, format: "es" }), - createConfig({ prod: true, format: "es" }), -]; - -function createConfig({ prod, format }) { - const dir = (format === "es" ? "." : format) + "/es2015/ivy"; - - return { - input: require.resolve("@angular/common/fesm2015/common.js"), - output: { - file: `${dir}/angular-common.${prod ? "min." : ""}js`, - format, - sourcemap: true, - banner: `/* esm-bundle - @angular/common@${packageJson.version} - Ivy - ${format} format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */`, - }, - plugins: [ - prod && - terser({ - format: { - comments: /esm-bundle/, - ecma: "2015", - }, - }), - ], - external: [ - "rxjs", - "rxjs/operators", - "@angular/core", - "@angular/router", - "@angular/platform-browser", - ], - }; -} diff --git a/rollup.config.mjs b/rollup.config.mjs new file mode 100644 index 00000000..e676af58 --- /dev/null +++ b/rollup.config.mjs @@ -0,0 +1,105 @@ +import fs from "fs"; +import url from "url"; +import path from "path"; +import { babel } from "@rollup/plugin-babel"; +import { terser } from "rollup-plugin-terser"; +import { createEs2015LinkerPlugin } from "@angular/compiler-cli/linker/babel"; +import { + ConsoleLogger, + NodeJSFileSystem, + LogLevel, +} from "@angular/compiler-cli"; + +const __dirname = new url.URL(".", import.meta.url).pathname; +const packageJson = JSON.parse( + fs + .readFileSync( + path.resolve(__dirname, "node_modules/@angular/common/package.json") + ) + .toString() +); + +/** File system used by the Angular linker plugin. */ +const fileSystem = new NodeJSFileSystem(); +/** Logger used by the Angular linker plugin. */ +const logger = new ConsoleLogger(LogLevel.info); +/** + * The linker plugin is used to make output files AOT compatible, so they don't + * require the `@angular/compiler` at runtime. + */ +const linkerPlugin = createEs2015LinkerPlugin({ + fileSystem, + logger, + linkerJitMode: false, +}); + +const packages = ["2015", "2020"] + .map((ecma) => [ + { ecma, angularPackage: "@angular/common", filename: "common" }, + { ecma, angularPackage: "@angular/common/http", filename: "http" }, + { ecma, angularPackage: "@angular/common/upgrade", filename: "upgrade" }, + ]) + .flat(); + +export default packages + .map(({ ecma, angularPackage, filename }) => [ + createConfig({ + ecma, + prod: false, + format: "system", + angularPackage, + filename, + }), + createConfig({ + ecma, + prod: true, + format: "system", + angularPackage, + filename, + }), + createConfig({ ecma, prod: false, format: "es", angularPackage, filename }), + createConfig({ ecma, prod: true, format: "es", angularPackage, filename }), + ]) + .flat(); + +function createConfig({ ecma, prod, format, angularPackage, filename }) { + const dir = (format === "es" ? "." : format) + `/es${ecma}/ivy`; + + return { + input: path.join( + __dirname, + `node_modules/@angular/common/fesm${ecma}/${filename}.mjs` + ), + output: { + file: `${dir}/angular-${filename}.${prod ? "min." : ""}js`, + format, + sourcemap: true, + banner: `/* esm-bundle - ${angularPackage}@${packageJson.version} - Ivy - ${format} format - es${ecma} - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */`, + }, + plugins: [ + babel({ plugins: [linkerPlugin] }), + prod && + terser({ + format: { + ecma, + comments: /esm-bundle/, + }, + compress: { + global_defs: { + ngJitMode: false, + ngDevMode: false, + ngI18nClosureMode: false, + }, + }, + }), + ], + external: [ + "rxjs", + "rxjs/operators", + "@angular/core", + "@angular/router", + "@angular/platform-browser", + "@angular/upgrade", + ], + }; +}