babel-generator
Advanced tools
Comparing version 6.1.4 to 6.1.5
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83220
2571
Updatedbabel-messages@^6.1.5
Updatedbabel-types@^6.1.5