Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
6
Versions
33
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.16.0 to 7.16.2

7

lib/index.js

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

const paramNameBinding = path.scope.getOwnBinding(name);
const constantViolations = paramNameBinding.constantViolations;
if (constantViolations.length === 0) {
if (paramNameBinding === undefined) {
return false;
}
const firstViolation = constantViolations[0];
if (firstViolation.node !== node) {
if (paramNameBinding.kind !== "param") {
return false;

@@ -26,0 +23,0 @@ }

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

@@ -33,2 +33,3 @@ "repository": {

"@babel/core": "^7.16.0",
"@babel/helper-function-name": "^7.16.0",
"@babel/helper-plugin-test-runner": "^7.16.0",

@@ -35,0 +36,0 @@ "@babel/traverse": "^7.16.0"

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