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
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
0
1
49162
4
5
5
344
+ Addedbindings@~1.3.0
+ Addedprebuild-install@~4.0.0
+ Addedsafe-buffer@~5.1.2
+ Addedbindings@1.3.1(transitive)
+ Addedbl@1.2.3(transitive)
+ Addedbuffer-alloc@1.2.0(transitive)
+ Addedbuffer-alloc-unsafe@1.1.0(transitive)
+ Addedbuffer-fill@1.0.0(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexpand-template@1.1.1(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedgithub-from-package@0.0.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addednan@2.10.0(transitive)
+ Addednode-abi@2.30.1(transitive)
+ Addednoop-logger@0.1.1(transitive)
+ Addedprebuild-install@4.0.0(transitive)
+ Addedpump@1.0.32.0.1(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@2.8.2(transitive)
+ Addedtar-fs@1.16.3(transitive)
+ Addedtar-stream@1.6.2(transitive)
+ Addedto-buffer@1.1.1(transitive)
+ Addedwhich-pm-runs@1.1.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removednode-pre-gyp@~0.6.28
- Removedabbrev@1.1.1(transitive)
- Removedajv@4.11.8(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@0.2.01.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedblock-stream@0.0.9(transitive)
- Removedboom@2.10.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedco@4.6.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.1.4(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedfstream-ignore@1.0.5(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob@7.2.3(transitive)
- Removedgopd@1.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhar-schema@1.0.5(transitive)
- Removedhar-validator@4.2.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@2.0.5(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-stable-stringify@1.1.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.0.0(transitive)
- Removednan@2.22.0(transitive)
- Removednode-pre-gyp@0.6.39(transitive)
- Removednopt@4.0.3(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedperformance-now@0.2.0(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.4.1(transitive)
- Removedrequest@2.81.0(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsntp@1.0.9(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedtar@2.2.2(transitive)
- Removedtar-pack@3.4.1(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduid-number@0.0.6(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
Updatednan@~2.10.0