Comparing version 0.23.3 to 0.23.4
@@ -288,2 +288,10 @@ "use strict"; | ||
return false; | ||
// Wrap e.g. `-1` in parentheses inside `(-1) ** 2`. | ||
if (node.type === "UnaryExpression" && | ||
parent.type === "BinaryExpression" && | ||
name === "left" && | ||
parent.left === node && | ||
parent.operator === "**") { | ||
return true; | ||
} | ||
switch (node.type) { | ||
@@ -290,0 +298,0 @@ case "UnaryExpression": |
{ | ||
"author": "Ben Newman <bn@cs.stanford.edu>", | ||
"name": "recast", | ||
"version": "0.23.3", | ||
"version": "0.23.4", | ||
"description": "JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
244272
5810