diff --git a/lib/encoding/base58check.js b/lib/encoding/base58check.js index 68d00d668..56666d595 100644 --- a/lib/encoding/base58check.js +++ b/lib/encoding/base58check.js @@ -26,7 +26,7 @@ Base58Check.decode = function(s) { if (typeof s !== 'string') throw new Error('Input must be a string'); - var buf = base58.decode(s); + var buf = new Buffer(base58.decode(s)); if (buf.length < 4) throw new Error("Input string too short"); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index ebb18f233..b619ac3be 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { - "name": "bitcore2", - "version": "0.0.0", + "name": "bitcore", + "version": "0.8.0", "dependencies": { "aes": { "version": "0.1.0", @@ -8,14 +8,14 @@ "resolved": "https://registry.npmjs.org/aes/-/aes-0.1.0.tgz" }, "bn.js": { - "version": "0.15.0", - "from": "bn.js@0.15.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-0.15.0.tgz" + "version": "0.15.2", + "from": "bn.js@0.15.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-0.15.2.tgz" }, "bs58": { - "version": "1.2.1", - "from": "bs58@=1.2.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-1.2.1.tgz" + "version": "2.0.0", + "from": "bs58@2.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-2.0.0.tgz" }, "elliptic": { "version": "0.15.12", @@ -23,9 +23,9 @@ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-0.15.12.tgz", "dependencies": { "bn.js": { - "version": "0.15.0", - "from": "bn.js@0.15.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-0.15.0.tgz" + "version": "0.15.2", + "from": "bn.js@0.15.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-0.15.2.tgz" }, "hash.js": { "version": "0.3.2", diff --git a/package.json b/package.json index 639174ca5..2085ec451 100644 --- a/package.json +++ b/package.json @@ -64,20 +64,20 @@ "url": "https://github.com/bitpay/bitcore.git" }, "dependencies": { - "bn.js": "=0.15.0", - "bs58": "=1.2.1", - "elliptic": "=0.15.12", + "bn.js": "=0.15.2", + "bs58": "=2.0.0", + "elliptic": "=0.15.14", "hash.js": "=0.3.2", "sha512": "=0.0.1" }, "devDependencies": { - "browserify": "~5.9.1", - "chai": "~1.9.1", + "browserify": "~6.3.3", + "chai": "~1.10.0", "grunt": "^0.4.5", "grunt-contrib-watch": "^0.6.1", "grunt-markdown": "^0.6.1", "grunt-shell": "^1.1.1", - "mocha": "~1.21.0" + "mocha": "~2.0.1" }, "license": "MIT" }