Socket
Socket
Sign inDemoInstall

babel-plugin-check-es2015-constants

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-check-es2015-constants - npm Package Compare versions

Comparing version 7.0.0-alpha.19 to 7.0.0-alpha.20

10

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc