@babel/plugin-transform-optional-chaining
Advanced tools
Comparing version 7.22.11 to 7.22.12
@@ -51,2 +51,3 @@ 'use strict'; | ||
const last = arr => arr[arr.length - 1]; | ||
function isSimpleMemberExpression(expression) { | ||
@@ -175,3 +176,3 @@ expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression); | ||
}); | ||
const isEvaluationValueIgnored = (core.types.isExpressionStatement(replacementPath.parent) || core.types.isSequenceExpression(replacementPath.parent)) && !replacementPath.isCompletionRecord(); | ||
const isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(replacementPath.parent.expressions) !== replacementPath.node; | ||
const tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK; | ||
@@ -178,0 +179,0 @@ const logicalOp = ifNullishFalse ? "&&" : "||"; |
{ | ||
"name": "@babel/plugin-transform-optional-chaining", | ||
"version": "7.22.11", | ||
"version": "7.22.12", | ||
"description": "Transform optional chaining operators into a series of nil checks", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
37705
233
29
0
0
0
16