Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bignum

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bignum - npm Package Compare versions

Comparing version 0.12.5 to 0.13.0

16

index.js

@@ -1,5 +0,3 @@

var binary = require('node-pre-gyp')
var path = require('path')
var binPath = binary.find(path.resolve(path.join(__dirname, 'package.json')))
var bin = require(binPath)
var bin = require('bindings')('bignum')
var Buffer = require('safe-buffer').Buffer
var BigNum = bin.BigNum

@@ -31,3 +29,3 @@

}
} else if (num.match(/e\-/)) { // negative exponent
} else if (num.match(/e-/)) { // negative exponent
return {

@@ -261,5 +259,3 @@ num: Math.floor(Number(num)).toString(),

} else {
var x = BigNum.isBigNum(to)
? to.sub(this)
: BigNum(to).sub(this)
var x = BigNum.isBigNum(to) ? to.sub(this) : BigNum(to).sub(this)
return x.brand0().add(this)

@@ -347,3 +343,3 @@ }

var ret = new Buffer(4 + len)
var ret = Buffer.alloc(4 + len)
if (len > 0) buf.copy(ret, 4 + (buf[0] & 0x80 ? 1 : 0))

@@ -383,3 +379,3 @@ if (buf[0] & 0x80) ret[4] = 0

len = Math.ceil(hex.length / (2 * size)) * size
buf = new Buffer(len)
buf = Buffer.alloc(len)

@@ -386,0 +382,0 @@ // zero-pad the hex string so the chunks are all `size` long

{
"name": "bignum",
"version": "0.12.5",
"version": "0.13.0",
"description": "Arbitrary-precision integer arithmetic using OpenSSL",

@@ -25,14 +25,19 @@ "main": "./index.js",

"dependencies": {
"nan": "^2.3.4",
"node-pre-gyp": "~0.6.28"
"bindings": "~1.3.0",
"nan": "~2.10.0",
"prebuild-install": "~4.0.0",
"safe-buffer": "~5.1.2"
},
"devDependencies": {
"aws-sdk": "~2.4.0",
"prebuild": "~7.6.0",
"prebuild-ci": "~2.2.3",
"put": "~0.0.5",
"standard": "~7.1.2",
"tap": "~5.7.2"
"standard": "~11.0.1",
"tap": "~12.0.1"
},
"scripts": {
"install": "node-pre-gyp install --fallback-to-build",
"test": "standard && tap test/*.js"
"install": "prebuild-install || node-gyp rebuild",
"rebuild": "prebuild --compile",
"prebuild": "prebuild --all --strip --verbose",
"test": "standard && tap --timeout 120 test/*.js && prebuild-ci"
},

@@ -39,0 +44,0 @@ "binary": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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