Updated to v1.7.3

This commit is contained in:
Henry Whitaker
2020-07-03 12:15:02 +01:00
parent 6516e43a2a
commit c5b9e6adc5
397 changed files with 28210 additions and 5117 deletions

View File

@@ -31,7 +31,7 @@ function copyApiObject(api) {
}
}
return Object.assign(Object.assign({}, proto), api);
return Object.assign({}, proto, api);
}
function has(obj, key) {

View File

@@ -1,33 +1,33 @@
{
"_args": [
[
"@babel/helper-plugin-utils@7.10.1",
"@babel/helper-plugin-utils@7.10.4",
"/home/henry/Documents/git/Speedtest-tracker-docker/conf/site"
]
],
"_development": true,
"_from": "@babel/helper-plugin-utils@7.10.1",
"_id": "@babel/helper-plugin-utils@7.10.1",
"_from": "@babel/helper-plugin-utils@7.10.4",
"_id": "@babel/helper-plugin-utils@7.10.4",
"_inBundle": false,
"_integrity": "sha512-fvoGeXt0bJc7VMWZGCAEBEMo/HAjW2mP8apF5eXK0wSqwLAVHAISCWRoLMBMUs2kqeaG77jltVqu4Hn8Egl3nA==",
"_integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
"_location": "/@babel/plugin-transform-react-jsx-source/@babel/helper-plugin-utils",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@babel/helper-plugin-utils@7.10.1",
"raw": "@babel/helper-plugin-utils@7.10.4",
"name": "@babel/helper-plugin-utils",
"escapedName": "@babel%2fhelper-plugin-utils",
"scope": "@babel",
"rawSpec": "7.10.1",
"rawSpec": "7.10.4",
"saveSpec": null,
"fetchSpec": "7.10.1"
"fetchSpec": "7.10.4"
},
"_requiredBy": [
"/@babel/plugin-transform-react-jsx-source"
],
"_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.1.tgz",
"_spec": "7.10.1",
"_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz",
"_spec": "7.10.4",
"_where": "/home/henry/Documents/git/Speedtest-tracker-docker/conf/site",
"author": {
"name": "Logan Smyth",
@@ -37,7 +37,7 @@
"url": "https://github.com/babel/babel/issues"
},
"description": "General utilities for plugins to use",
"gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf",
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
"homepage": "https://babeljs.io/",
"license": "MIT",
"main": "lib/index.js",
@@ -50,5 +50,5 @@
"url": "git+https://github.com/babel/babel.git",
"directory": "packages/babel-helper-plugin-utils"
},
"version": "7.10.1"
"version": "7.10.4"
}

View File

@@ -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),
);
}

View File

@@ -1,47 +1,47 @@
{
"_args": [
[
"@babel/plugin-transform-react-jsx-source@7.10.1",
"@babel/plugin-transform-react-jsx-source@7.10.4",
"/home/henry/Documents/git/Speedtest-tracker-docker/conf/site"
]
],
"_development": true,
"_from": "@babel/plugin-transform-react-jsx-source@7.10.1",
"_id": "@babel/plugin-transform-react-jsx-source@7.10.1",
"_from": "@babel/plugin-transform-react-jsx-source@7.10.4",
"_id": "@babel/plugin-transform-react-jsx-source@7.10.4",
"_inBundle": false,
"_integrity": "sha512-neAbaKkoiL+LXYbGDvh6PjPG+YeA67OsZlE78u50xbWh2L1/C81uHiNP5d1fw+uqUIoiNdCC8ZB+G4Zh3hShJA==",
"_integrity": "sha512-FTK3eQFrPv2aveerUSazFmGygqIdTtvskG50SnGnbEUnRPcGx2ylBhdFIzoVS1ty44hEgcPoCAyw5r3VDEq+Ug==",
"_location": "/@babel/plugin-transform-react-jsx-source",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@babel/plugin-transform-react-jsx-source@7.10.1",
"raw": "@babel/plugin-transform-react-jsx-source@7.10.4",
"name": "@babel/plugin-transform-react-jsx-source",
"escapedName": "@babel%2fplugin-transform-react-jsx-source",
"scope": "@babel",
"rawSpec": "7.10.1",
"rawSpec": "7.10.4",
"saveSpec": null,
"fetchSpec": "7.10.1"
"fetchSpec": "7.10.4"
},
"_requiredBy": [
"/@babel/preset-react"
],
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.10.1.tgz",
"_spec": "7.10.1",
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.10.4.tgz",
"_spec": "7.10.4",
"_where": "/home/henry/Documents/git/Speedtest-tracker-docker/conf/site",
"bugs": {
"url": "https://github.com/babel/babel/issues"
},
"dependencies": {
"@babel/helper-plugin-utils": "^7.10.1",
"@babel/plugin-syntax-jsx": "^7.10.1"
"@babel/helper-plugin-utils": "^7.10.4",
"@babel/plugin-syntax-jsx": "^7.10.4"
},
"description": "Add a __source prop to all JSX Elements",
"devDependencies": {
"@babel/core": "^7.10.1",
"@babel/helper-plugin-test-runner": "^7.10.1"
"@babel/core": "^7.10.4",
"@babel/helper-plugin-test-runner": "^7.10.4"
},
"gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf",
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
"homepage": "https://github.com/babel/babel#readme",
"keywords": [
"babel-plugin"
@@ -60,5 +60,5 @@
"url": "git+https://github.com/babel/babel.git",
"directory": "packages/babel-plugin-transform-react-jsx-source"
},
"version": "7.10.1"
"version": "7.10.4"
}