Socket
Socket
Sign inDemoInstall

babel-generator

Package Overview
Dependencies
Maintainers
1
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.1.4 to 6.1.5

3

lib/generators/expressions.js

@@ -46,2 +46,3 @@ /* @flow */

var SCIENTIFIC_NOTATION = /e/i;
var ZERO_DECIMAL_INTEGER = /\.0+$/;

@@ -247,3 +248,3 @@ function UnaryExpression(node /*: Object*/) {

var val = this.getPossibleRaw(node.object) || this._stringLiteral(node.object);
if (_isInteger2["default"](+val) && !SCIENTIFIC_NOTATION.test(val) && !this.endsWith(".")) {
if (_isInteger2["default"](+val) && !SCIENTIFIC_NOTATION.test(val) && !ZERO_DECIMAL_INTEGER.test(val) && !this.endsWith(".")) {
this.push(".");

@@ -250,0 +251,0 @@ }

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

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

"dependencies": {
"babel-messages": "^6.1.4",
"babel-messages": "^6.1.5",
"babel-runtime": "^5.0.0",
"babel-types": "^6.1.4",
"babel-types": "^6.1.5",
"detect-indent": "^3.0.1",

@@ -26,5 +26,5 @@ "is-integer": "^1.0.4",

"devDependencies": {
"babel-helper-fixtures": "^6.1.4",
"babylon": "^6.1.4"
"babel-helper-fixtures": "^6.1.5",
"babylon": "^6.1.5"
}
}
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