Comparing version 5.0.0 to 5.0.1
12
index.js
@@ -238,11 +238,11 @@ /** | ||
throw Error('empty string'); | ||
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity") | ||
return ZERO; | ||
if (typeof unsigned === 'number') { | ||
// For goog.math.long compatibility | ||
radix = unsigned, | ||
unsigned = false; | ||
radix = unsigned; | ||
unsigned = false; | ||
} else { | ||
unsigned = !!unsigned; | ||
} | ||
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity") | ||
return unsigned ? UZERO : ZERO; | ||
radix = radix || 10; | ||
@@ -882,3 +882,3 @@ if (radix < 2 || 36 < radix) | ||
if (this.isZero()) | ||
return ZERO; | ||
return this; | ||
if (!isLong(multiplier)) | ||
@@ -897,3 +897,3 @@ multiplier = fromValue(multiplier); | ||
if (multiplier.isZero()) | ||
return ZERO; | ||
return this.unsigned ? UZERO : ZERO; | ||
if (this.eq(MIN_VALUE)) | ||
@@ -900,0 +900,0 @@ return multiplier.isOdd() ? MIN_VALUE : ZERO; |
{ | ||
"name": "long", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"author": "Daniel Wirtz <dcode@dcode.io>", | ||
@@ -5,0 +5,0 @@ "description": "A Long class for representing a 64-bit two's-complement integer value.", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
71736
0