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.19 to 6.3.20

lib/flycheck_printer.js

10

lib/generators/expressions.js

@@ -255,10 +255,4 @@ /* @flow */

} else {
if (t.isLiteral(node.object) && !t.isTemplateLiteral(node.object)) {
var val = undefined;
if (this.format.minified) {
val = this._stringLiteral(node.object);
} else {
val = this.getPossibleRaw(node.object) || this._stringLiteral(node.object);
}
if (t.isNumericLiteral(node.object)) {
var val = this.getPossibleRaw(node.object) || node.object.value;
if (_isInteger2["default"](+val) && !SCIENTIFIC_NOTATION.test(val) && !ZERO_DECIMAL_INTEGER.test(val) && !this.endsWith(".")) {

@@ -265,0 +259,0 @@ this.push(".");

6

package.json
{
"name": "babel-generator",
"version": "6.3.19",
"version": "6.3.20",
"description": "Turns an AST into code.",

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

"babel-runtime": "^5.0.0",
"babel-types": "^6.3.18",
"babel-types": "^6.3.20",
"detect-indent": "^3.0.1",

@@ -27,4 +27,4 @@ "is-integer": "^1.0.4",

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