From 3dfd1331ed1716dfa78107ced3cbe26d9eefbbc1 Mon Sep 17 00:00:00 2001 From: arturovt Date: Thu, 31 Mar 2022 08:08:55 +0300 Subject: [PATCH] Upgrade to Angular 13 --- .gitignore | 6 +- .prettierignore | 2 + README.md | 64 +++- browser-test/systemjs-setup.js | 14 + browser-test/test.js | 38 +- karma.conf.cjs | 5 +- node-test/main.test.mjs | 5 - package.json | 43 ++- pnpm-lock.yaml | 673 ++++++++++++++++++++------------- rollup.config.js | 17 - rollup.config.mjs | 110 ++++++ 11 files changed, 662 insertions(+), 315 deletions(-) create mode 100644 browser-test/systemjs-setup.js delete mode 100644 node-test/main.test.mjs delete mode 100644 rollup.config.js create mode 100644 rollup.config.mjs diff --git a/.gitignore b/.gitignore index 074a1f7..7acea68 100644 --- a/.gitignore +++ b/.gitignore @@ -105,7 +105,5 @@ dist esm system - -# fake stuff -.my-git-credentials -.my-git-credentials-backup +es2015 +es2020 diff --git a/.prettierignore b/.prettierignore index 7cd26e8..aa1e06d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -11,3 +11,5 @@ karma.conf.cjs .nvmrc .husky pnpm-lock.yaml +es2015 +es2020 diff --git a/README.md b/README.md index 160130b..57bd625 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# autopublish-template +# angular-service-worker -[![npm version](https://img.shields.io/npm/v/@esm-bundle/autopublish-template.svg?style=flat)](https://www.npmjs.com/package/@esm-bundle/autopublish-template) [![build status](https://travis-ci.com/esm-bundle/autopublish-template.svg?branch=master)](https://travis-ci.com/esm-bundle/autopublish-template) [![](https://data.jsdelivr.com/v1/package/npm/@esm-bundle/autopublish-template/badge)](https://www.jsdelivr.com/package/npm/@esm-bundle/autopublish-template) +[![npm version](https://img.shields.io/npm/v/@esm-bundle/angular__service-worker.svg?style=flat)](https://www.npmjs.com/package/@esm-bundle/angular__service-worker) [![build status](https://travis-ci.com/esm-bundle/angular__service-worker.svg?branch=master)](https://travis-ci.com/esm-bundle/angular__service-worker) [![](https://data.jsdelivr.com/v1/package/npm/@esm-bundle/angular__service-worker/badge)](https://www.jsdelivr.com/package/npm/@esm-bundle/angular__service-worker) ["What is this" blog post](https://medium.com/@joeldenning/an-esm-bundle-for-any-npm-package-5f850db0e04d) @@ -8,28 +8,70 @@ A repo that tests automatic detection of upstream publishes and the publishing of `@esm-bundle` versions of them. -Upstream repo at https://github.com/joeldenning/autopublish-template. +## Latest Version -## JS Delivr +### @angular/service-worker -https://cdn.jsdelivr.net/npm/@esm-bundle/autopublish-template/esm/index.js +#### ES2015 -https://cdn.jsdelivr.net/npm/@esm-bundle/autopublish-template/system/index.js +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-service-worker.js -## Unpkg +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-service-worker.min.js -https://unpkg.com/@esm-bundle/autopublish-template/esm/index.js +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-service-worker.js -https://unpkg.com/@esm-bundle/autopublish-template/system/index.js +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-service-worker.min.js + +#### ES2020 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-service-worker.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-service-worker.min.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-service-worker.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-service-worker.min.js + +### @angular/service-worker/config + +#### ES2015 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-config.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-config.min.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-config.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2015/ivy/angular-config.min.js + +#### ES2020 + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-config.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-config.min.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-config.js + +https://unpkg.com/@esm-bundle/angular__service-worker/system/es2020/ivy/angular-config.min.js + +## Specific Version + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker@13.3.1/system/es2015/ivy/angular-service-worker.js + +https://cdn.jsdelivr.net/npm/@esm-bundle/angular__service-worker@13.3.1/system/es2015/ivy/angular-service-worker.min.js + +https://unpkg.com/@esm-bundle/angular__service-worker@13.3.1/system/es2015/ivy/angular-service-worker.js + +https://unpkg.com/@esm-bundle/angular__service-worker@13.3.1/system/es2015/ivy/angular-service-worker.min.js ## Npm ```sh -npm install --save autopublish-template@npm:@esm-bundle/autopublish-template +npm install --save angular__service-worker@npm:@esm-bundle/angular__service-worker ``` ## Yarn ```sh -yarn add autopublish-template@npm:@esm-bundle/autopublish-template +yarn add angular__service-worker@npm:@esm-bundle/angular__service-worker ``` diff --git a/browser-test/systemjs-setup.js b/browser-test/systemjs-setup.js new file mode 100644 index 0000000..f6c6ab1 --- /dev/null +++ b/browser-test/systemjs-setup.js @@ -0,0 +1,14 @@ +document.head.appendChild( + Object.assign(document.createElement("script"), { + type: "systemjs-importmap", + textContent: ` + { + "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.min.js", + "@angular/common": "https://cdn.jsdelivr.net/npm/@esm-bundle/angular__common/system/es2015/ivy/angular-common.min.js" + } + }`, + }) +); diff --git a/browser-test/test.js b/browser-test/test.js index ac6b3b3..c012816 100644 --- a/browser-test/test.js +++ b/browser-test/test.js @@ -1,9 +1,37 @@ -describe("@esm-bundle/autopublish-template", () => { - it("can load the ESM bundle", () => { - return import("/base/esm/index.js"); +describe("@esm-bundle/angular__service-worker", () => { + describe("@angular/service-worker", () => { + ["es2015", "es2020"].forEach((ecma) => { + it(`can load the System.register ${ecma} bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-service-worker.js` + ); + expect(m.ServiceWorkerModule).toBeDefined(); + }); + + it(`can load the System.register ${ecma} prod bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-service-worker.min.js` + ); + expect(m.ServiceWorkerModule).toBeDefined(); + }); + }); }); - it("can load the System.register bundle", () => { - return System.import("/base/system/index.js"); + describe("@angular/service-worker/config", () => { + ["es2015", "es2020"].forEach((ecma) => { + it(`can load the System.register ${ecma} bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-config.js` + ); + expect(m.Generator).toBeDefined(); + }); + + it(`can load the System.register ${ecma} prod bundle`, async () => { + const m = await System.import( + `/base/system/${ecma}/ivy/angular-config.min.js` + ); + expect(m.Generator).toBeDefined(); + }); + }); }); }); diff --git a/karma.conf.cjs b/karma.conf.cjs index a9227d3..fab4b57 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -12,8 +12,9 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ - "https://cdn.jsdelivr.net/npm/systemjs/dist/system.js", - { pattern: "browser-test/**/*.js", watched: true, type: "module" }, + "https://cdn.jsdelivr.net/npm/systemjs@6.3.1/dist/system.js", + "browser-test/systemjs-setup.js", + { pattern: "browser-test/test.js", watched: true, type: "module" }, { pattern: "./**/*.*", watched: true, included: false, served: true } ], diff --git a/node-test/main.test.mjs b/node-test/main.test.mjs deleted file mode 100644 index 403a7ad..0000000 --- a/node-test/main.test.mjs +++ /dev/null @@ -1,5 +0,0 @@ -describe("@esm-bundle/autopublish-template", () => { - it("can load the esm bundle without dying", () => { - return import("../esm/index.js"); - }); -}); diff --git a/package.json b/package.json index 0ae42f1..7799b91 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,27 @@ { - "name": "@esm-bundle/autopublish-template", + "name": "@esm-bundle/angular__service-worker", "version": "20.0.20", "description": "Repo to test esm-bundle's automatic publishing", - "main": "index.js", - "module": "esm/index.js", "type": "module", + "exports": { + ".": { + "types": "./service-worker.d.ts", + "es2015": "./es2015/ivy/angular-service-worker.js", + "es2020": "./es2020/ivy/angular-service-worker.js", + "default": "./es2020/ivy/angular-service-worker.js" + }, + "./config": { + "es2015": "./es2015/ivy/angular-config.js", + "es2020": "./es2020/ivy/angular-config.js", + "default": "./es2020/ivy/angular-config.js" + } + }, "scripts": { "test": "pnpm run build && concurrently -n w: 'pnpm:test:*'", "test:browser": "karma start karma.conf.cjs --single-run", "debug:test:browser": "karma start karma.conf.cjs", - "test:unit": "mocha -r chai/register-expect 'node-test/**/*.*'", "test:formatting": "prettier --check .", - "build": "rollup -c", + "build": "rimraf system es2015 es2020 && rollup -c", "format": "prettier --write .", "release": "release-it", "prepublishOnly": "pnpm run build && pinst --disable", @@ -19,39 +29,44 @@ "postpublish": "pinst --enable" }, "files": [ - "esm", + "es2015", + "es2020", "system" ], "repository": { "type": "git", - "url": "git+https://github.com/esm-bundle/autopublish-template.git" + "url": "git+https://github.com/esm-bundle/angular__service-worker.git" }, "author": "", "license": "MIT", "bugs": { - "url": "https://github.com/esm-bundle/autopublish-template/issues" + "url": "https://github.com/esm-bundle/angular__service-worker/issues" }, "publishConfig": { "access": "public" }, - "homepage": "https://github.com/esm-bundle/autopublish-template#readme", + "homepage": "https://github.com/esm-bundle/angular__service-worker#readme", "devDependencies": { - "@rollup/plugin-commonjs": "21.0.3", + "@angular/compiler": "13.3.1", + "@angular/compiler-cli": "13.3.1", + "@angular/core": "13.3.1", + "@angular/service-worker": "13.3.1", + "@rollup/plugin-babel": "5.3.1", "@rollup/plugin-node-resolve": "13.1.3", - "autopublish-template": "20.0.20", - "chai": "4.3.4", "concurrently": "7.0.0", "husky": "7.0.4", "karma": "6.3.17", "karma-firefox-launcher": "2.1.2", "karma-jasmine": "4.0.2", - "mocha": "9.2.2", "pinst": "3.0.0", "prettier": "2.6.1", "pretty-quick": "3.1.3", "release-it": "14.13.1", "release-it-plugin-esm-bundle": "2.1.0", + "rimraf": "3.0.2", "rollup": "2.70.1", - "rollup-plugin-terser": "7.0.2" + "rollup-plugin-terser": "7.0.2", + "rxjs": "7.5.5", + "typescript": "4.6.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2ca4bc..649a526 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,63 +1,323 @@ lockfileVersion: 5.3 specifiers: - '@rollup/plugin-commonjs': 21.0.3 + '@angular/compiler': 13.3.1 + '@angular/compiler-cli': 13.3.1 + '@angular/core': 13.3.1 + '@angular/service-worker': 13.3.1 + '@rollup/plugin-babel': 5.3.1 '@rollup/plugin-node-resolve': 13.1.3 - autopublish-template: 20.0.20 - chai: 4.3.4 concurrently: 7.0.0 husky: 7.0.4 karma: 6.3.17 karma-firefox-launcher: 2.1.2 karma-jasmine: 4.0.2 - mocha: 9.2.2 pinst: 3.0.0 prettier: 2.6.1 pretty-quick: 3.1.3 release-it: 14.13.1 release-it-plugin-esm-bundle: 2.1.0 + rimraf: 3.0.2 rollup: 2.70.1 rollup-plugin-terser: 7.0.2 + rxjs: 7.5.5 + typescript: 4.6.3 devDependencies: - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 + '@angular/compiler': 13.3.1 + '@angular/compiler-cli': 13.3.1_1f55b3f8421f973be83051aba9a0edcf + '@angular/core': 13.3.1_rxjs@7.5.5 + '@angular/service-worker': 13.3.1_@angular+core@13.3.1 + '@rollup/plugin-babel': 5.3.1_rollup@2.70.1 '@rollup/plugin-node-resolve': 13.1.3_rollup@2.70.1 - autopublish-template: 20.0.20 - chai: 4.3.4 concurrently: 7.0.0 husky: 7.0.4 karma: 6.3.17 karma-firefox-launcher: 2.1.2 karma-jasmine: 4.0.2_karma@6.3.17 - mocha: 9.2.2 pinst: 3.0.0 prettier: 2.6.1 pretty-quick: 3.1.3_prettier@2.6.1 release-it: 14.13.1 release-it-plugin-esm-bundle: 2.1.0 + rimraf: 3.0.2 rollup: 2.70.1 rollup-plugin-terser: 7.0.2_rollup@2.70.1 + rxjs: 7.5.5 + typescript: 4.6.3 packages: + /@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/compiler-cli/13.3.1_1f55b3f8421f973be83051aba9a0edcf: + resolution: {integrity: sha512-dImxLUITNwODlXaLcEACw10bxTiajWEQz3sLwhT/936UH+MNtM/RyLJ0M7xDvILDqq77W3psK5/M6F3M1mUpew==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} + hasBin: true + peerDependencies: + '@angular/compiler': 13.3.1 + typescript: '>=4.4.2 <4.7' + dependencies: + '@angular/compiler': 13.3.1 + '@babel/core': 7.17.8 + chokidar: 3.5.3 + convert-source-map: 1.8.0 + dependency-graph: 0.11.0 + magic-string: 0.26.1 + reflect-metadata: 0.1.13 + semver: 7.3.5 + sourcemap-codec: 1.4.8 + tslib: 2.3.1 + typescript: 4.6.3 + yargs: 17.4.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@angular/compiler/13.3.1: + resolution: {integrity: sha512-ppJURRRDPZB6UaZctH6yBsznZXB7wZdCpfy5yo4lFE4k8rygfV80TmnrbJBZXNNq057VK48Bap1tsehFwckjog==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} + dependencies: + tslib: 2.3.1 + dev: true + + /@angular/core/13.3.1_rxjs@7.5.5: + resolution: {integrity: sha512-ZU/B9jEiZ0jadRkRL9Sb2btzqgQ0ylx380PfRQaojVIsij/EO6+jOSHIo5upMIGu/OvkggfweShJGlylCOrOXA==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} + peerDependencies: + rxjs: ^6.5.3 || ^7.4.0 + zone.js: ~0.11.4 + dependencies: + rxjs: 7.5.5 + tslib: 2.3.1 + dev: true + + /@angular/service-worker/13.3.1_@angular+core@13.3.1: + resolution: {integrity: sha512-+RcAdh8fL/g5RFY6H20+A1oVaAO8idxHltCebm7dLldTE3GNoPT4er6PFhvTSyDyjko5ZL99kyFodO6Yic1Jnw==} + engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0} + hasBin: true + peerDependencies: + '@angular/common': 13.3.1 + '@angular/core': 13.3.1 + dependencies: + '@angular/core': 13.3.1_rxjs@7.5.5 + tslib: 2.3.1 + dev: true + /@babel/code-frame/7.12.13: resolution: {integrity: sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==} dependencies: '@babel/highlight': 7.12.13 dev: true - /@babel/helper-validator-identifier/7.12.11: - resolution: {integrity: sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==} + /@babel/code-frame/7.16.7: + resolution: {integrity: sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==} + engines: {node: '>=6.9.0'} + dependencies: + '@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.8.0 + debug: 4.3.3 + gensync: 1.0.0-beta.2 + json5: 2.2.1 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/generator/7.17.7: + resolution: {integrity: sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + jsesc: 2.5.2 + source-map: 0.5.7 + dev: true + + /@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/types': 7.17.0 + dev: true + + /@babel/helper-function-name/7.16.7: + resolution: {integrity: sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-get-function-arity': 7.16.7 + '@babel/template': 7.16.7 + '@babel/types': 7.17.0 + dev: true + + /@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.17.0 + dev: true + + /@babel/helper-hoist-variables/7.16.7: + resolution: {integrity: sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-module-imports/7.16.7: + resolution: {integrity: sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-module-transforms/7.17.7: + resolution: {integrity: sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw==} + engines: {node: '>=6.9.0'} + dependencies: + '@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-simple-access/7.17.7: + resolution: {integrity: sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-split-export-declaration/7.16.7: + resolution: {integrity: sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@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-option/7.16.7: + resolution: {integrity: sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helpers/7.17.8: + resolution: {integrity: sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.3 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color dev: true /@babel/highlight/7.12.13: resolution: {integrity: sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww==} 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/highlight/7.16.10: + resolution: {integrity: sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 chalk: 2.4.2 js-tokens: 4.0.0 dev: true + /@babel/parser/7.17.8: + resolution: {integrity: sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==} + engines: {node: '>=6.0.0'} + hasBin: true + dev: true + + /@babel/template/7.16.7: + resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.7 + '@babel/parser': 7.17.8 + '@babel/types': 7.17.0 + dev: true + + /@babel/traverse/7.17.3: + resolution: {integrity: sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==} + engines: {node: '>=6.9.0'} + dependencies: + '@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 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/types/7.17.0: + resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 + to-fast-properties: 2.0.0 + dev: true + /@colors/colors/1.5.0: resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} @@ -67,6 +327,22 @@ packages: resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} 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'} @@ -187,19 +463,19 @@ packages: '@octokit/openapi-types': 11.2.0 dev: true - /@rollup/plugin-commonjs/21.0.3_rollup@2.70.1: - resolution: {integrity: sha512-ThGfwyvcLc6cfP/MWxA5ACF+LZCvsuhUq7V5134Az1oQWsiC7lNpLT4mJI86WQunK7BYmpUiHmMk2Op6OAHs0g==} - engines: {node: '>= 8.0.0'} + /@rollup/plugin-babel/5.3.1_rollup@2.70.1: + resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} + engines: {node: '>= 10.0.0'} peerDependencies: - rollup: ^2.38.3 + '@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 - commondir: 1.0.1 - estree-walker: 2.0.2 - glob: 7.2.0 - is-reference: 1.2.1 - magic-string: 0.25.7 - resolve: 1.20.0 rollup: 2.70.1 dev: true @@ -279,10 +555,6 @@ packages: resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} dev: true - /@types/estree/0.0.46: - resolution: {integrity: sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==} - dev: true - /@types/http-cache-semantics/4.0.0: resolution: {integrity: sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A==} dev: true @@ -317,10 +589,6 @@ packages: '@types/node': 14.14.31 dev: true - /@ungap/promise-all-settled/1.1.2: - resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==} - dev: true - /accepts/1.3.7: resolution: {integrity: sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==} engines: {node: '>= 0.6'} @@ -335,11 +603,6 @@ packages: string-width: 3.1.0 dev: true - /ansi-colors/4.1.1: - resolution: {integrity: sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==} - engines: {node: '>=6'} - dev: true - /ansi-escapes/4.3.1: resolution: {integrity: sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==} engines: {node: '>=8'} @@ -357,6 +620,11 @@ packages: engines: {node: '>=8'} dev: true + /ansi-regex/5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + /ansi-styles/3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -379,10 +647,6 @@ packages: picomatch: 2.2.2 dev: true - /argparse/2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - dev: true - /array-differ/3.0.0: resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==} engines: {node: '>=8'} @@ -398,10 +662,6 @@ packages: engines: {node: '>=8'} dev: true - /assertion-error/1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} - dev: true - /async-retry/1.3.3: resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} dependencies: @@ -412,10 +672,6 @@ packages: resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=} dev: true - /autopublish-template/20.0.20: - resolution: {integrity: sha512-5HHVg+HBuBE0KLPIb/Moca31u02qLE7kAXV7O/NIikxocVUlcNCoI2tALnih09h/FL/g1eyg4m6ykg7z3h9Jsg==} - dev: true - /balanced-match/1.0.0: resolution: {integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c=} dev: true @@ -495,8 +751,16 @@ packages: fill-range: 7.0.1 dev: true - /browser-stdout/1.3.1: - resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} + /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.30001322 + electron-to-chromium: 1.4.103 + escalade: 3.1.1 + node-releases: 2.0.2 + picocolors: 1.0.0 dev: true /buffer-from/1.1.1: @@ -561,16 +825,8 @@ packages: engines: {node: '>=10'} dev: true - /chai/4.3.4: - resolution: {integrity: sha512-yS5H68VYOCtN1cjfwumDSuzn/9c+yza4f3reKXlE5rUg7SFcCEy90gJvydNgOYtblyf4Zi6jIWRnXOgErta0KA==} - engines: {node: '>=4'} - dependencies: - assertion-error: 1.1.0 - check-error: 1.0.2 - deep-eql: 3.0.1 - get-func-name: 2.0.0 - pathval: 1.1.1 - type-detect: 4.0.8 + /caniuse-lite/1.0.30001322: + resolution: {integrity: sha512-neRmrmIrCGuMnxGSoh+x7zYtQFFgnSY2jaomjU56sCkTA6JINqQrxutF459JpWcWRajvoyn95sOXq4Pqrnyjew==} dev: true /chalk/2.4.2: @@ -602,10 +858,6 @@ packages: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} dev: true - /check-error/1.0.2: - resolution: {integrity: sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=} - dev: true - /chokidar/3.5.3: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} engines: {node: '>= 8.10.0'} @@ -702,10 +954,6 @@ packages: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: true - /commondir/1.0.1: - resolution: {integrity: sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=} - dev: true - /component-emitter/1.3.0: resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==} dev: true @@ -756,6 +1004,12 @@ packages: engines: {node: '>= 0.6'} dev: true + /convert-source-map/1.8.0: + resolution: {integrity: sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==} + dependencies: + safe-buffer: 5.1.2 + dev: true + /cookie/0.4.1: resolution: {integrity: sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==} engines: {node: '>= 0.6'} @@ -826,24 +1080,6 @@ packages: ms: 2.1.2 dev: true - /debug/4.3.3_supports-color@8.1.1: - resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.2 - supports-color: 8.1.1 - dev: true - - /decamelize/4.0.0: - resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} - engines: {node: '>=10'} - dev: true - /decode-uri-component/0.2.0: resolution: {integrity: sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=} engines: {node: '>=0.10'} @@ -863,13 +1099,6 @@ packages: mimic-response: 3.1.0 dev: true - /deep-eql/3.0.1: - resolution: {integrity: sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==} - engines: {node: '>=0.12'} - dependencies: - type-detect: 4.0.8 - dev: true - /deep-extend/0.6.0: resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} engines: {node: '>=4.0.0'} @@ -905,6 +1134,11 @@ packages: engines: {node: '>= 0.6'} dev: true + /dependency-graph/0.11.0: + resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} + engines: {node: '>= 0.6.0'} + dev: true + /deprecation/2.3.1: resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} dev: true @@ -913,11 +1147,6 @@ packages: resolution: {integrity: sha1-gGZJMmzqp8qjMG112YXqJ0i6kTw=} dev: true - /diff/5.0.0: - resolution: {integrity: sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==} - engines: {node: '>=0.3.1'} - dev: true - /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -949,6 +1178,10 @@ packages: resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} dev: true + /electron-to-chromium/1.4.103: + resolution: {integrity: sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg==} + dev: true + /emoji-regex/7.0.3: resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==} dev: true @@ -1024,19 +1257,10 @@ packages: engines: {node: '>=0.8.0'} dev: true - /escape-string-regexp/4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - dev: true - /estree-walker/1.0.1: resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} dev: true - /estree-walker/2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - dev: true - /eventemitter3/4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} dev: true @@ -1142,19 +1366,6 @@ packages: path-exists: 4.0.0 dev: true - /find-up/5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - dev: true - - /flat/5.0.2: - resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} - hasBin: true - dev: true - /flatted/3.2.5: resolution: {integrity: sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==} dev: true @@ -1203,15 +1414,16 @@ packages: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} dev: true + /gensync/1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + dev: true + /get-caller-file/2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} dev: true - /get-func-name/2.0.0: - resolution: {integrity: sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=} - dev: true - /get-stream/4.1.0: resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} engines: {node: '>=6'} @@ -1269,6 +1481,11 @@ packages: ini: 2.0.0 dev: true + /globals/11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + dev: true + /globby/11.0.4: resolution: {integrity: sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==} engines: {node: '>=10'} @@ -1319,11 +1536,6 @@ packages: resolution: {integrity: sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==} dev: true - /growl/1.10.5: - resolution: {integrity: sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==} - engines: {node: '>=4.x'} - dev: true - /has-flag/3.0.0: resolution: {integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0=} engines: {node: '>=4'} @@ -1346,11 +1558,6 @@ packages: function-bind: 1.1.1 dev: true - /he/1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - dev: true - /http-cache-semantics/4.1.0: resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==} dev: true @@ -1487,7 +1694,7 @@ packages: mute-stream: 0.0.8 ora: 5.4.1 run-async: 2.4.1 - rxjs: 7.2.0 + rxjs: 7.5.5 string-width: 4.2.1 strip-ansi: 6.0.0 through: 2.3.8 @@ -1594,22 +1801,11 @@ packages: engines: {node: '>=8'} dev: true - /is-plain-obj/2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} - dev: true - /is-plain-object/5.0.0: resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} engines: {node: '>=0.10.0'} dev: true - /is-reference/1.2.1: - resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - dependencies: - '@types/estree': 0.0.46 - dev: true - /is-ssh/1.3.2: resolution: {integrity: sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ==} dependencies: @@ -1667,11 +1863,10 @@ packages: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true - /js-yaml/4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + /jsesc/2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} + engines: {node: '>=4'} hasBin: true - dependencies: - argparse: 2.0.1 dev: true /json-buffer/3.0.0: @@ -1686,6 +1881,12 @@ packages: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true + /json5/2.2.1: + resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==} + engines: {node: '>=6'} + hasBin: true + dev: true + /jsonfile/6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: @@ -1777,13 +1978,6 @@ packages: p-locate: 4.1.0 dev: true - /locate-path/6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - dependencies: - p-locate: 5.0.0 - dev: true - /lodash/4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} dev: true @@ -1831,8 +2025,9 @@ packages: engines: {node: '>=6'} dev: true - /magic-string/0.25.7: - resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==} + /magic-string/0.26.1: + resolution: {integrity: sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==} + engines: {node: '>=12'} dependencies: sourcemap-codec: 1.4.8 dev: true @@ -1905,13 +2100,6 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch/4.2.1: - resolution: {integrity: sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==} - engines: {node: '>=10'} - dependencies: - brace-expansion: 1.1.11 - dev: true - /minimist/1.2.5: resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==} dev: true @@ -1923,37 +2111,6 @@ packages: minimist: 1.2.5 dev: true - /mocha/9.2.2: - resolution: {integrity: sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==} - engines: {node: '>= 12.0.0'} - hasBin: true - dependencies: - '@ungap/promise-all-settled': 1.1.2 - ansi-colors: 4.1.1 - browser-stdout: 1.3.1 - chokidar: 3.5.3 - debug: 4.3.3_supports-color@8.1.1 - diff: 5.0.0 - escape-string-regexp: 4.0.0 - find-up: 5.0.0 - glob: 7.2.0 - growl: 1.10.5 - he: 1.2.0 - js-yaml: 4.1.0 - log-symbols: 4.1.0 - minimatch: 4.2.1 - ms: 2.1.3 - nanoid: 3.3.1 - serialize-javascript: 6.0.0 - strip-json-comments: 3.1.1 - supports-color: 8.1.1 - which: 2.0.2 - workerpool: 6.2.0 - yargs: 16.2.0 - yargs-parser: 20.2.4 - yargs-unparser: 2.0.0 - dev: true - /mri/1.1.6: resolution: {integrity: sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==} engines: {node: '>=4'} @@ -1967,10 +2124,6 @@ packages: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true - /ms/2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - dev: true - /multimatch/4.0.0: resolution: {integrity: sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==} engines: {node: '>=8'} @@ -1986,12 +2139,6 @@ packages: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} dev: true - /nanoid/3.3.1: - resolution: {integrity: sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - /negotiator/0.6.2: resolution: {integrity: sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==} engines: {node: '>= 0.6'} @@ -2009,6 +2156,10 @@ packages: engines: {node: 4.x || >=6.0.0} dev: true + /node-releases/2.0.2: + resolution: {integrity: sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==} + dev: true + /normalize-path/3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} @@ -2114,13 +2265,6 @@ packages: p-try: 2.2.0 dev: true - /p-limit/3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - dependencies: - yocto-queue: 0.1.0 - dev: true - /p-locate/4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -2128,13 +2272,6 @@ packages: p-limit: 2.3.0 dev: true - /p-locate/5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - dependencies: - p-limit: 3.1.0 - dev: true - /p-try/2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} @@ -2214,8 +2351,8 @@ packages: engines: {node: '>=8'} dev: true - /pathval/1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} dev: true /picomatch/2.2.2: @@ -2362,6 +2499,10 @@ packages: resolve: 1.20.0 dev: true + /reflect-metadata/0.1.13: + resolution: {integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==} + dev: true + /registry-auth-token/4.2.1: resolution: {integrity: sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==} engines: {node: '>=6.0.0'} @@ -2527,12 +2668,16 @@ packages: tslib: 1.14.1 dev: true - /rxjs/7.2.0: - resolution: {integrity: sha512-aX8w9OpKrQmiPKfT1bqETtUr9JygIz6GZ+gql8v7CijClsP0laoFUdKzxFAoWuRdSlOdU2+crss+cMf+cqMTnw==} + /rxjs/7.5.5: + resolution: {integrity: sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==} dependencies: tslib: 2.1.0 dev: true + /safe-buffer/5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + dev: true + /safe-buffer/5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} dev: true @@ -2567,12 +2712,6 @@ packages: randombytes: 2.1.0 dev: true - /serialize-javascript/6.0.0: - resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} - dependencies: - randombytes: 2.1.0 - dev: true - /setprototypeof/1.1.1: resolution: {integrity: sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==} dev: true @@ -2646,6 +2785,11 @@ packages: source-map: 0.6.1 dev: true + /source-map/0.5.7: + resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=} + engines: {node: '>=0.10.0'} + dev: true + /source-map/0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -2708,6 +2852,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_decoder/1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: @@ -2728,6 +2881,13 @@ packages: ansi-regex: 5.0.0 dev: true + /strip-ansi/6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + /strip-final-newline/2.0.0: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} engines: {node: '>=6'} @@ -2738,11 +2898,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /strip-json-comments/3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - dev: true - /supports-color/5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -2792,6 +2947,11 @@ packages: rimraf: 3.0.2 dev: true + /to-fast-properties/2.0.0: + resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=} + engines: {node: '>=4'} + dev: true + /to-readable-stream/1.0.0: resolution: {integrity: sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==} engines: {node: '>=6'} @@ -2822,9 +2982,8 @@ packages: resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==} dev: true - /type-detect/4.0.8: - resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} - engines: {node: '>=4'} + /tslib/2.3.1: + resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==} dev: true /type-fest/0.11.0: @@ -2856,6 +3015,12 @@ packages: is-typedarray: 1.0.0 dev: true + /typescript/4.6.3: + resolution: {integrity: sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + /ua-parser-js/0.7.30: resolution: {integrity: sha512-uXEtSresNUlXQ1QL4/3dQORcGv7+J2ookOG2ybA/ga9+HYEXueT2o+8dUJQkpedsyTyCJ6jCCirRcKtdtx1kbg==} dev: true @@ -2968,10 +3133,6 @@ packages: execa: 4.1.0 dev: true - /workerpool/6.2.0: - resolution: {integrity: sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==} - dev: true - /wrap-ansi/7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -3026,24 +3187,14 @@ packages: engines: {node: '>= 6'} dev: true - /yargs-parser/20.2.4: - resolution: {integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==} - engines: {node: '>=10'} - dev: true - /yargs-parser/20.2.9: resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'} dev: true - /yargs-unparser/2.0.0: - resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} - engines: {node: '>=10'} - dependencies: - camelcase: 6.2.0 - decamelize: 4.0.0 - flat: 5.0.2 - is-plain-obj: 2.1.0 + /yargs-parser/21.0.1: + resolution: {integrity: sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==} + engines: {node: '>=12'} dev: true /yargs/16.2.0: @@ -3059,7 +3210,15 @@ packages: yargs-parser: 20.2.9 dev: true - /yocto-queue/0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} + /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.3 + y18n: 5.0.5 + yargs-parser: 21.0.1 dev: true diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index ea8d618..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,17 +0,0 @@ -import commonjs from "@rollup/plugin-commonjs"; -import { terser } from "rollup-plugin-terser"; - -function createConfig(format) { - const dir = format === "module" ? "esm" : format; - return { - input: require.resolve("autopublish-template"), - output: { - file: `${dir}/index.js`, - sourcemap: true, - format, - }, - plugins: [commonjs(), terser()], - }; -} - -export default [createConfig("module"), createConfig("system")]; diff --git a/rollup.config.mjs b/rollup.config.mjs new file mode 100644 index 0000000..71bbb2a --- /dev/null +++ b/rollup.config.mjs @@ -0,0 +1,110 @@ +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 { nodeResolve } from "@rollup/plugin-node-resolve"; +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/service-worker/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/service-worker", + filename: "service-worker", + }, + { + ecma, + angularPackage: "@angular/service-worker/config", + filename: "config", + }, + ]) + .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/service-worker/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: [ + nodeResolve({ browser: true }), + 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/common"], + }; +}