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

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining - npm Package Compare versions

Comparing version 7.18.9 to 7.20.7

8

lib/index.js

@@ -18,3 +18,2 @@ 'use strict';

const chains = [];
for (;;) {

@@ -31,6 +30,4 @@ if (optionalPath.isOptionalMemberExpression()) {

}
for (let i = 0; i < chains.length; i++) {
const node = chains[i];
if (core.types.isOptionalCallExpression(node) && matchAffectedArguments(node.arguments)) {

@@ -40,5 +37,3 @@ if (node.optional) {

}
const callee = chains[i + 1];
if (core.types.isOptionalMemberExpression(callee, {

@@ -51,3 +46,2 @@ optional: true

}
return false;

@@ -58,3 +52,2 @@ }

var _api$assumption, _api$assumption2;
api.assertVersion(7);

@@ -74,3 +67,2 @@ const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : false;

}
}

@@ -77,0 +69,0 @@ };

12

package.json
{
"name": "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining",
"version": "7.18.9",
"version": "7.20.7",
"description": "Transform optional chaining operators to workaround https://crbug.com/v8/11558",

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

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/helper-skip-transparent-expression-wrappers": "^7.18.9",
"@babel/plugin-proposal-optional-chaining": "^7.18.9"
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/helper-skip-transparent-expression-wrappers": "^7.20.0",
"@babel/plugin-proposal-optional-chaining": "^7.20.7"
},

@@ -34,5 +34,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.18.9",
"@babel/core": "^7.20.7",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/traverse": "^7.18.9"
"@babel/traverse": "^7.20.7"
},

@@ -39,0 +39,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