@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining
Advanced tools
Comparing version 7.18.9 to 7.20.7
@@ -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 @@ }; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10507