From ab869f2584b06e10d480833d52373122119ae904 Mon Sep 17 00:00:00 2001 From: wessberg Date: Mon, 6 Apr 2020 20:23:39 +0200 Subject: [PATCH] fix(regenerator): update inlined regenerator-runtime code to align with v0.13.5 --- package.json | 38 +- pnpm-lock.yaml | 862 +++++++++------------ src/lib/regenerator/regenerator.ts | 1122 ++++++++++++++-------------- 3 files changed, 947 insertions(+), 1075 deletions(-) diff --git a/package.json b/package.json index a31d8aac..70a78ccf 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "preversion": "npm run lint && NODE_ENV=production pnpm run build", "version": "pnpm run generate:all && git add .", "release": "np --no-cleanup --no-yarn", - "update": "npx npm-check-updates -u && pnpm update && pnpm install" + "update": "npx npm-check-updates -u -x np && pnpm update && pnpm install" }, "keywords": [ "rollup", @@ -50,31 +50,31 @@ "@rollup/plugin-alias": "^3.0.1", "@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-json": "^4.0.2", - "@types/node": "^13.9.5", - "@types/prettier": "^1.19.1", + "@types/node": "^13.11.0", + "@types/prettier": "^2.0.0", "@types/semver": "^7.1.0", - "@typescript-eslint/eslint-plugin": "^2.25.0", - "@typescript-eslint/parser": "^2.25.0", - "@wessberg/rollup-plugin-ts": "^1.2.21", + "@typescript-eslint/eslint-plugin": "^2.27.0", + "@typescript-eslint/parser": "^2.27.0", + "@wessberg/rollup-plugin-ts": "^1.2.23", "@wessberg/scaffold": "^1.0.29", "@wessberg/ts-config": "^1.0.8", - "ava": "3.5.1", + "ava": "3.6.0", "babel-preset-minify": "^0.5.1", "core-js": "^3.6.4", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.1", - "eslint-plugin-import": "^2.20.1", + "eslint-plugin-import": "^2.20.2", "eslint-plugin-jsdoc": "^22.1.0", "husky": "^4.2.3", - "np": "5.2.1", - "pnpm": "^4.12.1", - "prettier": "^2.0.2", + "np": "6.2.0", + "pnpm": "^4.12.5", + "prettier": "^2.0.4", "pretty-quick": "^2.0.1", "rimraf": "^3.0.2", - "rollup": "^2.2.0", + "rollup": "^2.3.3", "standard-changelog": "^2.0.21", - "ts-node": "8.8.1", - "typescript": "^3.9.0-beta", + "ts-node": "8.8.2", + "typescript": "^3.9.0-dev.20200406", "typescript-3-0-1": "npm:typescript@3.0.1", "typescript-3-1-1": "npm:typescript@3.1.1", "typescript-3-2-1": "npm:typescript@3.2.1", @@ -97,18 +97,18 @@ "@babel/preset-env": "^7.9.0", "@babel/runtime": "^7.9.2", "@rollup/pluginutils": "^3.0.8", - "@types/babel__core": "^7.1.6", - "@wessberg/browserslist-generator": "^1.0.34", + "@types/babel__core": "^7.1.7", + "@wessberg/browserslist-generator": "^1.0.35", "@wessberg/stringutil": "^1.0.19", "@wessberg/ts-clone-node": "^0.3.8", - "browserslist": "^4.11.0", - "chalk": "^3.0.0", + "browserslist": "^4.11.1", + "chalk": "^4.0.0", "magic-string": "^0.25.7", "slash": "^3.0.0", "tslib": "^1.11.1" }, "peerDependencies": { - "rollup": ">= 1.x", + "rollup": ">=2.x", "typescript": ">= 3.x" }, "main": "./dist/cjs/index.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8544b910..8e9c0772 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,45 +9,45 @@ dependencies: "@babel/plugin-transform-runtime": 7.9.0_@babel+core@7.9.0 "@babel/preset-env": 7.9.0_@babel+core@7.9.0 "@babel/runtime": 7.9.2 - "@rollup/pluginutils": 3.0.8_rollup@2.2.0 - "@types/babel__core": 7.1.6 - "@wessberg/browserslist-generator": 1.0.34 + "@rollup/pluginutils": 3.0.8_rollup@2.3.3 + "@types/babel__core": 7.1.7 + "@wessberg/browserslist-generator": 1.0.35 "@wessberg/stringutil": 1.0.19 - "@wessberg/ts-clone-node": 0.3.8_typescript@3.9.0-dev.20200328 - browserslist: 4.11.0 - chalk: 3.0.0 + "@wessberg/ts-clone-node": 0.3.8_typescript@3.9.0-dev.20200406 + browserslist: 4.11.1 + chalk: 4.0.0 magic-string: 0.25.7 slash: 3.0.0 tslib: 1.11.1 devDependencies: - "@rollup/plugin-alias": 3.0.1_rollup@2.2.0 - "@rollup/plugin-commonjs": 11.0.2_rollup@2.2.0 - "@rollup/plugin-json": 4.0.2_rollup@2.2.0 - "@types/node": 13.9.5 - "@types/prettier": 1.19.1 + "@rollup/plugin-alias": 3.0.1_rollup@2.3.3 + "@rollup/plugin-commonjs": 11.0.2_rollup@2.3.3 + "@rollup/plugin-json": 4.0.2_rollup@2.3.3 + "@types/node": 13.11.0 + "@types/prettier": 2.0.0 "@types/semver": 7.1.0 - "@typescript-eslint/eslint-plugin": 2.25.0_533edb9067806610fd2c07ea20ca3127 - "@typescript-eslint/parser": 2.25.0_09951a7bb0e1858bd074d0d693fd612d - "@wessberg/rollup-plugin-ts": 1.2.21_ca9322cac686de2c18bff7e087bc22e2 + "@typescript-eslint/eslint-plugin": 2.27.0_5a92d99da39649798151035fe0bdcca5 + "@typescript-eslint/parser": 2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84 + "@wessberg/rollup-plugin-ts": 1.2.23_bfc94821664b519cd94ada8cae579663 "@wessberg/scaffold": 1.0.29 "@wessberg/ts-config": 1.0.8 - ava: 3.5.1 + ava: 3.6.0 babel-preset-minify: 0.5.1 core-js: 3.6.4 eslint: 6.8.0 eslint-config-prettier: 6.10.1_eslint@6.8.0 - eslint-plugin-import: 2.20.1_eslint@6.8.0 + eslint-plugin-import: 2.20.2_eslint@6.8.0 eslint-plugin-jsdoc: 22.1.0_eslint@6.8.0 husky: 4.2.3 - np: 5.2.1 - pnpm: 4.12.1 - prettier: 2.0.2 - pretty-quick: 2.0.1_prettier@2.0.2 + np: 6.2.0 + pnpm: 4.12.5 + prettier: 2.0.4 + pretty-quick: 2.0.1_prettier@2.0.4 rimraf: 3.0.2 - rollup: 2.2.0 + rollup: 2.3.3 standard-changelog: 2.0.21 - ts-node: 8.8.1_typescript@3.9.0-dev.20200328 - typescript: 3.9.0-dev.20200328 + ts-node: 8.8.2_typescript@3.9.0-dev.20200406 + typescript: 3.9.0-dev.20200406 typescript-3-0-1: /typescript/3.0.1 typescript-3-1-1: /typescript/3.1.1 typescript-3-2-1: /typescript/3.2.1 @@ -66,7 +66,7 @@ packages: integrity: sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== /@babel/compat-data/7.9.0: dependencies: - browserslist: 4.11.0 + browserslist: 4.11.1 invariant: 2.2.4 semver: 5.7.1 resolution: @@ -84,7 +84,7 @@ packages: convert-source-map: 1.7.0 debug: 4.1.1 gensync: 1.0.0-beta.1 - json5: 2.1.2 + json5: 2.1.3 lodash: 4.17.15 resolve: 1.15.1 semver: 5.7.1 @@ -116,7 +116,7 @@ packages: dependencies: "@babel/compat-data": 7.9.0 "@babel/core": 7.9.0 - browserslist: 4.11.0 + browserslist: 4.11.1 invariant: 2.2.4 levenary: 1.1.1 semver: 5.7.1 @@ -757,7 +757,7 @@ packages: "@babel/plugin-transform-unicode-regex": 7.8.3_@babel+core@7.9.0 "@babel/preset-modules": 0.1.3_@babel+core@7.9.0 "@babel/types": 7.9.0 - browserslist: 4.11.0 + browserslist: 4.11.1 core-js-compat: 3.6.4 invariant: 2.2.4 levenary: 1.1.1 @@ -836,29 +836,29 @@ packages: /@nodelib/fs.walk/1.2.4: dependencies: "@nodelib/fs.scandir": 2.1.3 - fastq: 1.6.1 + fastq: 1.7.0 dev: true engines: node: ">= 8" resolution: integrity: sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ== - /@rollup/plugin-alias/3.0.1_rollup@2.2.0: + /@rollup/plugin-alias/3.0.1_rollup@2.3.3: dependencies: - rollup: 2.2.0 + rollup: 2.3.3 slash: 3.0.0 dev: true peerDependencies: rollup: ^1.20.0 resolution: integrity: sha512-ReSy6iPl3GsWLMNeshXAfgItZFMoMOTYC7MZQQM5va4pqxiGgwl1xZUZfHW6zGyZPK+k8TBadxx+kdmepiUa+g== - /@rollup/plugin-commonjs/11.0.2_rollup@2.2.0: + /@rollup/plugin-commonjs/11.0.2_rollup@2.3.3: dependencies: - "@rollup/pluginutils": 3.0.8_rollup@2.2.0 + "@rollup/pluginutils": 3.0.8_rollup@2.3.3 estree-walker: 1.0.1 is-reference: 1.1.4 magic-string: 0.25.7 resolve: 1.15.1 - rollup: 2.2.0 + rollup: 2.3.3 dev: true engines: node: ">= 8.0.0" @@ -866,19 +866,19 @@ packages: rollup: ^1.20.0 resolution: integrity: sha512-MPYGZr0qdbV5zZj8/2AuomVpnRVXRU5XKXb3HVniwRoRCreGlf5kOE081isNWeiLIi6IYkwTX9zE0/c7V8g81g== - /@rollup/plugin-json/4.0.2_rollup@2.2.0: + /@rollup/plugin-json/4.0.2_rollup@2.3.3: dependencies: - "@rollup/pluginutils": 3.0.8_rollup@2.2.0 - rollup: 2.2.0 + "@rollup/pluginutils": 3.0.8_rollup@2.3.3 + rollup: 2.3.3 dev: true peerDependencies: rollup: ^1.20.0 resolution: integrity: sha512-t4zJMc98BdH42mBuzjhQA7dKh0t4vMJlUka6Fz0c+iO5IVnWaEMiYBy1uBj9ruHZzXBW23IPDGL9oCzBkQ9Udg== - /@rollup/pluginutils/3.0.8_rollup@2.2.0: + /@rollup/pluginutils/3.0.8_rollup@2.3.3: dependencies: estree-walker: 1.0.1 - rollup: 2.2.0 + rollup: 2.3.3 engines: node: ">= 8.0.0" peerDependencies: @@ -907,7 +907,7 @@ packages: node: ">=6" resolution: integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== - /@types/babel__core/7.1.6: + /@types/babel__core/7.1.7: dependencies: "@babel/parser": 7.9.4 "@babel/types": 7.9.0 @@ -915,7 +915,7 @@ packages: "@types/babel__template": 7.0.2 "@types/babel__traverse": 7.0.9 resolution: - integrity: sha512-tTnhWszAqvXnhW7m5jQU9PomXSiKXk2sFxpahXvI20SZKu9ylPi8WtIxueZ6ehDWikPT0jeFujMj3X4ZHuf3Tg== + integrity: sha512-RL62NqSFPCDK2FM1pSDH0scHpJvsXtZNiYlMB73DgPBaG1E38ZYVL+ei5EkWRbr+KC4YNiAUNBnRj+bgwpgjMw== /@types/babel__generator/7.6.1: dependencies: "@babel/types": 7.9.0 @@ -951,7 +951,7 @@ packages: dependencies: "@types/events": 3.0.0 "@types/minimatch": 3.0.3 - "@types/node": 13.9.5 + "@types/node": 13.11.0 dev: true resolution: integrity: sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w== @@ -963,9 +963,13 @@ packages: dev: true resolution: integrity: sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== - /@types/node/13.9.5: + /@types/minimist/1.2.0: + dev: true + resolution: + integrity: sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY= + /@types/node/13.11.0: resolution: - integrity: sha512-hkzMMD3xu6BrJpGVLeQ3htQQNAcOrJjX7WFmtK8zWQpz2UJf13LCFF2ALA7c9OVdvc2vQJeDdjfR35M0sBCxvw== + integrity: sha512-uM4mnmsIIPK/yeO+42F2RQhGUIs39K2RFmugcJANppXe6J1nvH87PvzPZYpza7Xhhs8Yn9yIAVdLZ84z61+0xQ== /@types/normalize-package-data/2.4.0: dev: true resolution: @@ -981,23 +985,27 @@ packages: dev: true resolution: integrity: sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ== + /@types/prettier/2.0.0: + dev: true + resolution: + integrity: sha512-/rM+sWiuOZ5dvuVzV37sUuklsbg+JPOP8d+nNFlo2ZtfpzPiPvh1/gc8liWOLBqe+sR+ZM7guPaIcTt6UZTo7Q== /@types/semver/7.1.0: dependencies: - "@types/node": 13.9.5 + "@types/node": 13.11.0 resolution: integrity: sha512-pOKLaubrAEMUItGNpgwl0HMFPrSAFic8oSVIvfu1UwcgGNmNyK9gyhBHKmBnUTwwVvpZfkzUC0GaMgnL6P86uA== /@types/ua-parser-js/0.7.33: resolution: integrity: sha512-ngUKcHnytUodUCL7C6EZ+lVXUjTMQb+9p/e1JjV5tN9TVzS98lHozWEFRPY1QcCdwFeMsmVWfZ3DPPT/udCyIw== - /@typescript-eslint/eslint-plugin/2.25.0_533edb9067806610fd2c07ea20ca3127: + /@typescript-eslint/eslint-plugin/2.27.0_5a92d99da39649798151035fe0bdcca5: dependencies: - "@typescript-eslint/experimental-utils": 2.25.0_09951a7bb0e1858bd074d0d693fd612d - "@typescript-eslint/parser": 2.25.0_09951a7bb0e1858bd074d0d693fd612d + "@typescript-eslint/experimental-utils": 2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84 + "@typescript-eslint/parser": 2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84 eslint: 6.8.0 functional-red-black-tree: 1.0.1 - regexpp: 3.0.0 - tsutils: 3.17.1_typescript@3.9.0-dev.20200328 - typescript: 3.9.0-dev.20200328 + regexpp: 3.1.0 + tsutils: 3.17.1_typescript@3.9.0-dev.20200406 + typescript: 3.9.0-dev.20200406 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 @@ -1009,11 +1017,11 @@ packages: typescript: optional: true resolution: - integrity: sha512-W2YyMtjmlrOjtXc+FtTelVs9OhuR6OlYc4XKIslJ8PUJOqgYYAPRJhAqkYRQo3G4sjvG8jSodsNycEn4W2gHUw== - /@typescript-eslint/experimental-utils/2.25.0_09951a7bb0e1858bd074d0d693fd612d: + integrity: sha512-/my+vVHRN7zYgcp0n4z5A6HAK7bvKGBiswaM5zIlOQczsxj/aiD7RcgD+dvVFuwFaGh5+kM7XA6Q6PN0bvb1tw== + /@typescript-eslint/experimental-utils/2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84: dependencies: "@types/json-schema": 7.0.4 - "@typescript-eslint/typescript-estree": 2.25.0_typescript@3.9.0-dev.20200328 + "@typescript-eslint/typescript-estree": 2.27.0_typescript@3.9.0-dev.20200406 eslint: 6.8.0 eslint-scope: 5.0.0 eslint-utils: 2.0.0 @@ -1024,15 +1032,15 @@ packages: eslint: "*" typescript: "*" resolution: - integrity: sha512-0IZ4ZR5QkFYbaJk+8eJ2kYeA+1tzOE1sBjbwwtSV85oNWYUBep+EyhlZ7DLUCyhMUGuJpcCCFL0fDtYAP1zMZw== - /@typescript-eslint/parser/2.25.0_09951a7bb0e1858bd074d0d693fd612d: + integrity: sha512-vOsYzjwJlY6E0NJRXPTeCGqjv5OHgRU1kzxHKWJVPjDYGbPgLudBXjIlc+OD1hDBZ4l1DLbOc5VjofKahsu9Jw== + /@typescript-eslint/parser/2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84: dependencies: "@types/eslint-visitor-keys": 1.0.0 - "@typescript-eslint/experimental-utils": 2.25.0_09951a7bb0e1858bd074d0d693fd612d - "@typescript-eslint/typescript-estree": 2.25.0_typescript@3.9.0-dev.20200328 + "@typescript-eslint/experimental-utils": 2.27.0_9ea555a9b9a7cbe34b35fde2a17f4c84 + "@typescript-eslint/typescript-estree": 2.27.0_typescript@3.9.0-dev.20200406 eslint: 6.8.0 eslint-visitor-keys: 1.1.0 - typescript: 3.9.0-dev.20200328 + typescript: 3.9.0-dev.20200406 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 @@ -1043,8 +1051,8 @@ packages: typescript: optional: true resolution: - integrity: sha512-mccBLaBSpNVgp191CP5W+8U1crTyXsRziWliCqzj02kpxdjKMvFHGJbK33NroquH3zB/gZ8H511HEsJBa2fNEg== - /@typescript-eslint/typescript-estree/2.25.0_typescript@3.9.0-dev.20200328: + integrity: sha512-HFUXZY+EdwrJXZo31DW4IS1ujQW3krzlRjBrFRrJcMDh0zCu107/nRfhk/uBasO8m0NVDbBF5WZKcIUMRO7vPg== + /@typescript-eslint/typescript-estree/2.27.0_typescript@3.9.0-dev.20200406: dependencies: debug: 4.1.1 eslint-visitor-keys: 1.1.0 @@ -1052,8 +1060,8 @@ packages: is-glob: 4.0.1 lodash: 4.17.15 semver: 6.3.0 - tsutils: 3.17.1_typescript@3.9.0-dev.20200328 - typescript: 3.9.0-dev.20200328 + tsutils: 3.17.1_typescript@3.9.0-dev.20200406 + typescript: 3.9.0-dev.20200406 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 @@ -1063,23 +1071,23 @@ packages: typescript: optional: true resolution: - integrity: sha512-VUksmx5lDxSi6GfmwSK7SSoIKSw9anukWWNitQPqt58LuYrKalzsgeuignbqnB+rK/xxGlSsCy8lYnwFfB6YJg== - /@wessberg/browserslist-generator/1.0.34: + integrity: sha512-t2miCCJIb/FU8yArjAvxllxbTiyNqaXJag7UOpB5DVoM3+xnjeOngtqlJkLRnMtzaRcJhe3CIR9RmL40omubhg== + /@wessberg/browserslist-generator/1.0.35: dependencies: "@types/object-path": 0.11.0 "@types/semver": 7.1.0 "@types/ua-parser-js": 0.7.33 - browserslist: 4.9.1 - caniuse-lite: 1.0.30001038 - mdn-browser-compat-data: 1.0.10 + browserslist: 4.11.0 + caniuse-lite: 1.0.30001039 + mdn-browser-compat-data: 1.0.15 object-path: 0.11.4 semver: 7.1.3 ua-parser-js: 0.7.21 engines: node: ">=8.0.0" resolution: - integrity: sha512-2O5wofJ9K3jus7e311O0KDNnHFGq5nFuvL4b7v7ak3cXAovPoPJTfWdWDYhT8aKM/Iy3J4+wBuJkR9SPoLwOXg== - /@wessberg/rollup-plugin-ts/1.2.21_ca9322cac686de2c18bff7e087bc22e2: + integrity: sha512-3Lq2nVq9CqkzJhBCHx6CMxrdTBmICPpVmhTBOYpNkUj6P2dNW4UPGEBmvOSE4Gqc67OKCHy8aYZ24Q+kiJvgjw== + /@wessberg/rollup-plugin-ts/1.2.23_bfc94821664b519cd94ada8cae579663: dependencies: "@babel/core": 7.9.0 "@babel/plugin-proposal-async-generator-functions": 7.8.3_@babel+core@7.9.0 @@ -1091,26 +1099,26 @@ packages: "@babel/plugin-transform-runtime": 7.9.0_@babel+core@7.9.0 "@babel/preset-env": 7.9.0_@babel+core@7.9.0 "@babel/runtime": 7.9.2 - "@rollup/pluginutils": 3.0.8_rollup@2.2.0 - "@types/babel__core": 7.1.6 - "@wessberg/browserslist-generator": 1.0.34 + "@rollup/pluginutils": 3.0.8_rollup@2.3.3 + "@types/babel__core": 7.1.7 + "@wessberg/browserslist-generator": 1.0.35 "@wessberg/stringutil": 1.0.19 - "@wessberg/ts-clone-node": 0.3.4_typescript@3.9.0-dev.20200328 - browserslist: 4.11.0 + "@wessberg/ts-clone-node": 0.3.8_typescript@3.9.0-dev.20200406 + browserslist: 4.11.1 chalk: 3.0.0 magic-string: 0.25.7 - rollup: 2.2.0 + rollup: 2.3.3 slash: 3.0.0 tslib: 1.11.1 - typescript: 3.9.0-dev.20200328 + typescript: 3.9.0-dev.20200406 dev: true engines: node: ">=8.0.0" peerDependencies: - rollup: ^2.0.0 - typescript: ^3.x + rollup: ">= 1.x" + typescript: ">= 3.x" resolution: - integrity: sha512-2wfFhfmCqLEw5mseOI/LdmFRT+AdTTfOncURVGUWbUx7XxOHJrCb466QJvJc3UcHTkyjxHhvNeaaeviuKdF1wA== + integrity: sha512-qNrtleYV/kcYSoxbN7shlegfM5vSUjpYxp8QH4g2mwy9m4nbX46MXYP9bGfse7XYPxt/g/RRKgn3u2al1ACosQ== /@wessberg/scaffold/1.0.29: dependencies: "@types/prettier": 1.19.1 @@ -1118,7 +1126,7 @@ packages: commander: 4.1.1 eslint: 6.8.0 inquirer: 7.1.0 - json5: 2.1.2 + json5: 2.1.3 markdown-toc: 1.2.0 prettier: 1.19.1 yaml: 1.8.3 @@ -1133,20 +1141,9 @@ packages: node: ">=8.0.0" resolution: integrity: sha512-9AZHVXWlpN8Cn9k5BC/O0Dzb9E9xfEMXzYrNunwvkUTvuK7xgQPVRZpLo+jWCOZ5r8oBa8NIrHuPEu1hzbb6bg== - /@wessberg/ts-clone-node/0.3.4_typescript@3.9.0-dev.20200328: + /@wessberg/ts-clone-node/0.3.8_typescript@3.9.0-dev.20200406: dependencies: - typescript: 3.9.0-dev.20200328 - dev: true - engines: - node: ">=8.0.0" - peerDependencies: - typescript: ^3.x - resolution: - integrity: sha512-/JWk3eBbE/Og/42DNdwiWX7YhPPiPvoI5ZxW9xXsy9poRNH55gd4bwsJTNZSkgjmkv5xzq39JNZWQ2+MqfskkA== - /@wessberg/ts-clone-node/0.3.8_typescript@3.9.0-dev.20200328: - dependencies: - typescript: 3.9.0-dev.20200328 - dev: false + typescript: 3.9.0-dev.20200406 engines: node: ">=8.0.0" peerDependencies: @@ -1287,9 +1284,9 @@ packages: node: ">=6" resolution: integrity: sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== - /any-observable/0.5.1_rxjs@6.5.4: + /any-observable/0.5.1_rxjs@6.5.5: dependencies: - rxjs: 6.5.4 + rxjs: 6.5.5 dev: true engines: node: ">=8" @@ -1419,13 +1416,13 @@ packages: dev: true resolution: integrity: sha1-BlK0kYgYefB3XazgzcoyM5QqTkc= - /ava/3.5.1: + /ava/3.6.0: dependencies: "@concordance/react": 2.0.0 ansi-styles: 4.2.1 arrgv: 1.0.2 arrify: 2.0.1 - chalk: 3.0.0 + chalk: 4.0.0 chokidar: 3.3.1 chunkd: 2.0.1 ci-info: 2.0.0 @@ -1441,7 +1438,7 @@ packages: currently-unhandled: 0.4.1 debug: 4.1.1 del: 5.1.0 - emittery: 0.5.1 + emittery: 0.6.0 equal-length: 1.0.1 figures: 3.2.0 globby: 11.0.0 @@ -1456,7 +1453,7 @@ packages: md5-hex: 3.0.1 ms: 2.1.2 ora: 4.0.3 - p-map: 3.0.0 + p-map: 4.0.0 picomatch: 2.2.2 pkg-conf: 3.1.0 plur: 4.0.0 @@ -1478,7 +1475,7 @@ packages: node: ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0" hasBin: true resolution: - integrity: sha512-gde/nh438C6cj6/pKntjoPmGg1VSsZlRjyuYTjp0ixsNDj+1YNVeASrlzI+NgvcUmbx17G8uOgByt7lDu8ddXA== + integrity: sha512-cp+oK06JTFK9m4EhLq0APPSi6aTpwUOK0aKH5pCzIhU8AHFLXis0HNarfIr/EeBe9GzQKouuIsnlVedY7Lg0Cw== /babel-helper-evaluate-path/0.5.0: dev: true resolution: @@ -1667,21 +1664,6 @@ packages: dev: true resolution: integrity: sha512-lmp0m647R5e77ORduxLW5mISIDcvgJZa52vMBv5uVI3UmSWTQjkJsZVBfaFqQPw/QFogJwvY6e3Gl9nP+Loe+Q== - /boxen/3.2.0: - dependencies: - ansi-align: 3.0.0 - camelcase: 5.3.1 - chalk: 2.4.2 - cli-boxes: 2.2.0 - string-width: 3.1.0 - term-size: 1.2.0 - type-fest: 0.3.1 - widest-line: 2.0.1 - dev: true - engines: - node: ">=6" - resolution: - integrity: sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A== /boxen/4.2.0: dependencies: ansi-align: 3.0.0 @@ -1714,21 +1696,22 @@ packages: integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== /browserslist/4.11.0: dependencies: - caniuse-lite: 1.0.30001038 - electron-to-chromium: 1.3.390 + caniuse-lite: 1.0.30001039 + electron-to-chromium: 1.3.397 node-releases: 1.1.53 pkg-up: 3.1.0 hasBin: true resolution: integrity: sha512-WqEC7Yr5wUH5sg6ruR++v2SGOQYpyUdYYd4tZoAq1F7y+QXoLoYGXVbxhtaIqWmAJjtNTRjVD3HuJc1OXTel2A== - /browserslist/4.9.1: + /browserslist/4.11.1: dependencies: - caniuse-lite: 1.0.30001038 - electron-to-chromium: 1.3.390 + caniuse-lite: 1.0.30001039 + electron-to-chromium: 1.3.397 node-releases: 1.1.53 + pkg-up: 2.0.0 hasBin: true resolution: - integrity: sha512-Q0DnKq20End3raFulq6Vfp1ecB9fh8yUNV55s8sekaDDeqBaCtWlRHCUdaWyUeSSBJM7IbM6HcsyaeYqgeDhnw== + integrity: sha512-DCTr3kDrKEYNw6Jb9HFxVLQNaue8z+0ZfRBRjmCunKDEXEBajKDj2Y+Uelg+Pi29OnvaSGwjOsnRyNEkXzHg5g== /buffer-from/1.1.1: dev: true resolution: @@ -1751,28 +1734,6 @@ packages: node: ">=8" resolution: integrity: sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== - /caller-callsite/2.0.0: - dependencies: - callsites: 2.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= - /caller-path/2.0.0: - dependencies: - caller-callsite: 2.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= - /callsites/2.0.0: - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= /callsites/3.1.0: dev: true engines: @@ -1798,6 +1759,16 @@ packages: node: ">=4" resolution: integrity: sha1-oqpfsa9oh1glnDLBQUJteJI7m3c= + /camelcase-keys/6.2.2: + dependencies: + camelcase: 5.3.1 + map-obj: 4.1.0 + quick-lru: 4.0.1 + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== /camelcase/2.1.1: dev: true engines: @@ -1816,9 +1787,9 @@ packages: node: ">=6" resolution: integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - /caniuse-lite/1.0.30001038: + /caniuse-lite/1.0.30001039: resolution: - integrity: sha512-zii9quPo96XfOiRD4TrfYGs+QsGZpb2cGiMAzPjtf/hpFgB6zCPZgJb7I1+EATeMw/o+lG8FyRAnI+CWStHcaQ== + integrity: sha512-SezbWCTT34eyFoWHgx8UWso7YtvtM7oosmFoXbCkdC6qJzRfBTeTgE9REtKtiuKXuMwWTZEvdnFNGAyVMorv8Q== /chalk/1.1.3: dependencies: ansi-styles: 2.2.1 @@ -1844,10 +1815,19 @@ packages: dependencies: ansi-styles: 4.2.1 supports-color: 7.1.0 + dev: true engines: node: ">=8" resolution: integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== + /chalk/4.0.0: + dependencies: + ansi-styles: 4.2.1 + supports-color: 7.1.0 + engines: + node: ">=10" + resolution: + integrity: sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A== /chardet/0.7.0: dev: true resolution: @@ -1914,12 +1894,12 @@ packages: node: ">=8" resolution: integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - /cli-spinners/2.2.0: + /cli-spinners/2.3.0: dev: true engines: node: ">=6" resolution: - integrity: sha512-tgU3fKwzYjiLEQgPMD9Jt+JjHVL9kW93FiIMX/l7rivvOD4/LL0Mf7gda3+4U2KJBloybwgj5KEoQgGRioMiKQ== + integrity: sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w== /cli-truncate/0.2.1: dependencies: slice-ansi: 0.0.4 @@ -2073,19 +2053,6 @@ packages: node: ">=6.12.3 <7 || >=8.9.4 <9 || >=10.0.0" resolution: integrity: sha512-l0RFuB8RLfCS0Pt2Id39/oCPykE01pyxgAFypWTlaGRgvLkZrtczZ8atEHpTeEIW+zYWXTBuA9cCSeEOScxReQ== - /configstore/4.0.0: - dependencies: - dot-prop: 4.2.0 - graceful-fs: 4.2.3 - make-dir: 1.3.0 - unique-string: 1.0.0 - write-file-atomic: 2.4.3 - xdg-basedir: 3.0.0 - dev: true - engines: - node: ">=6" - resolution: - integrity: sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ== /configstore/5.0.1: dependencies: dot-prop: 5.2.0 @@ -2140,7 +2107,7 @@ packages: compare-func: 1.3.2 conventional-commits-filter: 2.0.2 dateformat: 3.0.3 - handlebars: 4.7.3 + handlebars: 4.7.6 json-stringify-safe: 5.0.1 lodash: 4.17.15 meow: 5.0.0 @@ -2190,7 +2157,7 @@ packages: integrity: sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU= /core-js-compat/3.6.4: dependencies: - browserslist: 4.11.0 + browserslist: 4.11.1 semver: 7.0.0 resolution: integrity: sha512-zAa3IZPvsJ0slViBQ2z+vgyyTuhd3MFn1rBQjZSKVEgB0UMYhUkCj9jJUVPgGTGqWvsBVmfnruXgTcNyTlEiSA== @@ -2203,17 +2170,6 @@ packages: dev: true resolution: integrity: sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - /cosmiconfig/5.2.1: - dependencies: - import-fresh: 2.0.0 - is-directory: 0.3.1 - js-yaml: 3.13.1 - parse-json: 4.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== /cosmiconfig/6.0.0: dependencies: "@types/parse-json": 4.0.0 @@ -2226,14 +2182,6 @@ packages: node: ">=8" resolution: integrity: sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== - /cross-spawn/5.1.0: - dependencies: - lru-cache: 4.1.5 - shebang-command: 1.2.0 - which: 1.3.1 - dev: true - resolution: - integrity: sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= /cross-spawn/6.0.5: dependencies: nice-try: 1.0.5 @@ -2246,7 +2194,7 @@ packages: node: ">=4.8" resolution: integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - /cross-spawn/7.0.1: + /cross-spawn/7.0.2: dependencies: path-key: 3.1.1 shebang-command: 2.0.0 @@ -2255,13 +2203,7 @@ packages: engines: node: ">= 8" resolution: - integrity: sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== - /crypto-random-string/1.0.0: - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= + integrity: sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw== /crypto-random-string/2.0.0: dev: true engines: @@ -2435,14 +2377,6 @@ packages: node: ">=0.10.0" resolution: integrity: sha1-G3CK8JSknJoOfbyteQq6U52sEXc= - /dot-prop/4.2.0: - dependencies: - is-obj: 1.0.1 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ== /dot-prop/5.2.0: dependencies: is-obj: 2.0.0 @@ -2455,21 +2389,21 @@ packages: dev: true resolution: integrity: sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= - /electron-to-chromium/1.3.390: + /electron-to-chromium/1.3.397: resolution: - integrity: sha512-4RvbM5x+002gKI8sltkqWEk5pptn0UnzekUx8RTThAMPDSb8jjpm6SwGiSnEve7f85biyZl8DMXaipaCxDjXag== + integrity: sha512-zcUd1p/7yzTSdWkCTrqGvbnEOASy96d0RJL/lc5BDJoO23Z3G/VHd0yIPbguDU9n8QNUTCigLO7oEdtOb7fp2A== /elegant-spinner/1.0.1: dev: true engines: node: ">=0.10.0" resolution: integrity: sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4= - /emittery/0.5.1: + /emittery/0.6.0: dev: true engines: - node: ">=8" + node: ">=10" resolution: - integrity: sha512-sYZXNHH9PhTfs98ROEFVC3bLiR8KSqXQsEHIwZ9J6H0RaQObC3JYq4G8IvDd0b45/LxfGKYBpmaUN4LiKytaNw== + integrity: sha512-6EMRGr9KzYWp8DzHFZsKVZBsMO6QhAeHMeHND8rhyBNCHKMLpgW9tZv40bwN3rAIKRS5CxcK8oLRKUJSB9h7yQ== /emoji-regex/7.0.3: dev: true resolution: @@ -2507,8 +2441,8 @@ packages: object-inspect: 1.7.0 object-keys: 1.1.1 object.assign: 4.1.0 - string.prototype.trimleft: 2.1.1 - string.prototype.trimright: 2.1.1 + string.prototype.trimleft: 2.1.2 + string.prototype.trimright: 2.1.2 dev: true engines: node: ">= 0.4" @@ -2530,6 +2464,12 @@ packages: node: ">=8" resolution: integrity: sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== + /escape-goat/3.0.0: + dev: true + engines: + node: ">=10" + resolution: + integrity: sha512-w3PwNZJwRxlp47QGzhuEBldEqVHHhh8/tIPcl6ecf2Bou99cdAt0knihBV0Ecc7CGxYduXVBDheH1K2oADRlvw== /escape-string-regexp/1.0.5: engines: node: ">=0.8.0" @@ -2558,7 +2498,7 @@ packages: dev: true resolution: integrity: sha512-b8crLDo0M5RSe5YG8Pu2DYBj71tSB6OvXkfzwbJU2w7y8P4/yo0MyF8jU26IEuEuHF2K5/gcAJE3LhQGqBBbVg== - /eslint-module-utils/2.5.2: + /eslint-module-utils/2.6.0: dependencies: debug: 2.6.9 pkg-dir: 2.0.0 @@ -2566,8 +2506,8 @@ packages: engines: node: ">=4" resolution: - integrity: sha512-LGScZ/JSlqGKiT8OC+cYRxseMjyqt6QO54nl281CK93unD89ijSeRV6An8Ci/2nvWVKe8K/Tqdm75RQoIOCr+Q== - /eslint-plugin-import/2.20.1_eslint@6.8.0: + integrity: sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA== + /eslint-plugin-import/2.20.2_eslint@6.8.0: dependencies: array-includes: 3.1.1 array.prototype.flat: 1.2.3 @@ -2576,7 +2516,7 @@ packages: doctrine: 1.5.0 eslint: 6.8.0 eslint-import-resolver-node: 0.3.3 - eslint-module-utils: 2.5.2 + eslint-module-utils: 2.6.0 has: 1.0.3 minimatch: 3.0.4 object.values: 1.1.1 @@ -2588,7 +2528,7 @@ packages: peerDependencies: eslint: 2.x - 6.x resolution: - integrity: sha512-qQHgFOTjguR+LnYRoToeZWT62XM55MBVXObHM6SKFd1VzDcX/vqT1kAz8ssqigh5eMj8qXcRoXXGZpPP6RfdCw== + integrity: sha512-FObidqpXrR8OnCh4iNsxy+WACztJLXAHBO5hK79T1Hc77PgQZkyDGA5Ag9xAvRpglvLNxhH/zSmZ70/pZ31dHg== /eslint-plugin-jsdoc/22.1.0_eslint@6.8.0: dependencies: comment-parser: 0.7.2 @@ -2665,14 +2605,14 @@ packages: levn: 0.3.0 lodash: 4.17.15 minimatch: 3.0.4 - mkdirp: 0.5.4 + mkdirp: 0.5.5 natural-compare: 1.4.0 optionator: 0.8.3 progress: 2.0.3 regexpp: 2.0.1 semver: 6.3.0 strip-ansi: 5.2.0 - strip-json-comments: 3.0.1 + strip-json-comments: 3.1.0 table: 5.4.6 text-table: 0.2.0 v8-compile-cache: 2.1.0 @@ -2735,23 +2675,9 @@ packages: node: ">=0.10.0" resolution: integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - /execa/0.7.0: - dependencies: - cross-spawn: 5.1.0 - get-stream: 3.0.0 - is-stream: 1.1.0 - npm-run-path: 2.0.2 - p-finally: 1.0.0 - signal-exit: 3.0.3 - strip-eof: 1.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= /execa/2.1.0: dependencies: - cross-spawn: 7.0.1 + cross-spawn: 7.0.2 get-stream: 5.1.0 is-stream: 2.0.0 merge-stream: 2.0.0 @@ -2765,23 +2691,22 @@ packages: node: ^8.12.0 || >=9.7.0 resolution: integrity: sha512-Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw== - /execa/3.4.0: + /execa/4.0.0: dependencies: - cross-spawn: 7.0.1 + cross-spawn: 7.0.2 get-stream: 5.1.0 human-signals: 1.1.1 is-stream: 2.0.0 merge-stream: 2.0.0 npm-run-path: 4.0.1 onetime: 5.1.0 - p-finally: 2.0.1 signal-exit: 3.0.3 strip-final-newline: 2.0.0 dev: true engines: - node: ^8.12.0 || >=9.7.0 + node: ">=10" resolution: - integrity: sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g== + integrity: sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA== /expand-range/1.8.2: dependencies: fill-range: 2.2.4 @@ -2840,12 +2765,12 @@ packages: dev: true resolution: integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= - /fastq/1.6.1: + /fastq/1.7.0: dependencies: reusify: 1.0.4 dev: true resolution: - integrity: sha512-mpIH5sKYueh3YyeJwqtVo8sORi0CgtmkVbK6kZStpQlZBYQuTzG2CZ7idSiJuA7bY0SFCWUc5WIs+oYumGCQNw== + integrity: sha512-YOadQRnHd5q6PogvAR/x62BGituF2ufiEA6s8aavQANw5YKHERI4AREboX6KotzP8oX2klxYF2wcV/7bn1clfQ== /figures/1.7.0: dependencies: escape-string-regexp: 1.0.5 @@ -2911,7 +2836,6 @@ packages: /find-up/2.1.0: dependencies: locate-path: 2.0.0 - dev: true engines: node: ">=4" resolution: @@ -2942,7 +2866,7 @@ packages: integrity: sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww== /flat-cache/2.0.1: dependencies: - flatted: 2.0.1 + flatted: 2.0.2 rimraf: 2.6.3 write: 1.0.3 dev: true @@ -2950,10 +2874,10 @@ packages: node: ">=4" resolution: integrity: sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== - /flatted/2.0.1: + /flatted/2.0.2: dev: true resolution: - integrity: sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== + integrity: sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== /for-in/1.0.2: dev: true engines: @@ -3021,12 +2945,6 @@ packages: node: ">=4" resolution: integrity: sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== - /get-stream/3.0.0: - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= /get-stream/4.1.0: dependencies: pump: 3.0.0 @@ -3104,14 +3022,6 @@ packages: dev: true resolution: integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - /global-dirs/0.1.1: - dependencies: - ini: 1.3.5 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU= /global-dirs/2.0.1: dependencies: ini: 1.3.5 @@ -3216,11 +3126,12 @@ packages: dev: true resolution: integrity: sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ== - /handlebars/4.7.3: + /handlebars/4.7.6: dependencies: + minimist: 1.2.5 neo-async: 2.6.1 - optimist: 0.6.1 source-map: 0.6.1 + wordwrap: 1.0.0 dev: true engines: node: ">=0.4.7" @@ -3228,7 +3139,13 @@ packages: optionalDependencies: uglify-js: 3.8.1 resolution: - integrity: sha512-SRGwSYuNfx8DwHD/6InAPzD6RgeruWLT+B8e8a7gGs8FWgHzlExpTFMEq2IA6QpAfOClpKHy6+8IqTjeBCu6Kg== + integrity: sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA== + /hard-rejection/2.1.0: + dev: true + engines: + node: ">=6" + resolution: + integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== /has-ansi/2.0.0: dependencies: ansi-regex: 2.1.1 @@ -3329,15 +3246,6 @@ packages: node: ">= 4" resolution: integrity: sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A== - /import-fresh/2.0.0: - dependencies: - caller-path: 2.0.0 - resolve-from: 3.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-2BNVwVYS04bGH53dOSLUMEgipUY= /import-fresh/3.2.1: dependencies: parent-module: 1.0.1 @@ -3408,7 +3316,7 @@ packages: dependencies: chalk: 2.4.2 inquirer: 6.5.2 - rxjs: 6.5.4 + rxjs: 6.5.5 dev: true resolution: integrity: sha512-mzNrusCk5L6kSzlN0Ioddn8yzrhYNLli+Sn2ZxMuLechMYAzakiFCIULxsxlQb5YKzthLGfrFACcWoAvM7p04Q== @@ -3423,7 +3331,7 @@ packages: lodash: 4.17.15 mute-stream: 0.0.7 run-async: 2.4.0 - rxjs: 6.5.4 + rxjs: 6.5.5 string-width: 2.1.1 strip-ansi: 5.2.0 through: 2.3.8 @@ -3443,7 +3351,7 @@ packages: lodash: 4.17.15 mute-stream: 0.0.8 run-async: 2.4.0 - rxjs: 6.5.4 + rxjs: 6.5.5 string-width: 4.2.0 strip-ansi: 6.0.0 through: 2.3.8 @@ -3504,12 +3412,6 @@ packages: node: ">= 0.4" resolution: integrity: sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== - /is-directory/0.3.1: - dev: true - engines: - node: ">=0.10.0" - resolution: - integrity: sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= /is-docker/2.0.0: dev: true engines: @@ -3574,16 +3476,7 @@ packages: node: ">=0.10.0" resolution: integrity: sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== - /is-installed-globally/0.1.0: - dependencies: - global-dirs: 0.1.1 - is-path-inside: 1.0.1 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA= - /is-installed-globally/0.3.1: + /is-installed-globally/0.3.2: dependencies: global-dirs: 2.0.1 is-path-inside: 3.0.2 @@ -3591,19 +3484,13 @@ packages: engines: node: ">=8" resolution: - integrity: sha512-oiEcGoQbGc+3/iijAijrK2qFpkNoNjsHOm/5V5iaeydyrS/hnwaRCEgH5cpW0P3T1lSjV5piB7S5b5lEugNLhg== + integrity: sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g== /is-interactive/1.0.0: dev: true engines: node: ">=8" resolution: integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - /is-npm/3.0.0: - dev: true - engines: - node: ">=8" - resolution: - integrity: sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA== /is-npm/4.0.0: dev: true engines: @@ -3664,14 +3551,6 @@ packages: node: ">=6" resolution: integrity: sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ== - /is-path-inside/1.0.1: - dependencies: - path-is-inside: 1.0.2 - dev: true - engines: - node: ">=0.10.0" - resolution: - integrity: sha1-jvW33lBDej/cprToZe96pVy0gDY= /is-path-inside/2.1.0: dependencies: path-is-inside: 1.0.2 @@ -3822,12 +3701,12 @@ packages: node: ">=0.10.0" resolution: integrity: sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA== - /issue-regex/2.0.0: + /issue-regex/3.1.0: dev: true engines: - node: ">=6" + node: ">=10" resolution: - integrity: sha512-flaQ/45dMqCYSMzBQI/h3bcto6T70uN7kjNnI8n3gQU6no5p+QcnMWBNXkraED0YvbUymxKaqdvgPa09RZQM5A== + integrity: sha512-0RHjbtw9QXeSYnIEY5Yrp2QZrdtz21xBDV9C/GIlY2POmgoS6a7qjkYS5siRKXScnuAj5/SPv1C3YForNCHTJA== /js-string-escape/1.0.1: dev: true engines: @@ -3882,14 +3761,14 @@ packages: dev: true resolution: integrity: sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= - /json5/2.1.2: + /json5/2.1.3: dependencies: minimist: 1.2.5 engines: node: ">=6" hasBin: true resolution: - integrity: sha512-MoUOQ4WdiN3yxhm7NEVJSJrieAo5hNSLQ5sj05OTRHPL9HOBy8u4Bu88jsC1jvqAdN+E1bJmsUcZH+1HQxliqQ== + integrity: sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== /jsonparse/1.3.1: dev: true engines: @@ -3972,7 +3851,7 @@ packages: dependencies: inquirer: 7.1.0 inquirer-autosubmit-prompt: 0.2.0 - rxjs: 6.5.4 + rxjs: 6.5.5 through: 2.3.8 dev: true engines: @@ -4024,7 +3903,7 @@ packages: listr-update-renderer: 0.5.0_listr@0.14.3 listr-verbose-renderer: 0.5.0 p-map: 2.1.0 - rxjs: 6.5.4 + rxjs: 6.5.5 dev: true engines: node: ">=6" @@ -4082,7 +3961,6 @@ packages: dependencies: p-locate: 2.0.0 path-exists: 3.0.0 - dev: true engines: node: ">=4" resolution: @@ -4200,13 +4078,6 @@ packages: node: ">=8" resolution: integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== - /lru-cache/4.1.5: - dependencies: - pseudomap: 1.0.2 - yallist: 2.1.2 - dev: true - resolution: - integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== /lru-cache/5.1.1: dependencies: yallist: 3.1.1 @@ -4218,14 +4089,6 @@ packages: sourcemap-codec: 1.4.8 resolution: integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA== - /make-dir/1.3.0: - dependencies: - pify: 3.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== /make-dir/3.0.2: dependencies: semver: 6.3.0 @@ -4258,6 +4121,12 @@ packages: node: ">=4" resolution: integrity: sha1-plzSkIepJZi4eRJXpSPgISIqwfk= + /map-obj/4.1.0: + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g== /markdown-link/0.1.1: dev: true engines: @@ -4316,13 +4185,13 @@ packages: dev: true resolution: integrity: sha1-givM1l4RfFFPqxdrJZRdVBAKA8M= - /mdn-browser-compat-data/1.0.10: + /mdn-browser-compat-data/1.0.15: dependencies: extend: 3.0.2 engines: node: ">=8.0.0" resolution: - integrity: sha512-UusipwyfBuSYQ9+bJXCuLXRg1rPVZic3RSGKtMHPGNFAdIOvXKOrZ9pAN+4udGVW17QOZuR73NpV95BmUfWHxw== + integrity: sha512-0jxT4ZqqCzJJfktX9d4NKgfRENy60kFzhVNV0mXNHvlnw8KrMe2cKOlEKs/Bz+odlgO0rRZAxU0OKiptqVhAXg== /mem/4.3.0: dependencies: map-age-cleaner: 0.1.3 @@ -4382,6 +4251,24 @@ packages: node: ">=6" resolution: integrity: sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig== + /meow/6.1.0: + dependencies: + "@types/minimist": 1.2.0 + camelcase-keys: 6.2.2 + decamelize-keys: 1.1.0 + hard-rejection: 2.1.0 + minimist-options: 4.0.2 + normalize-package-data: 2.5.0 + read-pkg-up: 7.0.1 + redent: 3.0.0 + trim-newlines: 3.0.0 + type-fest: 0.8.1 + yargs-parser: 18.1.2 + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-iIAoeI01v6pmSfObAAWFoITAA4GgiT45m4SmJgoxtZfvI0fyZwhV4d0lTwiUXvAKIPlma05Feb2Xngl52Mj5Cg== /merge-stream/2.0.0: dev: true resolution: @@ -4419,6 +4306,12 @@ packages: node: ">=4" resolution: integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + /min-indent/1.0.0: + dev: true + engines: + node: ">=4" + resolution: + integrity: sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY= /minimatch/3.0.4: dependencies: brace-expansion: 1.1.11 @@ -4434,10 +4327,15 @@ packages: node: ">= 4" resolution: integrity: sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== - /minimist/0.0.10: + /minimist-options/4.0.2: + dependencies: + arrify: 1.0.1 + is-plain-obj: 1.1.0 dev: true + engines: + node: ">= 6" resolution: - integrity: sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= + integrity: sha512-seq4hpWkYSUh1y7NXxzucwAN9yVlBc3Upgdjz8vLCP97jG8kaOmzYrVH/m7tQ1NYD1wdtZbSLfdy4zFmRWuc/w== /minimist/1.2.5: resolution: integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== @@ -4450,14 +4348,13 @@ packages: node: ">=0.10.0" resolution: integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - /mkdirp/0.5.4: + /mkdirp/0.5.5: dependencies: minimist: 1.2.5 - deprecated: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) dev: true hasBin: true resolution: - integrity: sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw== + integrity: sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== /modify-values/1.0.1: dev: true engines: @@ -4505,6 +4402,14 @@ packages: dev: true resolution: integrity: sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== + /new-github-release-url/1.0.0: + dependencies: + type-fest: 0.4.1 + dev: true + engines: + node: ">=10" + resolution: + integrity: sha512-dle7yf655IMjyFUqn6Nxkb18r4AOAkzRcgcZv6WZ0IqrOH4QCEZ8Sm6I7XX21zvHdBeeMeTkhR9qT2Z0EJDx6A== /nice-try/1.0.5: dev: true resolution: @@ -4533,27 +4438,29 @@ packages: node: ">=8" resolution: integrity: sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== - /np/5.2.1: + /np/6.2.0: dependencies: "@samverschueren/stream-to-observable": 0.3.0 - any-observable: 0.5.1_rxjs@6.5.4 + any-observable: 0.5.1_rxjs@6.5.5 async-exit-hook: 2.0.1 chalk: 3.0.0 - cosmiconfig: 5.2.1 + cosmiconfig: 6.0.0 del: 4.1.1 + escape-goat: 3.0.0 escape-string-regexp: 2.0.0 - execa: 3.4.0 + execa: 4.0.0 github-url-from-git: 1.5.0 has-yarn: 2.1.0 hosted-git-info: 3.0.4 inquirer: 7.1.0 - is-installed-globally: 0.3.1 + is-installed-globally: 0.3.2 is-scoped: 2.1.0 - issue-regex: 2.0.0 + issue-regex: 3.1.0 listr: 0.14.3_listr@0.14.3 listr-input: 0.2.1 log-symbols: 3.0.0 - meow: 5.0.0 + meow: 6.1.0 + new-github-release-url: 1.0.0 npm-name: 5.5.0 onetime: 5.1.0 open: 7.0.3 @@ -4562,21 +4469,21 @@ packages: p-timeout: 3.2.0 pkg-dir: 4.2.0 read-pkg-up: 7.0.1 - rxjs: 6.5.4 - semver: 6.3.0 + rxjs: 6.5.5 + semver: 7.1.3 split: 1.0.1 symbol-observable: 1.2.0 terminal-link: 2.1.1 - update-notifier: 3.0.1 + update-notifier: 4.1.0 dev: true engines: git: ">=2.11.0" - node: ">=8" + node: ">=10" npm: ">=6.8.0" yarn: ">=1.7.0" hasBin: true resolution: - integrity: sha512-KGSFQGHob6FMOWCrBgaqJNu/G9ghA5Rfbt3NXOz2alKzEwC1Xvk/vIem6dbKm3HjyII1WpfI+Xymx51i2gJMhA== + integrity: sha512-4VKkGlCvl/iZCxWmS2VU8+s/Lh0TqLwdpuwOofspxEme1Hf7yF3cADG2TzSweuJXNsRDBQPjldZwTh6CxmZEKg== /npm-name/5.5.0: dependencies: got: 9.6.0 @@ -4591,14 +4498,6 @@ packages: node: ">=8" resolution: integrity: sha512-l7/uyVfEi2e3ho+ovaJZC0xlbwzXNUz3RxkxpfcnLuoGKAuYoo9YoJ/uy18PsTD8IziugGHks4t/mGmBJEZ4Qg== - /npm-run-path/2.0.2: - dependencies: - path-key: 2.0.1 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= /npm-run-path/3.1.0: dependencies: path-key: 3.1.1 @@ -4712,13 +4611,6 @@ packages: hasBin: true resolution: integrity: sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw== - /optimist/0.6.1: - dependencies: - minimist: 0.0.10 - wordwrap: 0.0.3 - dev: true - resolution: - integrity: sha1-2j6nRob6IaGaERwybpDrFaAZZoY= /optionator/0.8.3: dependencies: deep-is: 0.1.3 @@ -4736,7 +4628,7 @@ packages: dependencies: chalk: 3.0.0 cli-cursor: 3.1.0 - cli-spinners: 2.2.0 + cli-spinners: 2.3.0 is-interactive: 1.0.0 log-symbols: 3.0.0 mute-stream: 0.0.8 @@ -4794,36 +4686,34 @@ packages: /p-limit/1.3.0: dependencies: p-try: 1.0.0 - dev: true engines: node: ">=4" resolution: integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - /p-limit/2.2.2: + /p-limit/2.3.0: dependencies: p-try: 2.2.0 engines: node: ">=6" resolution: - integrity: sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ== + integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== /p-locate/2.0.0: dependencies: p-limit: 1.3.0 - dev: true engines: node: ">=4" resolution: integrity: sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= /p-locate/3.0.0: dependencies: - p-limit: 2.2.2 + p-limit: 2.3.0 engines: node: ">=6" resolution: integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== /p-locate/4.1.0: dependencies: - p-limit: 2.2.2 + p-limit: 2.3.0 dev: true engines: node: ">=8" @@ -4843,6 +4733,14 @@ packages: node: ">=8" resolution: integrity: sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + /p-map/4.0.0: + dependencies: + aggregate-error: 3.0.1 + dev: true + engines: + node: ">=10" + resolution: + integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== /p-memoize/3.1.0: dependencies: mem: 4.3.0 @@ -4861,7 +4759,6 @@ packages: resolution: integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== /p-try/1.0.0: - dev: true engines: node: ">=4" resolution: @@ -5067,6 +4964,13 @@ packages: node: ">=8" resolution: integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + /pkg-up/2.0.0: + dependencies: + find-up: 2.1.0 + engines: + node: ">=4" + resolution: + integrity: sha1-yBmscoBZpGHKscOImivjxJoATX8= /pkg-up/3.1.0: dependencies: find-up: 3.0.0 @@ -5088,13 +4992,13 @@ packages: node: ">=10" resolution: integrity: sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg== - /pnpm/4.12.1: + /pnpm/4.12.5: dev: true engines: node: ">=10.13" hasBin: true resolution: - integrity: sha512-zVO4olmIH0M8FVh6Y1SVgK1KEOPRV5E6eO6Wx/cboLn0Tu1/rHE7AHBhzQfym1VPU96SXi1VMgxm3Nugy39LZg== + integrity: sha512-EoAJjnlalTyXqG+ge0DMTlL+ZehA06+ns9F2zgEo/jrlW3WSU5LmUq5sEDODWRqJFikzVRBW6MW2FmfUOUmZWg== /prelude-ls/1.1.2: dev: true engines: @@ -5114,13 +5018,13 @@ packages: hasBin: true resolution: integrity: sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== - /prettier/2.0.2: + /prettier/2.0.4: dev: true engines: node: ">=10.13.0" hasBin: true resolution: - integrity: sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg== + integrity: sha512-SVJIQ51spzFDvh4fIbCLvciiDMCrRhlN3mbZvv/+ycjvmF5E73bKdGfU8QDLNmjYJf+lsGnDBC4UUnvTe5OO0w== /pretty-ms/6.0.1: dependencies: parse-ms: 2.1.0 @@ -5129,7 +5033,7 @@ packages: node: ">=10" resolution: integrity: sha512-ke4njoVmlotekHlHyCZ3wI/c5AMT8peuHs8rKJqekj/oR5G8lND2dVpicFlUz5cbZgE290vvkMuDwfj/OcW1kw== - /pretty-quick/2.0.1_prettier@2.0.2: + /pretty-quick/2.0.1_prettier@2.0.4: dependencies: chalk: 2.4.2 execa: 2.1.0 @@ -5137,7 +5041,7 @@ packages: ignore: 5.1.4 mri: 1.1.5 multimatch: 4.0.0 - prettier: 2.0.2 + prettier: 2.0.4 dev: true engines: node: ">=8" @@ -5161,10 +5065,6 @@ packages: node: ">=0.4.0" resolution: integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - /pseudomap/1.0.2: - dev: true - resolution: - integrity: sha1-8FKijacOYYkX7wqKw0wa5aaChrM= /pump/3.0.0: dependencies: end-of-stream: 1.4.4 @@ -5199,6 +5099,12 @@ packages: node: ">=4" resolution: integrity: sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g= + /quick-lru/4.0.1: + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== /randomatic/3.1.1: dependencies: is-number: 4.0.0 @@ -5345,6 +5251,15 @@ packages: node: ">=4" resolution: integrity: sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo= + /redent/3.0.0: + dependencies: + indent-string: 4.0.0 + strip-indent: 3.0.0 + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== /regenerate-unicode-properties/8.2.0: dependencies: regenerate: 1.4.0 @@ -5370,12 +5285,12 @@ packages: node: ">=6.5.0" resolution: integrity: sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== - /regexpp/3.0.0: + /regexpp/3.1.0: dev: true engines: node: ">=8" resolution: - integrity: sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g== + integrity: sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== /regexpu-core/4.7.0: dependencies: regenerate: 1.4.0 @@ -5467,12 +5382,6 @@ packages: node: ">=8" resolution: integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - /resolve-from/3.0.0: - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-six699nWiBvItuZTM17rywoYh0g= /resolve-from/4.0.0: dev: true engines: @@ -5542,14 +5451,14 @@ packages: hasBin: true resolution: integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - /rollup/2.2.0: + /rollup/2.3.3: engines: node: ">=10.0.0" hasBin: true optionalDependencies: fsevents: 2.1.2 resolution: - integrity: sha512-iAu/j9/WJ0i+zT0sAMuQnsEbmOKzdQ4Yxu5rbPs9aUCyqveI1Kw3H4Fi9NWfCOpb8luEySD2lDyFWL9CrLE8iw== + integrity: sha512-uJ9VNWk80mb4wDCSfd1AyHoSc9TrWbkZtnO6wbsMTp9muSWkT26Dvc99MX1yGCOTvUN1Skw/KpFzKdUDuZKTXA== /run-async/2.4.0: dependencies: is-promise: 2.1.0 @@ -5562,14 +5471,14 @@ packages: dev: true resolution: integrity: sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q== - /rxjs/6.5.4: + /rxjs/6.5.5: dependencies: tslib: 1.11.1 dev: true engines: npm: ">=2.0.0" resolution: - integrity: sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q== + integrity: sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== /safe-buffer/5.1.2: resolution: integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== @@ -5591,14 +5500,6 @@ packages: dev: true resolution: integrity: sha1-De4hahyUGrN+nvsXiPavxf9VN/w= - /semver-diff/2.1.0: - dependencies: - semver: 5.7.1 - dev: true - engines: - node: ">=0.10.0" - resolution: - integrity: sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY= /semver-diff/3.1.1: dependencies: semver: 6.3.0 @@ -5842,24 +5743,40 @@ packages: node: ">=8" resolution: integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - /string.prototype.trimleft/2.1.1: + /string.prototype.trimend/1.0.0: dependencies: define-properties: 1.1.3 - function-bind: 1.1.1 + es-abstract: 1.17.5 + dev: true + resolution: + integrity: sha512-EEJnGqa/xNfIg05SxiPSqRS7S9qwDhYts1TSLR1BQfYUfPe1stofgGKvwERK9+9yf+PpfBMlpBaCHucXGPQfUA== + /string.prototype.trimleft/2.1.2: + dependencies: + define-properties: 1.1.3 + es-abstract: 1.17.5 + string.prototype.trimstart: 1.0.0 dev: true engines: node: ">= 0.4" resolution: - integrity: sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag== - /string.prototype.trimright/2.1.1: + integrity: sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw== + /string.prototype.trimright/2.1.2: dependencies: define-properties: 1.1.3 - function-bind: 1.1.1 + es-abstract: 1.17.5 + string.prototype.trimend: 1.0.0 dev: true engines: node: ">= 0.4" resolution: - integrity: sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g== + integrity: sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg== + /string.prototype.trimstart/1.0.0: + dependencies: + define-properties: 1.1.3 + es-abstract: 1.17.5 + dev: true + resolution: + integrity: sha512-iCP8g01NFYiiBOnwG1Xc3WZLyoo+RuBymwIlWncShXDDJYWN6DbnM3odslBJdgCdRlq94B5s63NWAZlcn2CS4w== /string_decoder/1.1.1: dependencies: safe-buffer: 5.1.2 @@ -5924,12 +5841,6 @@ packages: node: ">=0.10.0" resolution: integrity: sha1-EG9l09PmotlAHKwOsM6LinArT3s= - /strip-eof/1.0.0: - dev: true - engines: - node: ">=0.10.0" - resolution: - integrity: sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= /strip-final-newline/2.0.0: dev: true engines: @@ -5951,18 +5862,26 @@ packages: node: ">=4" resolution: integrity: sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= + /strip-indent/3.0.0: + dependencies: + min-indent: 1.0.0 + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== /strip-json-comments/2.0.1: dev: true engines: node: ">=0.10.0" resolution: integrity: sha1-PFMZQukIwml8DsNEhYwobHygpgo= - /strip-json-comments/3.0.1: + /strip-json-comments/3.1.0: dev: true engines: node: ">=8" resolution: - integrity: sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== + integrity: sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w== /supertap/1.0.0: dependencies: arrify: 1.0.1 @@ -6036,14 +5955,6 @@ packages: node: ">=8" resolution: integrity: sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw== - /term-size/1.2.0: - dependencies: - execa: 0.7.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk= /term-size/2.2.0: dev: true engines: @@ -6148,19 +6059,25 @@ packages: node: ">=4" resolution: integrity: sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA= + /trim-newlines/3.0.0: + dev: true + engines: + node: ">=8" + resolution: + integrity: sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA== /trim-off-newlines/1.0.1: dev: true engines: node: ">=0.10.0" resolution: integrity: sha1-n5up2e+odkw4dpi8v+sshI8RrbM= - /ts-node/8.8.1_typescript@3.9.0-dev.20200328: + /ts-node/8.8.2_typescript@3.9.0-dev.20200406: dependencies: arg: 4.1.3 diff: 4.0.2 make-error: 1.3.6 source-map-support: 0.5.16 - typescript: 3.9.0-dev.20200328 + typescript: 3.9.0-dev.20200406 yn: 3.1.1 dev: true engines: @@ -6169,14 +6086,14 @@ packages: peerDependencies: typescript: ">=2.7" resolution: - integrity: sha512-10DE9ONho06QORKAaCBpPiFCdW+tZJuY/84tyypGtl6r+/C7Asq0dhqbRZURuUlLQtZxxDvT8eoj8cGW0ha6Bg== + integrity: sha512-duVj6BpSpUpD/oM4MfhO98ozgkp3Gt9qIp3jGxwU2DFvl/3IRaEAvbLa8G60uS7C77457e/m5TMowjedeRxI1Q== /tslib/1.11.1: resolution: integrity: sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA== - /tsutils/3.17.1_typescript@3.9.0-dev.20200328: + /tsutils/3.17.1_typescript@3.9.0-dev.20200406: dependencies: tslib: 1.11.1 - typescript: 3.9.0-dev.20200328 + typescript: 3.9.0-dev.20200406 dev: true engines: node: ">= 6" @@ -6204,6 +6121,12 @@ packages: node: ">=6" resolution: integrity: sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== + /type-fest/0.4.1: + dev: true + engines: + node: ">=6" + resolution: + integrity: sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== /type-fest/0.6.0: dev: true engines: @@ -6289,12 +6212,12 @@ packages: hasBin: true resolution: integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== - /typescript/3.9.0-dev.20200328: + /typescript/3.9.0-dev.20200406: engines: node: ">=4.2.0" hasBin: true resolution: - integrity: sha512-PVFPYznJRDM6R5FKjeIOcQ22xiE8DEICCL0iGEFvlo3KVEhj8Gyy49YaZTssQdLXxoziZP7qQL9WoLCGlU517A== + integrity: sha512-oDw6MZnp1bMrifgsisvC0Ea3Op8Uyajq88/1EBCi5J8lxuPLDgVTKm3uqArGpcwiX6QphMIWA124ZH2OQx+dzw== /ua-parser-js/0.7.21: resolution: integrity: sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ== @@ -6332,14 +6255,6 @@ packages: node: ">=4" resolution: integrity: sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg== - /unique-string/1.0.0: - dependencies: - crypto-random-string: 1.0.0 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo= /unique-string/2.0.0: dependencies: crypto-random-string: 2.0.0 @@ -6348,25 +6263,6 @@ packages: node: ">=8" resolution: integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== - /update-notifier/3.0.1: - dependencies: - boxen: 3.2.0 - chalk: 2.4.2 - configstore: 4.0.0 - has-yarn: 2.1.0 - import-lazy: 2.1.0 - is-ci: 2.0.0 - is-installed-globally: 0.1.0 - is-npm: 3.0.0 - is-yarn-global: 0.3.0 - latest-version: 5.1.0 - semver-diff: 2.1.0 - xdg-basedir: 3.0.0 - dev: true - engines: - node: ">=8" - resolution: - integrity: sha512-grrmrB6Zb8DUiyDIaeRTBCkgISYUgETNe7NglEbVsrLWXeESnlCSP50WfRSj/GmzMPl6Uchj24S/p80nP/ZQrQ== /update-notifier/4.1.0: dependencies: boxen: 4.2.0 @@ -6375,7 +6271,7 @@ packages: has-yarn: 2.1.0 import-lazy: 2.1.0 is-ci: 2.0.0 - is-installed-globally: 0.3.1 + is-installed-globally: 0.3.2 is-npm: 4.0.0 is-yarn-global: 0.3.0 latest-version: 5.1.0 @@ -6472,14 +6368,6 @@ packages: hasBin: true resolution: integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - /widest-line/2.0.1: - dependencies: - string-width: 2.1.1 - dev: true - engines: - node: ">=4" - resolution: - integrity: sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA== /widest-line/3.1.0: dependencies: string-width: 4.2.0 @@ -6494,12 +6382,10 @@ packages: node: ">=0.10.0" resolution: integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - /wordwrap/0.0.3: + /wordwrap/1.0.0: dev: true - engines: - node: ">=0.4.0" resolution: - integrity: sha1-o9XabNXAvAAI03I0u68b7WMFkQc= + integrity: sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= /wrap-ansi/3.0.1: dependencies: string-width: 2.1.1 @@ -6523,14 +6409,6 @@ packages: dev: true resolution: integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - /write-file-atomic/2.4.3: - dependencies: - graceful-fs: 4.2.3 - imurmurhash: 0.1.4 - signal-exit: 3.0.3 - dev: true - resolution: - integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== /write-file-atomic/3.0.3: dependencies: imurmurhash: 0.1.4 @@ -6542,18 +6420,12 @@ packages: integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== /write/1.0.3: dependencies: - mkdirp: 0.5.4 + mkdirp: 0.5.5 dev: true engines: node: ">=4" resolution: integrity: sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== - /xdg-basedir/3.0.0: - dev: true - engines: - node: ">=4" - resolution: - integrity: sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ= /xdg-basedir/4.0.0: dev: true engines: @@ -6570,10 +6442,6 @@ packages: dev: true resolution: integrity: sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== - /yallist/2.1.2: - dev: true - resolution: - integrity: sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= /yallist/3.1.1: dev: true resolution: @@ -6640,40 +6508,40 @@ specifiers: "@rollup/plugin-commonjs": ^11.0.2 "@rollup/plugin-json": ^4.0.2 "@rollup/pluginutils": ^3.0.8 - "@types/babel__core": ^7.1.6 - "@types/node": ^13.9.5 - "@types/prettier": ^1.19.1 + "@types/babel__core": ^7.1.7 + "@types/node": ^13.11.0 + "@types/prettier": ^2.0.0 "@types/semver": ^7.1.0 - "@typescript-eslint/eslint-plugin": ^2.25.0 - "@typescript-eslint/parser": ^2.25.0 - "@wessberg/browserslist-generator": ^1.0.34 - "@wessberg/rollup-plugin-ts": ^1.2.21 + "@typescript-eslint/eslint-plugin": ^2.27.0 + "@typescript-eslint/parser": ^2.27.0 + "@wessberg/browserslist-generator": ^1.0.35 + "@wessberg/rollup-plugin-ts": ^1.2.23 "@wessberg/scaffold": ^1.0.29 "@wessberg/stringutil": ^1.0.19 "@wessberg/ts-clone-node": ^0.3.8 "@wessberg/ts-config": ^1.0.8 - ava: 3.5.1 + ava: 3.6.0 babel-preset-minify: ^0.5.1 - browserslist: ^4.11.0 - chalk: ^3.0.0 + browserslist: ^4.11.1 + chalk: ^4.0.0 core-js: ^3.6.4 eslint: ^6.8.0 eslint-config-prettier: ^6.10.1 - eslint-plugin-import: ^2.20.1 + eslint-plugin-import: ^2.20.2 eslint-plugin-jsdoc: ^22.1.0 husky: ^4.2.3 magic-string: ^0.25.7 - np: 5.2.1 - pnpm: ^4.12.1 - prettier: ^2.0.2 + np: 6.2.0 + pnpm: ^4.12.5 + prettier: ^2.0.4 pretty-quick: ^2.0.1 rimraf: ^3.0.2 - rollup: ^2.2.0 + rollup: ^2.3.3 slash: ^3.0.0 standard-changelog: ^2.0.21 - ts-node: 8.8.1 + ts-node: 8.8.2 tslib: ^1.11.1 - typescript: ^3.9.0-beta + typescript: ^3.9.0-dev.20200406 typescript-3-0-1: "npm:typescript@3.0.1" typescript-3-1-1: "npm:typescript@3.1.1" typescript-3-2-1: "npm:typescript@3.2.1" diff --git a/src/lib/regenerator/regenerator.ts b/src/lib/regenerator/regenerator.ts index 7fcd2ba7..5253bbc6 100644 --- a/src/lib/regenerator/regenerator.ts +++ b/src/lib/regenerator/regenerator.ts @@ -5,7 +5,6 @@ export const REGENERATOR_SOURCE = `\ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - "use strict"; var Op = Object.prototype; @@ -17,16 +16,16 @@ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - generator._invoke = makeInvokeMethod(innerFn, self, context); + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); - return generator; + return generator; } // Try/catch helper to minimize deoptimizations. Returns a completion @@ -40,11 +39,11 @@ function wrap(innerFn, outerFn, self, tryLocsList) { // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } } var GenStateSuspendedStart = "suspendedStart"; @@ -68,230 +67,233 @@ function GeneratorFunctionPrototype() {} // don't natively support it. var IteratorPrototype = {}; IteratorPrototype[iteratorSymbol] = function () { - return this; + return this; }; var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = - Generator.prototype = Object.create(IteratorPrototype); + Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; GeneratorFunctionPrototype[toStringTagSymbol] = - GeneratorFunction.displayName = "GeneratorFunction"; + GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function(method) { - prototype[method] = function(arg) { - return this._invoke(method, arg); - }; - }); + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); } function isGeneratorFunction (genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor - ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" - : false; -} + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; +}; function mark (genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - if (!(toStringTagSymbol in genFun)) { - genFun[toStringTagSymbol] = "GeneratorFunction"; - } - } - genFun.prototype = Object.create(Gp); - return genFun; -} + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; +}; // Within the body of any async function, \`await x\` is transformed to // \`yield regeneratorRuntime.awrap(x)\`, so that the runtime can test // \`hasOwn.call(value, "__await")\` to determine if the yielded value is // meant to be awaited. -function awrap(arg) { - return { __await: arg }; -} +function awrap (arg) { + return { __await: arg }; +}; -function AsyncIterator(generator) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && - typeof value === "object" && - hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function(value) { - invoke("next", value, resolve, reject); - }, function(err) { - invoke("throw", err, resolve, reject); - }); - } - - return Promise.resolve(value).then(function(unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. - result.value = unwrapped; - resolve(result); - }, function(error) { - // If a rejected Promise was yielded, throw the rejection back - // into the async generator function so it can be handled there. - return invoke("throw", error, resolve, reject); - }); - } - } - - var previousPromise; - - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function(resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then( - callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg - ) : callInvokeWithMethodAndArg(); - } - - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - this._invoke = enqueue; +function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return PromiseImpl.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return PromiseImpl.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); AsyncIterator.prototype[asyncIteratorSymbol] = function () { - return this; + return this; }; // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. -function async (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator( - wrap(innerFn, outerFn, self, tryLocsList) - ); - - return isGeneratorFunction(outerFn) - ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); + function async (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + if (PromiseImpl === void 0) PromiseImpl = Promise; + + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList), + PromiseImpl + ); + + return isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); }; function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done - ? GenStateCompleted - : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; } // Call delegate.iterator[context.method](context.arg) and handle the @@ -299,81 +301,82 @@ function makeInvokeMethod(innerFn, self, context) { // delegate iterator, or by modifying context.method and context.arg, // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method always terminates the yield* loop. - context.delegate = null; - - if (context.method === "throw") { - if (delegate.iterator.return) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } - - context.method = "throw"; - context.arg = new TypeError( - "The iterator does not provide a 'throw' method"); - } - - return ContinueSentinel; - } - - var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - - var info = record.arg; - - if (! info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; - - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; - - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - - } else { - // Re-yield the result returned by the delegate method. - return info; - } - - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + // Note: ["return"] must be used for ES3 parsing compatibility. + if (delegate.iterator["return"]) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; } // Define Generator.prototype.{next,throw,return} in terms of the @@ -388,318 +391,319 @@ Gp[toStringTagSymbol] = "Generator"; // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. Gp[iteratorSymbol] = function() { - return this; + return this; }; Gp.toString = function() { - return "[object Generator]"; + return "[object Generator]"; }; function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; + var entry = { tryLoc: locs[0] }; - if (1 in locs) { - entry.catchLoc = locs[1]; - } + if (1 in locs) { + entry.catchLoc = locs[1]; + } - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } - this.tryEntries.push(entry); + this.tryEntries.push(entry); } function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; } function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); } function keys (object) { - var keys = []; - for (var key in object) { - keys.push(key); - } - keys.reverse(); - - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; }; function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } - - if (!isNaN(iterable.length)) { - var i = -1, next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } - - next.value = undefined; - next.done = true; - - return next; - }; - - return next.next = next; - } - } - - // Return an iterator with no values. - return { next: doneResult }; + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; } function doneResult() { - return { value: undefined, done: true }; + return { value: undefined, done: true }; } Context.prototype = { - constructor: Context, - - reset: function(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - - this.method = "next"; - this.arg = undefined; - - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && - hasOwn.call(this, name) && - !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, - - stop: function() { - this.done = true; - - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } - - return this.rval; - }, - - dispatchException: function(exception) { - if (this.done) { - throw exception; - } - - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } - - return !! caught; - } - - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } - - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); - - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, - - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && - hasOwn.call(entry, "finallyLoc") && - this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - - if (finallyEntry && - (type === "break" || - type === "continue") && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } - - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); - }, - - complete: function(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || - record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; - }, - - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, - - "catch": function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, - - delegateYield: function(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } - - return ContinueSentinel; - } + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } }; // Export a default namespace that plays well with Rollup export default { - wrap, - isGeneratorFunction, - AsyncIterator, - mark, - awrap, - async, - keys, - values -}`; + wrap, + isGeneratorFunction, + AsyncIterator, + mark, + awrap, + async, + keys, + values +}; +`;