1
0
mirror of https://github.com/actions/labeler synced 2026-05-09 00:31:01 +02:00
This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2014-2018 Sebastian McKenzie <sebmck@gmail.com>
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@@ -1,47 +1,51 @@
{
"_args": [
[
"@babel/helper-plugin-utils@7.0.0",
"/Users/pjquirk/Source/GitHub/actions/labeler"
]
],
"_development": true,
"_from": "@babel/helper-plugin-utils@7.0.0",
"_id": "@babel/helper-plugin-utils@7.0.0",
"_from": "@babel/helper-plugin-utils@^7.0.0",
"_id": "@babel/helper-plugin-utils@7.10.4",
"_inBundle": false,
"_integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==",
"_integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
"_location": "/@babel/helper-plugin-utils",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "@babel/helper-plugin-utils@7.0.0",
"raw": "@babel/helper-plugin-utils@^7.0.0",
"name": "@babel/helper-plugin-utils",
"escapedName": "@babel%2fhelper-plugin-utils",
"scope": "@babel",
"rawSpec": "7.0.0",
"rawSpec": "^7.0.0",
"saveSpec": null,
"fetchSpec": "7.0.0"
"fetchSpec": "^7.0.0"
},
"_requiredBy": [
"/@babel/plugin-syntax-object-rest-spread",
"/babel-plugin-istanbul"
],
"_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz",
"_spec": "7.0.0",
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
"_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/dakale/dev/GitHub/actions/labeler/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": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
"homepage": "https://babeljs.io/",
"license": "MIT",
"main": "lib/index.js",
"name": "@babel/helper-plugin-utils",
"publishConfig": {
"access": "public"
},
"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.0.0"
"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),
);
}