Socket
Socket
Sign inDemoInstall

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression - npm Package Compare versions

Comparing version 7.18.6 to 7.21.4-esm

lib/package.json

6

lib/index.js

@@ -15,15 +15,11 @@ 'use strict';

const paramNameBinding = path.scope.getOwnBinding(name);
if (paramNameBinding === undefined) {
return false;
}
if (paramNameBinding.kind !== "param") {
return false;
}
if (paramNameBinding.identifier === paramNameBinding.path.node) {
return false;
}
return name;

@@ -39,3 +35,2 @@ }

const name = shouldTransform(path);
if (name) {

@@ -49,3 +44,2 @@ const {

}
}

@@ -52,0 +46,0 @@ };

14

package.json
{
"name": "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
"version": "7.18.6",
"version": "7.21.4-esm",
"description": "Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517",

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

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6"
"@babel/helper-plugin-utils": "^7.21.4-esm"
},
"peerDependencies": {
"@babel/core": "^7.0.0"
"@babel/core": "^7.0.0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/helper-function-name": "^7.18.6",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/traverse": "^7.18.6"
"@babel/core": "^7.21.4-esm",
"@babel/helper-function-name": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm",
"@babel/traverse": "^7.21.4-esm"
},

@@ -37,0 +37,0 @@ "engines": {

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