From 3bd1df6b9106f0a08806ed0aa6cc9c0737ddda82 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Mon, 4 Dec 2023 18:05:08 +0100 Subject: [PATCH] fix: bundle to ES5 syntax Close #1023 # Conflicts: # packages/@interactjs/dev-tools/visualizer/plugin.ts --- babel.config.js | 5 +- package.json | 3 +- scripts/babel/for-of-array.js | 149 ---------------------------------- scripts/bin/release.js | 2 + scripts/bundler.js | 15 +++- scripts/utils.js | 30 ++++--- yarn.lock | 108 +----------------------- 7 files changed, 35 insertions(+), 277 deletions(-) delete mode 100644 scripts/babel/for-of-array.js diff --git a/babel.config.js b/babel.config.js index 7c4b0ddb7..4e7589ee2 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,11 +1,13 @@ const isProd = process.env.NODE_ENV === 'production' module.exports = { + targets: { ie: 9 }, + browserslistConfigFile: false, presets: [ [require.resolve('@babel/preset-env'), { exclude: ['transform-regenerator'] }], [ require.resolve('@babel/preset-typescript'), - { isTsx: false, onlyRemoveTypeImports: true, allExtensions: true, allowDeclareFields: true }, + { isTSX: false, onlyRemoveTypeImports: true, allExtensions: true, allowDeclareFields: true }, ], ], @@ -18,7 +20,6 @@ module.exports = { regenerator: false, }, ], - isProd && require.resolve('./scripts/babel/for-of-array'), isProd && require.resolve('@babel/plugin-transform-optional-catch-binding'), isProd && [require.resolve('@babel/plugin-transform-optional-chaining'), { loose: true }], isProd && [require.resolve('@babel/plugin-transform-nullish-coalescing-operator'), { loose: true }], diff --git a/package.json b/package.json index dbc173301..b4da26cb1 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "@babel/plugin-transform-runtime": "^7.18.2", "@babel/preset-env": "^7.18.2", "@babel/preset-typescript": "^7.17.12", - "@babel/register": "^7.17.7", "@babel/runtime": "^7.18.3", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-node-resolve": "^15.2.3", @@ -101,7 +100,7 @@ "symbol-tree": "^3.2.4", "temp": "^0.9.4", "terser": "^5.14.1", - "ts-node": "^10.8.1", + "ts-node": "^10.9.1", "typedoc": "^0.25.4", "typedoc-plugin-markdown": "^3.17.1", "typedoc-plugin-rename-defaults": "^0.7.0", diff --git a/scripts/babel/for-of-array.js b/scripts/babel/for-of-array.js deleted file mode 100644 index 670bd2cd9..000000000 --- a/scripts/babel/for-of-array.js +++ /dev/null @@ -1,149 +0,0 @@ -/* eslint-disable one-var, space-before-function-paren, comma-dangle */ -module.exports = function ({ template, types: t }) { - const pushComputedProps = pushComputedPropsLoose - - const buildForOfArray = template(` - for (var KEY = 0; KEY < ARR.length; KEY++) BODY; - `) - - const buildForOfLoose = template(` - for (var INDEX = 0; INDEX < ARRAY.length; INDEX++) { - INTERMEDIATE; - ID = ARRAY[INDEX]; - } - `) - - function _ForOfStatementArray(path) { - const { node, scope } = path - const nodes = [] - let right = node.right - - if (!t.isIdentifier(right) || !scope.hasBinding(right.name)) { - const uid = scope.generateUidIdentifier('arr') - nodes.push(t.variableDeclaration('var', [t.variableDeclarator(uid, right)])) - right = uid - } - - const iterationKey = scope.generateUidIdentifier('i') - - let loop = buildForOfArray({ - BODY: node.body, - KEY: iterationKey, - ARR: right, - }) - - t.inherits(loop, node) - t.ensureBlock(loop) - - const iterationValue = t.memberExpression(right, iterationKey, true) - - const left = node.left - if (t.isVariableDeclaration(left)) { - left.declarations[0].init = iterationValue - loop.body.body.unshift(left) - } else { - loop.body.body.unshift(t.expressionStatement(t.assignmentExpression('=', left, iterationValue))) - } - - if (path.parentPath.isLabeledStatement()) { - loop = t.labeledStatement(path.parentPath.node.label, loop) - } - - nodes.push(loop) - - return nodes - } - - function replaceWithArray(path) { - if (path.parentPath.isLabeledStatement()) { - path.parentPath.replaceWithMultiple(_ForOfStatementArray(path)) - } else { - path.replaceWithMultiple(_ForOfStatementArray(path)) - } - } - - return { - visitor: { - ForOfStatement(path, state) { - const right = path.get('right') - if ( - right.isArrayExpression() || - right.isGenericType('Array') || - t.isArrayTypeAnnotation(right.getTypeAnnotation()) - ) { - replaceWithArray(path) - return - } - - const { node } = path - const build = pushComputedProps(path, state) - const declar = build.declar - const loop = build.loop - const block = loop.body - - // ensure that it's a block so we can take all its statements - path.ensureBlock() - - // add the value declaration to the new loop body - if (declar) { - block.body.push(declar) - } - - // push the rest of the original loop body onto our new body - block.body = block.body.concat(node.body.body) - - t.inherits(loop, node) - t.inherits(loop.body, node.body) - - if (build.replaceParent) { - path.parentPath.replaceWithMultiple(build.node) - path.remove() - } else { - path.replaceWithMultiple(build.node) - } - }, - }, - } - - function pushComputedPropsLoose(path, file) { - const { node, scope, parent } = path - const { left } = node - let declar, id, intermediate - - if (t.isIdentifier(left) || t.isPattern(left) || t.isMemberExpression(left)) { - // for (i of test), for ({ i } of test) - id = left - intermediate = null - } else if (t.isVariableDeclaration(left)) { - // for (let i of test) - id = scope.generateUidIdentifier('ref') - declar = t.variableDeclaration(left.kind, [t.variableDeclarator(left.declarations[0].id, id)]) - intermediate = t.variableDeclaration('var', [t.variableDeclarator(id)]) - } else { - throw file.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`) - } - - const loop = buildForOfLoose({ - ARRAY: node.right, - INDEX: scope.generateUidIdentifier('i'), - ID: id, - INTERMEDIATE: intermediate, - }) - - // - const isLabeledParent = t.isLabeledStatement(parent) - let labeled - - if (isLabeledParent) { - labeled = t.labeledStatement(parent.label, loop) - } - - return { - name: '@interactjs/_dev:for-of-array', - replaceParent: isLabeledParent, - declar, - node: labeled || loop, - loop, - } - } -} diff --git a/scripts/bin/release.js b/scripts/bin/release.js index 058ab25dd..f5bf3699c 100644 --- a/scripts/bin/release.js +++ b/scripts/bin/release.js @@ -95,6 +95,8 @@ async function runBuild() { if (!isPro) { // bundle interactjs shell.exec('npm run build:bundle') + // ensure that the output is valid ES5 syntax + shell.exec('acord --silent --ecma5 packages/interactjs/dist/**/*.js') // generate docs shell.exec('npm run build:docs') diff --git a/scripts/bundler.js b/scripts/bundler.js index feaea51a2..93b382373 100644 --- a/scripts/bundler.js +++ b/scripts/bundler.js @@ -7,7 +7,7 @@ const terser = require('@rollup/plugin-terser') const { rollup, defineConfig } = require('rollup') const cjs = require('rollup-plugin-cjs-es') -const { getModuleDirectories, getBabelConfig, extendBabelOptions, errorExit } = require('./utils') +const { getModuleDirectories, extendBabelOptions, errorExit, getEsnextBabelOptions } = require('./utils') process.env.NODE_PATH = `${process.env.NODE_PATH || ''}:${path.resolve(__dirname, '..', 'node_modules')}` require('module').Module._initPaths() @@ -44,12 +44,19 @@ const createRollupConfigs = async ({ { babelrc: false, configFile: false, + browserslistConfigFile: false, + targets: format === 'es' ? undefined : { ie: 9 }, babelHelpers: 'bundled', skipPreflightCheck: true, extensions: ['.ts', '.tsx', '.js', '.jsx', '.vue'], - plugins: [require.resolve('@babel/plugin-transform-logical-assignment-operators')].filter(Boolean), + plugins: [ + [ + require.resolve('@babel/plugin-transform-runtime'), + { helpers: false, regenerator: format !== 'es' }, + ], + ], }, - getBabelConfig(), + getEsnextBabelOptions(format === 'es' ? { exclude: ['transform-regenerator'] } : {}), ) return defineConfig({ @@ -69,7 +76,7 @@ const createRollupConfigs = async ({ preventAssignment: true, values: Object.entries({ npm_package_version: process.env.npm_package_version, - IJS_BUNDLE: 'true', + IJS_BUNDLE: '1', ...env, }).reduce((acc, [key, value]) => { acc[`process.env.${key}`] = JSON.stringify(value) diff --git a/scripts/utils.js b/scripts/utils.js index 836ae4071..b8118e006 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -35,31 +35,30 @@ const getBuiltJsFiles = ({ cwd = process.cwd() } = {}) => nodir: true, }) -function getBabelConfig() { - let babelConfig - - try { - babelConfig = require(path.join(process.cwd(), 'babel.config.js')) - } catch (e) { - babelConfig = require('../babel.config.js') - } - - return babelConfig -} - -function getEsnextBabelOptions() { +function getEsnextBabelOptions(presetEnvOptions) { return { babelrc: false, configFile: false, sourceMaps: true, presets: [ - [require.resolve('@babel/preset-typescript'), { allExtensions: true, allowDeclareFields: true }], + [require.resolve('@babel/preset-env'), presetEnvOptions], + [ + require.resolve('@babel/preset-typescript'), + { isTSX: false, onlyRemoveTypeImports: true, allExtensions: true, allowDeclareFields: true }, + ], ], plugins: [ require.resolve('./babel/vue-sfc'), require.resolve('@babel/plugin-proposal-optional-catch-binding'), - [require.resolve('@babel/plugin-proposal-optional-chaining'), { loose: true }], + require.resolve('@babel/plugin-proposal-optional-chaining'), + require.resolve('@babel/plugin-transform-nullish-coalescing-operator'), + require.resolve('@babel/plugin-transform-logical-assignment-operators'), ], + assumptions: { + iterableIsArray: true, + noDocumentAll: true, + noNewArrows: true, + }, } } @@ -202,7 +201,6 @@ module.exports = { sourcesIgnoreGlobs, lintIgnoreGlobs, getBuiltJsFiles, - getBabelConfig, getEsnextBabelOptions, extendBabelOptions, getDevPackageDir, diff --git a/yarn.lock b/yarn.lock index 73740c46f..1a889e783 100644 --- a/yarn.lock +++ b/yarn.lock @@ -992,17 +992,6 @@ "@babel/plugin-transform-modules-commonjs" "^7.23.3" "@babel/plugin-transform-typescript" "^7.23.3" -"@babel/register@^7.17.7": - version "7.22.15" - resolved "https://registry.npmjs.org/@babel/register/-/register-7.22.15.tgz#c2c294a361d59f5fa7bcc8b97ef7319c32ecaec7" - integrity sha512-V3Q3EqoQdn65RCgTLwauZaTfd1ShhwPmbBv+1dkZV/HpCGMKVyn6oFcRlI7RaKqiDQjX2Qd3AuoEguBgdjIKlg== - dependencies: - clone-deep "^4.0.1" - find-cache-dir "^2.0.0" - make-dir "^2.1.0" - pirates "^4.0.5" - source-map-support "^0.5.16" - "@babel/regjsgen@^0.8.0": version "0.8.0" resolved "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" @@ -2884,15 +2873,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - clone@^2.1.2: version "2.1.2" resolved "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" @@ -4028,15 +4008,6 @@ finalhandler@1.1.2: statuses "~1.5.0" unpipe "~1.0.0" -find-cache-dir@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" - integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== - dependencies: - commondir "^1.0.1" - make-dir "^2.0.0" - pkg-dir "^3.0.0" - find-cache-dir@^3: version "3.3.2" resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" @@ -4046,13 +4017,6 @@ find-cache-dir@^3: make-dir "^3.0.2" pkg-dir "^4.1.0" -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - find-up@^4.0.0, find-up@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" @@ -4771,13 +4735,6 @@ is-plain-obj@^1.1.0: resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== -is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - is-plain-object@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" @@ -4886,11 +4843,6 @@ isexe@^2.0.0: resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.2" resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" @@ -5684,14 +5636,6 @@ listr2@6.6.1: rfdc "^1.3.0" wrap-ansi "^8.1.0" -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - locate-path@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -5792,14 +5736,6 @@ magic-string@^0.30.3, magic-string@^0.30.5: dependencies: "@jridgewell/sourcemap-codec" "^1.4.15" -make-dir@^2.0.0, make-dir@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" - integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== - dependencies: - pify "^4.0.1" - semver "^5.6.0" - make-dir@^3.0.2: version "3.1.0" resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" @@ -6263,7 +6199,7 @@ p-finally@^1.0.0: resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== -p-limit@^2.0.0, p-limit@^2.2.0: +p-limit@^2.2.0: version "2.3.0" resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== @@ -6277,13 +6213,6 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - p-locate@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -6369,11 +6298,6 @@ path-browserify@^1.0.1: resolved "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -6432,12 +6356,7 @@ pidtree@0.6.0: resolved "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pirates@^4.0.4, pirates@^4.0.5: +pirates@^4.0.4: version "4.0.6" resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== @@ -6449,13 +6368,6 @@ pkg-dir@4.2.0, pkg-dir@^4.1.0, pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - postcss-media-query-parser@^0.2.3: version "0.2.3" resolved "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" @@ -7022,11 +6934,6 @@ scheduler@^0.23.0: dependencies: loose-envify "^1.1.0" -semver@^5.6.0: - version "5.7.2" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" @@ -7088,13 +6995,6 @@ setprototypeof@1.1.0: resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -7182,7 +7082,7 @@ smob@^1.0.0: resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== -source-map-support@^0.5.16, source-map-support@^0.5.6, source-map-support@~0.5.20: +source-map-support@^0.5.6, source-map-support@~0.5.20: version "0.5.21" resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -7725,7 +7625,7 @@ ts-api-utils@^1.0.1: resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== -ts-node@^10.8.1: +ts-node@^10.9.1: version "10.9.1" resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==