This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
> Apply ES2015 function.name semantics to all functions
See our website [@babel/plugin-transform-function-name](https://babeljs.io/docs/en/next/babel-plugin-transform-function-name.html) for more information.
See our website [@babel/plugin-transform-function-name](https://babeljs.io/docs/en/babel-plugin-transform-function-name) for more information.
## Install
+5 -4
View File
@@ -5,14 +5,15 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;
var _helperCompilationTargets = require("@babel/helper-compilation-targets");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _helperFunctionName = _interopRequireDefault(require("@babel/helper-function-name"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _helperFunctionName = require("@babel/helper-function-name");
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets());
return {
name: "transform-function-name",
visitor: {
@@ -30,7 +31,7 @@ var _default = (0, _helperPluginUtils.declare)(api => {
const value = path.get("value");
if (value.isFunction()) {
const newNode = (0, _helperFunctionName.default)(value);
const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId);
if (newNode) value.replaceWith(newNode);
}
}
+27 -19
View File
@@ -1,52 +1,59 @@
{
"_args": [
[
"@babel/plugin-transform-function-name@7.10.4",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"@babel/plugin-transform-function-name@7.18.6",
"/home/node/nuxt"
]
],
"_from": "@babel/plugin-transform-function-name@7.10.4",
"_id": "@babel/plugin-transform-function-name@7.10.4",
"_from": "@babel/plugin-transform-function-name@7.18.6",
"_id": "@babel/plugin-transform-function-name@7.18.6",
"_inBundle": false,
"_integrity": "sha512-OcDCq2y5+E0dVD5MagT5X+yTRbcvFjDI2ZVAottGH6tzqjx/LKpgkUepu3hp/u4tZBzxxpNGwLsAvGBvQ2mJzg==",
"_integrity": "sha512-kJha/Gbs5RjzIu0CxZwf5e3aTTSlhZnHMT8zPWnJMjNpLOUgqevg+PN5oMH68nMCXnfiMo4Bhgxqj59KHTlAnA==",
"_location": "/@babel/plugin-transform-function-name",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@babel/plugin-transform-function-name@7.10.4",
"raw": "@babel/plugin-transform-function-name@7.18.6",
"name": "@babel/plugin-transform-function-name",
"escapedName": "@babel%2fplugin-transform-function-name",
"scope": "@babel",
"rawSpec": "7.10.4",
"rawSpec": "7.18.6",
"saveSpec": null,
"fetchSpec": "7.10.4"
"fetchSpec": "7.18.6"
},
"_requiredBy": [
"/@babel/preset-env"
],
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.10.4.tgz",
"_spec": "7.10.4",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.6.tgz",
"_spec": "7.18.6",
"_where": "/home/node/nuxt",
"author": {
"name": "The Babel Team",
"url": "https://babel.dev/team"
},
"bugs": {
"url": "https://github.com/babel/babel/issues"
},
"dependencies": {
"@babel/helper-function-name": "^7.10.4",
"@babel/helper-plugin-utils": "^7.10.4"
"@babel/helper-compilation-targets": "^7.18.6",
"@babel/helper-function-name": "^7.18.6",
"@babel/helper-plugin-utils": "^7.18.6"
},
"description": "Apply ES2015 function.name semantics to all functions",
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/helper-plugin-test-runner": "^7.10.4"
"@babel/core": "^7.18.6",
"@babel/helper-plugin-test-runner": "^7.18.6"
},
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
"homepage": "https://github.com/babel/babel#readme",
"engines": {
"node": ">=6.9.0"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-function-name",
"keywords": [
"babel-plugin"
],
"license": "MIT",
"main": "lib/index.js",
"main": "./lib/index.js",
"name": "@babel/plugin-transform-function-name",
"peerDependencies": {
"@babel/core": "^7.0.0-0"
@@ -59,5 +66,6 @@
"url": "git+https://github.com/babel/babel.git",
"directory": "packages/babel-plugin-transform-function-name"
},
"version": "7.10.4"
"type": "commonjs",
"version": "7.18.6"
}