shift-codegen
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -485,14 +485,4 @@ "use strict"; | ||
var leftP = left; | ||
switch (node.left.type) { | ||
case "VariableDeclaration": | ||
leftP = noIn(markContainsIn(left)); | ||
break; | ||
case "AssignmentTargetIdentifier": | ||
if (node.left.name === "let") { | ||
leftP = paren(left); | ||
} | ||
break; | ||
} | ||
return (0, _objectAssign2.default)(seq(t("for"), paren(seq(leftP, t("in"), right)), body), { endsWithMissingElse: body.endsWithMissingElse }); | ||
left = node.left.type === "VariableDeclaration" ? noIn(markContainsIn(left)) : left; | ||
return (0, _objectAssign2.default)(seq(t("for"), paren(seq(left.startsWithLet ? paren(left) : left, t("in"), right)), body), { endsWithMissingElse: body.endsWithMissingElse }); | ||
} | ||
@@ -499,0 +489,0 @@ }, { |
{ | ||
"name": "shift-codegen", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "code generator for Shift format ASTs", | ||
@@ -5,0 +5,0 @@ "author": "Shape Security Labs", |
Sorry, the diff of this file is too big to display
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
0
149387
2942