@babel/helper-member-expression-to-functions
Advanced tools
Comparing version 7.10.4 to 7.10.5
@@ -226,7 +226,7 @@ "use strict"; | ||
replacementPath.replaceWith(t.conditionalExpression(t.logicalExpression("||", t.binaryExpression("===", baseNeedsMemoised ? t.assignmentExpression("=", baseRef, startingNode) : baseRef, t.nullLiteral()), t.binaryExpression("===", t.cloneNode(baseRef), scope.buildUndefinedNode())), isDeleteOperation ? t.booleanLiteral(true) : scope.buildUndefinedNode(), regular)); | ||
replacementPath.replaceWith(t.conditionalExpression(t.logicalExpression("||", t.binaryExpression("===", baseNeedsMemoised ? t.assignmentExpression("=", t.cloneNode(baseRef), t.cloneNode(startingNode)) : t.cloneNode(baseRef), t.nullLiteral()), t.binaryExpression("===", t.cloneNode(baseRef), scope.buildUndefinedNode())), isDeleteOperation ? t.booleanLiteral(true) : scope.buildUndefinedNode(), regular)); | ||
if (context) { | ||
const endParent = endParentPath.node; | ||
endParentPath.replaceWith(t.optionalCallExpression(t.optionalMemberExpression(endParent.callee, t.identifier("call"), false, true), [context, ...endParent.arguments], false)); | ||
endParentPath.replaceWith(t.optionalCallExpression(t.optionalMemberExpression(endParent.callee, t.identifier("call"), false, true), [t.cloneNode(context), ...endParent.arguments], false)); | ||
} | ||
@@ -233,0 +233,0 @@ |
{ | ||
"name": "@babel/helper-member-expression-to-functions", | ||
"version": "7.10.4", | ||
"version": "7.10.5", | ||
"description": "Helper function to replace certain member expressions with function calls", | ||
@@ -17,5 +17,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/types": "^7.10.4" | ||
"@babel/types": "^7.10.5" | ||
}, | ||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" | ||
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7" | ||
} |
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
11927
Updated@babel/types@^7.10.5