babel-plugin-check-es2015-constants
Advanced tools
Comparing version 7.0.0-alpha.19 to 7.0.0-alpha.20
@@ -29,7 +29,7 @@ "use strict"; | ||
violation.get("right").replaceWith(statementBeforeExpression(throwNode, violation.get("right").node)); | ||
} else if (violation.parentPath.isUpdateExpression()) { | ||
violation.parentPath.replaceWith(statementBeforeExpression(throwNode, violation.parent)); | ||
} else if (violation.parentPath.isForXStatement()) { | ||
violation.parentPath.ensureBlock(); | ||
violation.parentPath.node.body.body.unshift(throwNode); | ||
} else if (violation.isUpdateExpression()) { | ||
violation.replaceWith(statementBeforeExpression(throwNode, violation.node)); | ||
} else if (violation.isForXStatement()) { | ||
violation.ensureBlock(); | ||
violation.node.body.body.unshift(throwNode); | ||
} | ||
@@ -36,0 +36,0 @@ } |
{ | ||
"name": "babel-plugin-check-es2015-constants", | ||
"version": "7.0.0-alpha.19", | ||
"version": "7.0.0-alpha.20", | ||
"description": "Compile ES2015 constants to ES5", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-check-es2015-constants", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.19" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.20" | ||
} | ||
} |
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
2702