Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-function-name

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-function-name - npm Package Compare versions

Comparing version 7.16.5 to 7.16.7

5

lib/index.js

@@ -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 @@ }

11

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc