Updating NPM dependencies
This commit is contained in:
2
node_modules/@babel/helper-plugin-utils/lib/index.js
generated
vendored
2
node_modules/@babel/helper-plugin-utils/lib/index.js
generated
vendored
@@ -31,7 +31,7 @@ function copyApiObject(api) {
|
||||
}
|
||||
}
|
||||
|
||||
return Object.assign({}, proto, {}, api);
|
||||
return Object.assign({}, proto, api);
|
||||
}
|
||||
|
||||
function has(obj, key) {
|
||||
|
||||
31
node_modules/@babel/helper-plugin-utils/package.json
generated
vendored
31
node_modules/@babel/helper-plugin-utils/package.json
generated
vendored
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"_from": "@babel/helper-plugin-utils@^7.0.0",
|
||||
"_id": "@babel/helper-plugin-utils@7.8.3",
|
||||
"_id": "@babel/helper-plugin-utils@7.10.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==",
|
||||
"_integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
|
||||
"_location": "/@babel/helper-plugin-utils",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
@@ -17,21 +17,35 @@
|
||||
"fetchSpec": "^7.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/plugin-syntax-async-generators",
|
||||
"/@babel/plugin-syntax-bigint",
|
||||
"/@babel/plugin-syntax-class-properties",
|
||||
"/@babel/plugin-syntax-import-meta",
|
||||
"/@babel/plugin-syntax-json-strings",
|
||||
"/@babel/plugin-syntax-logical-assignment-operators",
|
||||
"/@babel/plugin-syntax-nullish-coalescing-operator",
|
||||
"/@babel/plugin-syntax-numeric-separator",
|
||||
"/@babel/plugin-syntax-object-rest-spread",
|
||||
"/@babel/plugin-syntax-optional-catch-binding",
|
||||
"/@babel/plugin-syntax-optional-chaining",
|
||||
"/@babel/plugin-syntax-top-level-await",
|
||||
"/babel-plugin-istanbul"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz",
|
||||
"_shasum": "9ea293be19babc0f52ff8ca88b34c3611b208670",
|
||||
"_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz",
|
||||
"_shasum": "2f75a831269d4f677de49986dff59927533cf375",
|
||||
"_spec": "@babel/helper-plugin-utils@^7.0.0",
|
||||
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play/node_modules/babel-plugin-istanbul",
|
||||
"_where": "/home/codespace/workspace/upload-google-play/node_modules/babel-plugin-istanbul",
|
||||
"author": {
|
||||
"name": "Logan Smyth",
|
||||
"email": "loganfsmyth@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "General utilities for plugins to use",
|
||||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017",
|
||||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
@@ -41,7 +55,8 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-utils"
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-helper-plugin-utils"
|
||||
},
|
||||
"version": "7.8.3"
|
||||
"version": "7.10.4"
|
||||
}
|
||||
|
||||
95
node_modules/@babel/helper-plugin-utils/src/index.js
generated
vendored
95
node_modules/@babel/helper-plugin-utils/src/index.js
generated
vendored
@@ -1,95 +0,0 @@
|
||||
export function declare(builder) {
|
||||
return (api, options, dirname) => {
|
||||
if (!api.assertVersion) {
|
||||
// Inject a custom version of 'assertVersion' for Babel 6 and early
|
||||
// versions of Babel 7's beta that didn't have it.
|
||||
api = Object.assign(copyApiObject(api), {
|
||||
assertVersion(range) {
|
||||
throwVersionError(range, api.version);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return builder(api, options || {}, dirname);
|
||||
};
|
||||
}
|
||||
|
||||
function copyApiObject(api) {
|
||||
// Babel >= 7 <= beta.41 passed the API as a new object that had
|
||||
// babel/core as the prototype. While slightly faster, it also
|
||||
// means that the Object.assign copy below fails. Rather than
|
||||
// keep complexity, the Babel 6 behavior has been reverted and this
|
||||
// normalizes all that for Babel 7.
|
||||
let proto = null;
|
||||
if (typeof api.version === "string" && /^7\./.test(api.version)) {
|
||||
proto = Object.getPrototypeOf(api);
|
||||
if (
|
||||
proto &&
|
||||
(!has(proto, "version") ||
|
||||
!has(proto, "transform") ||
|
||||
!has(proto, "template") ||
|
||||
!has(proto, "types"))
|
||||
) {
|
||||
proto = null;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
...proto,
|
||||
...api,
|
||||
};
|
||||
}
|
||||
|
||||
function has(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
}
|
||||
|
||||
function throwVersionError(range, version) {
|
||||
if (typeof range === "number") {
|
||||
if (!Number.isInteger(range)) {
|
||||
throw new Error("Expected string or integer value.");
|
||||
}
|
||||
range = `^${range}.0.0-0`;
|
||||
}
|
||||
if (typeof range !== "string") {
|
||||
throw new Error("Expected string or integer value.");
|
||||
}
|
||||
|
||||
const limit = Error.stackTraceLimit;
|
||||
|
||||
if (typeof limit === "number" && limit < 25) {
|
||||
// Bump up the limit if needed so that users are more likely
|
||||
// to be able to see what is calling Babel.
|
||||
Error.stackTraceLimit = 25;
|
||||
}
|
||||
|
||||
let err;
|
||||
if (version.slice(0, 2) === "7.") {
|
||||
err = new Error(
|
||||
`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` +
|
||||
`You'll need to update your @babel/core version.`,
|
||||
);
|
||||
} else {
|
||||
err = new Error(
|
||||
`Requires Babel "${range}", but was loaded with "${version}". ` +
|
||||
`If you are sure you have a compatible version of @babel/core, ` +
|
||||
`it is likely that something in your build process is loading the ` +
|
||||
`wrong version. Inspect the stack trace of this error to look for ` +
|
||||
`the first entry that doesn't mention "@babel/core" or "babel-core" ` +
|
||||
`to see what is calling Babel.`,
|
||||
);
|
||||
}
|
||||
|
||||
if (typeof limit === "number") {
|
||||
Error.stackTraceLimit = limit;
|
||||
}
|
||||
|
||||
throw Object.assign(
|
||||
err,
|
||||
({
|
||||
code: "BABEL_VERSION_UNSUPPORTED",
|
||||
version,
|
||||
range,
|
||||
}: any),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user