babel-generator
Advanced tools
Comparing version 6.3.14 to 6.3.15
@@ -99,5 +99,7 @@ /* @flow */ | ||
function NewExpression(node /*: Object*/) { | ||
function NewExpression(node /*: Object*/, parent /*: Object*/) { | ||
this.push("new "); | ||
this.print(node.callee, node); | ||
if (node.arguments.length === 0 && this.format.compact && !t.isCallExpression(parent, { callee: node }) && !t.isMemberExpression(parent) && !t.isNewExpression(parent)) return; | ||
this.push("("); | ||
@@ -104,0 +106,0 @@ this.printList(node.arguments, node); |
{ | ||
"name": "babel-generator", | ||
"version": "6.3.14", | ||
"version": "6.3.15", | ||
"description": "Turns an AST into code.", | ||
@@ -26,4 +26,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"babel-helper-fixtures": "^6.3.13", | ||
"babylon": "^6.3.14" | ||
"babylon": "^6.3.15" | ||
} | ||
} |
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
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
84496
2592
0