babel-generator
Advanced tools
Comparing version 6.3.18 to 6.3.19
@@ -211,5 +211,9 @@ /* @flow */ | ||
// http://javascript.spec.whatwg.org/#comment-syntax | ||
spaces = node.operator === "<" && t.isUnaryExpression(node.right, { prefix: true, operator: "!" }) && t.isUnaryExpression(node.right.argument, { prefix: true, operator: "--" }) || | ||
spaces = node.operator === "<" && t.isUnaryExpression(node.right, { prefix: true, operator: "!" }) && t.isUnaryExpression(node.right.argument, { prefix: true, operator: "--" }); | ||
// Need spaces for operators of the same kind to avoid: `a+++b` | ||
t.isUnaryExpression(node.right, { prefix: true, operator: node.operator }) || t.isUpdateExpression(node.right, { prefix: true, operator: node.operator + node.operator }) || t.isBinaryExpression(node.right) && t.isUnaryExpression(getLeftMost(node.right), { prefix: true, operator: node.operator }); | ||
if (!spaces) { | ||
var right = getLeftMost(node.right); | ||
spaces = t.isUnaryExpression(right, { prefix: true, operator: node.operator }) || t.isUpdateExpression(right, { prefix: true, operator: node.operator + node.operator }); | ||
} | ||
} | ||
@@ -216,0 +220,0 @@ |
{ | ||
"name": "babel-generator", | ||
"version": "6.3.18", | ||
"version": "6.3.19", | ||
"description": "Turns an AST into code.", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
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
2618
85317