Socket
Socket
Sign inDemoInstall

long

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

long - npm Package Compare versions

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.",

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