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.21.4-esm to 7.21.4-esm.1

21

lib/index.js

@@ -1,13 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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 => {
import { isRequired } from "@babel/helper-compilation-targets";
import { declare } from "@babel/helper-plugin-utils";
import nameFunction from "@babel/helper-function-name";
export default declare(api => {
api.assertVersion(7);
const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets());
const supportUnicodeId = !isRequired("transform-unicode-escapes", api.targets());
return {

@@ -19,3 +13,3 @@ name: "transform-function-name",

if (path.key !== "value" && !path.parentPath.isObjectProperty()) {
const replacement = (0, _helperFunctionName.default)(path);
const replacement = nameFunction(path);
if (replacement) path.replaceWith(replacement);

@@ -28,3 +22,3 @@ }

if (value.isFunction()) {
const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId);
const newNode = nameFunction(value, false, supportUnicodeId);
if (newNode) value.replaceWith(newNode);

@@ -36,4 +30,3 @@ }

});
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-transform-function-name",
"version": "7.21.4-esm",
"version": "7.21.4-esm.1",
"description": "Apply ES2015 function.name semantics to all functions",

@@ -20,12 +20,12 @@ "repository": {

"dependencies": {
"@babel/helper-compilation-targets": "^7.21.4-esm",
"@babel/helper-function-name": "^7.21.4-esm",
"@babel/helper-plugin-utils": "^7.21.4-esm"
"@babel/helper-compilation-targets": "^7.21.4-esm.1",
"@babel/helper-function-name": "^7.21.4-esm.1",
"@babel/helper-plugin-utils": "^7.21.4-esm.1"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
"@babel/core": "^7.0.0-0 || 7.21.4-esm.1"
},
"devDependencies": {
"@babel/core": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm"
"@babel/core": "^7.21.4-esm.1",
"@babel/helper-plugin-test-runner": "^7.21.4-esm.1"
},

@@ -36,3 +36,3 @@ "engines": {

"author": "The Babel Team (https://babel.dev/team)",
"type": "commonjs"
"type": "module"
}

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