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

babel-generator

Package Overview
Dependencies
Maintainers
5
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 7.0.0-beta.0 to 7.0.0-beta.1

2

lib/generators/expressions.js

@@ -63,3 +63,5 @@ "use strict";

} else {
this.startTerminatorless(true);
this.print(node.argument, node);
this.endTerminatorless();
this.token(node.operator);

@@ -66,0 +68,0 @@ }

3

lib/printer.js

@@ -207,4 +207,5 @@ "use strict";

var cha = str[i];
var chaPost = str[i + 1];
if (cha === "\n" || cha === "/") {
if (cha === "\n" || cha === "/" && (chaPost === "/" || chaPost === "*")) {
this.token("(");

@@ -211,0 +212,0 @@ this.indent();

{
"name": "babel-generator",
"version": "7.0.0-beta.0",
"version": "7.0.0-beta.1",
"description": "Turns an AST into code.",

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

"dependencies": {
"babel-messages": "7.0.0-beta.0",
"babel-types": "7.0.0-beta.0",
"babel-messages": "7.0.0-beta.1",
"babel-types": "7.0.0-beta.1",
"jsesc": "^2.5.1",

@@ -23,5 +23,5 @@ "lodash": "^4.2.0",

"devDependencies": {
"babel-helper-fixtures": "7.0.0-beta.0",
"babel-helper-fixtures": "7.0.0-beta.1",
"babylon": "^7.0.0-beta.22"
}
}
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