@babel/generator
Advanced tools
Comparing version 7.9.4 to 7.9.5
@@ -15,3 +15,3 @@ "use strict"; | ||
function crawl(node, state = {}) { | ||
if (t.isMemberExpression(node)) { | ||
if (t.isMemberExpression(node) || t.isOptionalMemberExpression(node)) { | ||
crawl(node.object, state); | ||
@@ -22,3 +22,3 @@ if (node.computed) crawl(node.property, state); | ||
crawl(node.right, state); | ||
} else if (t.isCallExpression(node)) { | ||
} else if (t.isCallExpression(node) || t.isOptionalCallExpression(node)) { | ||
state.hasCall = true; | ||
@@ -97,2 +97,11 @@ crawl(node.callee, state); | ||
OptionalCallExpression(node) { | ||
if (t.isFunction(node.callee)) { | ||
return { | ||
before: true, | ||
after: true | ||
}; | ||
} | ||
}, | ||
VariableDeclaration(node) { | ||
@@ -99,0 +108,0 @@ for (let i = 0; i < node.declarations.length; i++) { |
{ | ||
"name": "@babel/generator", | ||
"version": "7.9.4", | ||
"version": "7.9.5", | ||
"description": "Turns an AST into code.", | ||
@@ -17,3 +17,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"@babel/types": "^7.9.0", | ||
"@babel/types": "^7.9.5", | ||
"jsesc": "^2.5.1", | ||
@@ -27,3 +27,3 @@ "lodash": "^4.17.13", | ||
}, | ||
"gitHead": "d3cf5fb5f4b46a1f7e9e33f2d24a466e3ea1e50f" | ||
"gitHead": "5b97e77e030cf3853a147fdff81844ea4026219d" | ||
} |
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
120235
3892
Updated@babel/types@^7.9.5