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.3.14 to 6.3.15

4

lib/generators/expressions.js

@@ -99,5 +99,7 @@ /* @flow */

function NewExpression(node /*: Object*/) {
function NewExpression(node /*: Object*/, parent /*: Object*/) {
this.push("new ");
this.print(node.callee, node);
if (node.arguments.length === 0 && this.format.compact && !t.isCallExpression(parent, { callee: node }) && !t.isMemberExpression(parent) && !t.isNewExpression(parent)) return;
this.push("(");

@@ -104,0 +106,0 @@ this.printList(node.arguments, node);

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

@@ -26,4 +26,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"babel-helper-fixtures": "^6.3.13",
"babylon": "^6.3.14"
"babylon": "^6.3.15"
}
}
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