From 70e22ab7cd9afd6e4ac5946b95999b61dcf4a4a0 Mon Sep 17 00:00:00 2001 From: Gabriel Masclef Date: Fri, 1 Jun 2018 13:22:41 -0300 Subject: [PATCH] Fix: update bitcore-lib and fix lodash method --- lib/scaffold/add.js | 2 +- lib/scaffold/remove.js | 2 +- package-lock.json | 111 ++++++++++++++++++++++++++++------------- package.json | 2 +- 4 files changed, 79 insertions(+), 38 deletions(-) diff --git a/lib/scaffold/add.js b/lib/scaffold/add.js index 76f24bdbc..bc98a0830 100644 --- a/lib/scaffold/add.js +++ b/lib/scaffold/add.js @@ -26,7 +26,7 @@ function addConfig(configFilePath, service, done) { 'Configuration file is expected to have a services array.' ); config.services.push(service); - config.services = _.unique(config.services); + config.services = _.uniq(config.services); config.services.sort(function(a, b) { return a > b; }); diff --git a/lib/scaffold/remove.js b/lib/scaffold/remove.js index 0471255ce..243a184e4 100644 --- a/lib/scaffold/remove.js +++ b/lib/scaffold/remove.js @@ -32,7 +32,7 @@ function removeConfig(configFilePath, service, done) { config.services.splice(i, 1); } } - config.services = _.unique(config.services); + config.services = _.uniq(config.services); config.services.sort(function(a, b) { return a > b; }); diff --git a/package-lock.json b/package-lock.json index 59692c09a..707bc07e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -189,6 +189,14 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, + "base-x": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", + "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", + "requires": { + "safe-buffer": "5.1.1" + } + }, "base64-arraybuffer": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", @@ -341,43 +349,22 @@ "integrity": "sha1-sRMsBNzc5tNT1SDI8C3a+PmB+zQ=" }, "bitcore-lib": { - "version": "5.0.0-beta.1", - "resolved": "https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-5.0.0-beta.1.tgz", - "integrity": "sha512-y8aCkNJQieCPacLpW9wdg6Un2iAC/5Nt7g/lRHhK6PwrXw7dxXwc7eZOd87oPGn6bAd4jBd8YTCqIqwpf3UQsA==", + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-0.15.0.tgz", + "integrity": "sha512-AeXLWhiivF6CDFzrABZHT4jJrflyylDWTi32o30rF92HW9msfuKpjzrHtFKYGa9w0kNVv5HABQjCB3OEav4PhQ==", "requires": { - "bn.js": "2.0.4", - "bs58": "2.0.0", - "buffer-compare": "1.0.0", - "elliptic": "3.0.3", + "bn.js": "4.11.8", + "bs58": "4.0.1", + "buffer-compare": "1.1.1", + "elliptic": "6.4.0", "inherits": "2.0.1", - "lodash": "3.10.1" + "lodash": "4.17.4" }, "dependencies": { - "bn.js": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-2.0.4.tgz", - "integrity": "sha1-Igp81nf38b+pNif/QZN3b+eBlIA=" - }, - "elliptic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-3.0.3.tgz", - "integrity": "sha1-hlybQgv75VAGuflp+XoNLESWZZU=", - "requires": { - "bn.js": "2.0.4", - "brorand": "1.1.0", - "hash.js": "1.1.3", - "inherits": "2.0.1" - } - }, "inherits": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" } } }, @@ -443,11 +430,57 @@ "nan": "2.5.1" } }, + "bitcore-lib": { + "version": "5.0.0-beta.1", + "resolved": "https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-5.0.0-beta.1.tgz", + "integrity": "sha512-y8aCkNJQieCPacLpW9wdg6Un2iAC/5Nt7g/lRHhK6PwrXw7dxXwc7eZOd87oPGn6bAd4jBd8YTCqIqwpf3UQsA==", + "requires": { + "bn.js": "2.0.4", + "bs58": "2.0.0", + "buffer-compare": "1.0.0", + "elliptic": "3.0.3", + "inherits": "2.0.1", + "lodash": "3.10.1" + }, + "dependencies": { + "bn.js": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-2.0.4.tgz", + "integrity": "sha1-Igp81nf38b+pNif/QZN3b+eBlIA=" + }, + "elliptic": { + "version": "3.0.3", + "resolved": "http://registry.npmjs.org/elliptic/-/elliptic-3.0.3.tgz", + "integrity": "sha1-hlybQgv75VAGuflp+XoNLESWZZU=", + "requires": { + "bn.js": "2.0.4", + "brorand": "1.1.0", + "hash.js": "1.1.3", + "inherits": "2.0.1" + } + }, + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" + } + } + }, "bn.js": { "version": "4.11.6", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" }, + "bs58": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-2.0.0.tgz", + "integrity": "sha1-crcTvtIjoKxRi72g484/SBfznrU=" + }, + "buffer-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-compare/-/buffer-compare-1.0.0.tgz", + "integrity": "sha1-rKp6lm6Y7un64Usxw5pfFY+zxKI=" + }, "component-emitter": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", @@ -572,6 +605,11 @@ } } }, + "lodash": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" + }, "mime-db": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz", @@ -856,14 +894,17 @@ } }, "bs58": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-2.0.0.tgz", - "integrity": "sha1-crcTvtIjoKxRi72g484/SBfznrU=" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", + "requires": { + "base-x": "3.0.4" + } }, "buffer-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-compare/-/buffer-compare-1.0.0.tgz", - "integrity": "sha1-rKp6lm6Y7un64Usxw5pfFY+zxKI=" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-compare/-/buffer-compare-1.1.1.tgz", + "integrity": "sha1-W+e+hTr4kZjR9N3AkNHWakiu9ZY=" }, "buffer-xor": { "version": "1.0.3", diff --git a/package.json b/package.json index a7e9c0698..e84e0229d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "async": "^2.5.0", "bcoin": "bitpay/bcoin#v1.0.0-beta.14+cash", "bitcoind-rpc": "^0.6.0", - "bitcore-lib": "5.0.0-beta.1", + "bitcore-lib": "0.15.0", "bitcore-p2p": "5.0.0-beta.1", "bn.js": "^4.11.8", "body-parser": "^1.13.3",