Socket
Socket
Sign inDemoInstall

babel-types

Package Overview
Dependencies
Maintainers
6
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-types - npm Package Compare versions

Comparing version 7.0.0-alpha.1 to 7.0.0-alpha.3

5

lib/converters.js

@@ -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)) {

2

lib/validators.js

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