@babel/plugin-transform-function-name
Advanced tools
Comparing version 7.16.5 to 7.16.7
@@ -8,2 +8,4 @@ "use strict"; | ||
var _helperCompilationTargets = require("@babel/helper-compilation-targets"); | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
@@ -15,2 +17,3 @@ | ||
api.assertVersion(7); | ||
const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); | ||
return { | ||
@@ -33,3 +36,3 @@ name: "transform-function-name", | ||
if (value.isFunction()) { | ||
const newNode = (0, _helperFunctionName.default)(value); | ||
const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId); | ||
if (newNode) value.replaceWith(newNode); | ||
@@ -36,0 +39,0 @@ } |
{ | ||
"name": "@babel/plugin-transform-function-name", | ||
"version": "7.16.5", | ||
"version": "7.16.7", | ||
"description": "Apply ES2015 function.name semantics to all functions", | ||
@@ -20,4 +20,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-function-name": "^7.16.0", | ||
"@babel/helper-plugin-utils": "^7.16.5" | ||
"@babel/helper-compilation-targets": "^7.16.7", | ||
"@babel/helper-function-name": "^7.16.7", | ||
"@babel/helper-plugin-utils": "^7.16.7" | ||
}, | ||
@@ -28,4 +29,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.16.5", | ||
"@babel/helper-plugin-test-runner": "^7.16.5" | ||
"@babel/core": "^7.16.7", | ||
"@babel/helper-plugin-test-runner": "^7.16.7" | ||
}, | ||
@@ -32,0 +33,0 @@ "engines": { |
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
3659
32
4