Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-function-name

Package Overview
Dependencies
Maintainers
4
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.24.7 to 7.25.0

15

lib/index.js

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

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