babel-plugin-transform-do-expressions
Advanced tools
Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10
@@ -10,8 +10,10 @@ "use strict"; | ||
visitor: { | ||
DoExpression: function DoExpression(path) { | ||
var body = path.node.body.body; | ||
if (body.length) { | ||
path.replaceWithMultiple(body); | ||
} else { | ||
path.replaceWith(path.scope.buildUndefinedNode()); | ||
DoExpression: { | ||
exit: function exit(path) { | ||
var body = path.node.body.body; | ||
if (body.length) { | ||
path.replaceExpressionWithStatements(body); | ||
} else { | ||
path.replaceWith(path.scope.buildUndefinedNode()); | ||
} | ||
} | ||
@@ -18,0 +20,0 @@ } |
{ | ||
"name": "babel-plugin-transform-do-expressions", | ||
"version": "7.0.0-alpha.9", | ||
"version": "7.0.0-alpha.10", | ||
"description": "Compile do expressions to ES5", | ||
@@ -15,4 +15,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-do-expressions", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.9" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.10" | ||
} | ||
} |
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
4021
21