summaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-transform-function-name
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@babel/plugin-transform-function-name
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/@babel/plugin-transform-function-name')
-rw-r--r--node_modules/@babel/plugin-transform-function-name/README.md2
-rw-r--r--node_modules/@babel/plugin-transform-function-name/lib/index.js3
-rw-r--r--node_modules/@babel/plugin-transform-function-name/lib/index.js.map2
-rw-r--r--node_modules/@babel/plugin-transform-function-name/package.json8
4 files changed, 7 insertions, 8 deletions
diff --git a/node_modules/@babel/plugin-transform-function-name/README.md b/node_modules/@babel/plugin-transform-function-name/README.md
index 27d3e10c..ef8beb1c 100644
--- a/node_modules/@babel/plugin-transform-function-name/README.md
+++ b/node_modules/@babel/plugin-transform-function-name/README.md
@@ -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/babel-plugin-transform-function-name) for more information.
+See our website [@babel/plugin-transform-function-name](https://babeljs.io/docs/babel-plugin-transform-function-name) for more information.
## Install
diff --git a/node_modules/@babel/plugin-transform-function-name/lib/index.js b/node_modules/@babel/plugin-transform-function-name/lib/index.js
index 7d401bf7..16df763b 100644
--- a/node_modules/@babel/plugin-transform-function-name/lib/index.js
+++ b/node_modules/@babel/plugin-transform-function-name/lib/index.js
@@ -7,7 +7,7 @@ exports.default = void 0;
var _helperCompilationTargets = require("@babel/helper-compilation-targets");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _helperFunctionName = require("@babel/helper-function-name");
-var _default = (0, _helperPluginUtils.declare)(api => {
+var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets());
return {
@@ -31,6 +31,5 @@ var _default = (0, _helperPluginUtils.declare)(api => {
}
};
});
-exports.default = _default;
//# sourceMappingURL=index.js.map
diff --git a/node_modules/@babel/plugin-transform-function-name/lib/index.js.map b/node_modules/@babel/plugin-transform-function-name/lib/index.js.map
index d0b718a3..4bf4271c 100644
--- a/node_modules/@babel/plugin-transform-function-name/lib/index.js.map
+++ b/node_modules/@babel/plugin-transform-function-name/lib/index.js.map
@@ -1 +1 @@
-{"version":3,"names":["_helperCompilationTargets","require","_helperPluginUtils","_helperFunctionName","_default","declare","api","assertVersion","supportUnicodeId","isRequired","targets","name","visitor","FunctionExpression","exit","path","key","parentPath","isObjectProperty","replacement","nameFunction","replaceWith","ObjectProperty","value","get","isFunction","newNode","exports","default"],"sources":["../src/index.ts"],"sourcesContent":["import { isRequired } from \"@babel/helper-compilation-targets\";\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport nameFunction from \"@babel/helper-function-name\";\n\nexport default declare(api => {\n api.assertVersion(7);\n const supportUnicodeId = !isRequired(\n \"transform-unicode-escapes\",\n api.targets(),\n );\n\n return {\n name: \"transform-function-name\",\n\n visitor: {\n FunctionExpression: {\n exit(path) {\n if (path.key !== \"value\" && !path.parentPath.isObjectProperty()) {\n const replacement = nameFunction(path);\n if (replacement) path.replaceWith(replacement);\n }\n },\n },\n\n ObjectProperty(path) {\n const value = path.get(\"value\");\n if (value.isFunction()) {\n const newNode = nameFunction(\n // @ts-expect-error Fixme: should check ArrowFunctionExpression\n value,\n false,\n supportUnicodeId,\n );\n if (newNode) value.replaceWith(newNode);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAAuD,IAAAG,QAAA,GAExC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAC,CAAC,CAAC;EACpB,MAAMC,gBAAgB,GAAG,CAAC,IAAAC,oCAAU,EAClC,2BAA2B,EAC3BH,GAAG,CAACI,OAAO,CAAC,CACd,CAAC;EAED,OAAO;IACLC,IAAI,EAAE,yBAAyB;IAE/BC,OAAO,EAAE;MACPC,kBAAkB,EAAE;QAClBC,IAAIA,CAACC,IAAI,EAAE;UACT,IAAIA,IAAI,CAACC,GAAG,KAAK,OAAO,IAAI,CAACD,IAAI,CAACE,UAAU,CAACC,gBAAgB,CAAC,CAAC,EAAE;YAC/D,MAAMC,WAAW,GAAG,IAAAC,2BAAY,EAACL,IAAI,CAAC;YACtC,IAAII,WAAW,EAAEJ,IAAI,CAACM,WAAW,CAACF,WAAW,CAAC;UAChD;QACF;MACF,CAAC;MAEDG,cAAcA,CAACP,IAAI,EAAE;QACnB,MAAMQ,KAAK,GAAGR,IAAI,CAACS,GAAG,CAAC,OAAO,CAAC;QAC/B,IAAID,KAAK,CAACE,UAAU,CAAC,CAAC,EAAE;UACtB,MAAMC,OAAO,GAAG,IAAAN,2BAAY,EAE1BG,KAAK,EACL,KAAK,EACLf,gBACF,CAAC;UACD,IAAIkB,OAAO,EAAEH,KAAK,CAACF,WAAW,CAACK,OAAO,CAAC;QACzC;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAxB,QAAA"} \ No newline at end of file
+{"version":3,"names":["_helperCompilationTargets","require","_helperPluginUtils","_helperFunctionName","_default","exports","default","declare","api","assertVersion","supportUnicodeId","isRequired","targets","name","visitor","FunctionExpression","exit","path","key","parentPath","isObjectProperty","replacement","nameFunction","replaceWith","ObjectProperty","value","get","isFunction","newNode"],"sources":["../src/index.ts"],"sourcesContent":["import { isRequired } from \"@babel/helper-compilation-targets\";\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport nameFunction from \"@babel/helper-function-name\";\n\nexport default declare(api => {\n api.assertVersion(\n process.env.BABEL_8_BREAKING && process.env.IS_PUBLISH\n ? PACKAGE_JSON.version\n : 7,\n );\n const supportUnicodeId = !isRequired(\n \"transform-unicode-escapes\",\n api.targets(),\n );\n\n return {\n name: \"transform-function-name\",\n\n visitor: {\n FunctionExpression: {\n exit(path) {\n if (path.key !== \"value\" && !path.parentPath.isObjectProperty()) {\n const replacement = nameFunction(path);\n if (replacement) path.replaceWith(replacement);\n }\n },\n },\n\n ObjectProperty(path) {\n const value = path.get(\"value\");\n if (value.isFunction()) {\n const newNode = nameFunction(\n // @ts-expect-error Fixme: should check ArrowFunctionExpression\n value,\n false,\n supportUnicodeId,\n );\n if (newNode) value.replaceWith(newNode);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAAuD,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAExC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAGX,CACN,CAAC;EACD,MAAMC,gBAAgB,GAAG,CAAC,IAAAC,oCAAU,EAClC,2BAA2B,EAC3BH,GAAG,CAACI,OAAO,CAAC,CACd,CAAC;EAED,OAAO;IACLC,IAAI,EAAE,yBAAyB;IAE/BC,OAAO,EAAE;MACPC,kBAAkB,EAAE;QAClBC,IAAIA,CAACC,IAAI,EAAE;UACT,IAAIA,IAAI,CAACC,GAAG,KAAK,OAAO,IAAI,CAACD,IAAI,CAACE,UAAU,CAACC,gBAAgB,CAAC,CAAC,EAAE;YAC/D,MAAMC,WAAW,GAAG,IAAAC,2BAAY,EAACL,IAAI,CAAC;YACtC,IAAII,WAAW,EAAEJ,IAAI,CAACM,WAAW,CAACF,WAAW,CAAC;UAChD;QACF;MACF,CAAC;MAEDG,cAAcA,CAACP,IAAI,EAAE;QACnB,MAAMQ,KAAK,GAAGR,IAAI,CAACS,GAAG,CAAC,OAAO,CAAC;QAC/B,IAAID,KAAK,CAACE,UAAU,CAAC,CAAC,EAAE;UACtB,MAAMC,OAAO,GAAG,IAAAN,2BAAY,EAE1BG,KAAK,EACL,KAAK,EACLf,gBACF,CAAC;UACD,IAAIkB,OAAO,EAAEH,KAAK,CAACF,WAAW,CAACK,OAAO,CAAC;QACzC;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-function-name/package.json b/node_modules/@babel/plugin-transform-function-name/package.json
index 9587283f..3091de64 100644
--- a/node_modules/@babel/plugin-transform-function-name/package.json
+++ b/node_modules/@babel/plugin-transform-function-name/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-function-name",
- "version": "7.22.5",
+ "version": "7.23.3",
"description": "Apply ES2015 function.name semantics to all functions",
"repository": {
"type": "git",
@@ -17,15 +17,15 @@
"babel-plugin"
],
"dependencies": {
- "@babel/helper-compilation-targets": "^7.22.5",
- "@babel/helper-function-name": "^7.22.5",
+ "@babel/helper-compilation-targets": "^7.22.15",
+ "@babel/helper-function-name": "^7.23.0",
"@babel/helper-plugin-utils": "^7.22.5"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
- "@babel/core": "^7.22.5",
+ "@babel/core": "^7.23.3",
"@babel/helper-plugin-test-runner": "^7.22.5"
},
"engines": {