Socket
Socket
Sign inDemoInstall

babel-plugin-transform-do-expressions

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-do-expressions - npm Package Compare versions

Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10

14

lib/index.js

@@ -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"
}
}
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