@babel/plugin-transform-function-name
Advanced tools
Comparing version 7.24.7 to 7.25.0
@@ -9,3 +9,2 @@ "use strict"; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _helperFunctionName = require("@babel/helper-function-name"); | ||
var _default = exports.default = (0, _helperPluginUtils.declare)(api => { | ||
@@ -20,4 +19,7 @@ api.assertVersion(7); | ||
if (path.key !== "value" && !path.parentPath.isObjectProperty()) { | ||
const replacement = (0, _helperFunctionName.default)(path); | ||
if (replacement) path.replaceWith(replacement); | ||
{ | ||
var _path$ensureFunctionN; | ||
(_path$ensureFunctionN = path.ensureFunctionName) != null ? _path$ensureFunctionN : path.ensureFunctionName = require("@babel/traverse").NodePath.prototype.ensureFunctionName; | ||
} | ||
path.ensureFunctionName(supportUnicodeId); | ||
} | ||
@@ -29,4 +31,7 @@ } | ||
if (value.isFunction()) { | ||
const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId); | ||
if (newNode) value.replaceWith(newNode); | ||
{ | ||
var _path$ensureFunctionN2; | ||
(_path$ensureFunctionN2 = path.ensureFunctionName) != null ? _path$ensureFunctionN2 : path.ensureFunctionName = require("@babel/traverse").NodePath.prototype.ensureFunctionName; | ||
} | ||
value.ensureFunctionName(supportUnicodeId); | ||
} | ||
@@ -33,0 +38,0 @@ } |
{ | ||
"name": "@babel/plugin-transform-function-name", | ||
"version": "7.24.7", | ||
"version": "7.25.0", | ||
"description": "Apply ES2015 function.name semantics to all functions", | ||
@@ -20,5 +20,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-compilation-targets": "^7.24.7", | ||
"@babel/helper-function-name": "^7.24.7", | ||
"@babel/helper-plugin-utils": "^7.24.7" | ||
"@babel/helper-compilation-targets": "^7.24.8", | ||
"@babel/helper-plugin-utils": "^7.24.8", | ||
"@babel/traverse": "^7.25.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/core": "^7.24.9", | ||
"@babel/helper-plugin-test-runner": "^7.24.7" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54
69706
+ Added@babel/traverse@^7.25.0
- Removed@babel/helper-function-name@^7.24.7
- Removed@babel/helper-function-name@7.24.7(transitive)