babel-types
Advanced tools
Comparing version 7.0.0-alpha.1 to 7.0.0-alpha.3
@@ -111,4 +111,7 @@ "use strict"; | ||
var alternate = node.alternate ? convert([node.alternate]) : scope.buildUndefinedNode(); | ||
if (!consequent || !alternate) return bailed = true; | ||
if (consequent === true || alternate === true) { | ||
return bailed = true; | ||
} | ||
exprs.push(t.conditionalExpression(node.test, consequent, alternate)); | ||
@@ -115,0 +118,0 @@ } else if (t.isBlockStatement(node)) { |
@@ -159,2 +159,4 @@ "use strict"; | ||
return false; | ||
} else if (name === "await") { | ||
return false; | ||
} else { | ||
@@ -161,0 +163,0 @@ return _esutils2.default.keyword.isIdentifierNameES6(name); |
{ | ||
"name": "babel-types", | ||
"version": "7.0.0-alpha.1", | ||
"version": "7.0.0-alpha.3", | ||
"description": "Babel Types is a Lodash-esque utility library for AST nodes", | ||
@@ -16,4 +16,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"devDependencies": { | ||
"babylon": "7.0.0-beta.4" | ||
"babylon": "7.0.0-beta.7" | ||
} | ||
} |
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
133074
2957