Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-generator

Package Overview
Dependencies
Maintainers
6
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-generator - npm Package Compare versions

Comparing version 6.4.0 to 6.4.1

lib/node/flycheck_parentheses.js

3

lib/generators/expressions.js

@@ -195,4 +195,3 @@ /* @flow */

// needs a paren except for `in` expressions: `for (a in b ? a : b;;)`
// and for `ObjectPattern`: `({ f } = { f: 2 };`
var parens = this._inForStatementInit && node.operator === "in" && !_node2["default"].needsParens(node, parent) || t.isObjectPattern(node.left);
var parens = this._inForStatementInit && node.operator === "in" && !_node2["default"].needsParens(node, parent);

@@ -199,0 +198,0 @@ if (parens) {

@@ -91,3 +91,3 @@ /* @flow */

if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {
if (t.isBinary(parent)) {
var parentOp = parent.operator;

@@ -236,3 +236,3 @@ var parentPos = PRECEDENCE[parentOp];

if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {
if (t.isBinary(parent)) {
return true;

@@ -239,0 +239,0 @@ }

{
"name": "babel-generator",
"version": "6.4.0",
"version": "6.4.1",
"description": "Turns an AST into code.",

@@ -16,3 +16,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"babel-runtime": "^5.0.0",
"babel-types": "^6.4.0",
"babel-types": "^6.4.1",
"detect-indent": "^3.0.1",

@@ -19,0 +19,0 @@ "is-integer": "^1.0.4",

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