@babel/helper-member-expression-to-functions
Advanced tools
Comparing version 7.10.1 to 7.10.3
@@ -167,2 +167,5 @@ "use strict"; | ||
}); | ||
const parentIsCall = parentPath.isCallExpression({ | ||
callee: node | ||
}); | ||
startingOptional.replaceWith(toNonOptional(startingOptional, baseRef)); | ||
@@ -176,2 +179,4 @@ | ||
} | ||
} else if (parentIsCall) { | ||
member.replaceWith(this.boundGet(member)); | ||
} else { | ||
@@ -293,3 +298,5 @@ member.replaceWith(this.get(member)); | ||
if (parentPath.isObjectProperty({ | ||
if (parentPath.isForXStatement({ | ||
left: node | ||
}) || parentPath.isObjectProperty({ | ||
value: node | ||
@@ -313,5 +320,5 @@ }) && parentPath.parentPath.isObjectPattern() || parentPath.isAssignmentPattern({ | ||
function memberExpressionToFunctions(path, visitor, state) { | ||
path.traverse(visitor, Object.assign(Object.assign(Object.assign({}, handle), state), {}, { | ||
path.traverse(visitor, Object.assign({}, handle, state, { | ||
memoiser: new AssignmentMemoiser() | ||
})); | ||
} |
{ | ||
"name": "@babel/helper-member-expression-to-functions", | ||
"version": "7.10.1", | ||
"version": "7.10.3", | ||
"description": "Helper function to replace certain member expressions with function calls", | ||
@@ -17,5 +17,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/types": "^7.10.1" | ||
"@babel/types": "^7.10.3" | ||
}, | ||
"gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf" | ||
"gitHead": "2787ee2f967b6d8e1121fca00a8d578d75449a53" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
11513
263
1
Updated@babel/types@^7.10.3