diff --git a/package-lock.json b/package-lock.json index a6b4933..fc6616c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "storjshare-daemon", - "version": "5.2.0", + "version": "5.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -272,15 +272,6 @@ "bitcore-lib": "0.13.19" } }, - "bitcore-mnemonic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bitcore-mnemonic/-/bitcore-mnemonic-1.1.1.tgz", - "integrity": "sha1-dBDYvXvuBhCpuRpnmZh8/CnmaMo=", - "requires": { - "bitcore-lib": "0.13.19", - "unorm": "1.4.1" - } - }, "bl": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.1.tgz", @@ -294,14 +285,6 @@ "resolved": "https://registry.npmjs.org/blindfold/-/blindfold-0.0.1.tgz", "integrity": "sha1-yYuzMd25bSzd6VH1tibREUvr538=" }, - "block-stream": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", - "requires": { - "inherits": "2.0.3" - } - }, "bloem": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/bloem/-/bloem-0.2.4.tgz", @@ -612,16 +595,6 @@ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "concat-stream": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", - "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "typedarray": "0.0.6" - } - }, "console-browserify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", @@ -1018,7 +991,8 @@ "diff": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", - "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=" + "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=", + "dev": true }, "diglet": { "version": "1.0.6", @@ -1228,7 +1202,8 @@ "escape-string-regexp": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz", - "integrity": "sha1-Tbwv5nTnGUnK8/smlc5/LcHZqNE=" + "integrity": "sha1-Tbwv5nTnGUnK8/smlc5/LcHZqNE=", + "dev": true }, "escodegen": { "version": "1.7.1", @@ -1519,17 +1494,6 @@ "resolved": "https://registry.npmjs.org/fslogger/-/fslogger-2.0.2.tgz", "integrity": "sha1-DZMTnCfrmvDGEPtmYTjGxhJxp4o=" }, - "fstream": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", - "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.2" - } - }, "gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", @@ -1595,15 +1559,11 @@ "process": "0.5.2" } }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" - }, "growl": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", - "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=" + "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", + "dev": true }, "handle-thing": { "version": "1.2.5", @@ -1976,6 +1936,7 @@ "version": "0.26.3", "resolved": "https://registry.npmjs.org/jade/-/jade-0.26.3.tgz", "integrity": "sha1-jxDXl32NefL2/4YqgbBRPMslaGw=", + "dev": true, "requires": { "commander": "0.6.1", "mkdirp": "0.3.0" @@ -1984,12 +1945,14 @@ "commander": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz", - "integrity": "sha1-+mihT2qUXVTbvlDYzbMyDp47GgY=" + "integrity": "sha1-+mihT2qUXVTbvlDYzbMyDp47GgY=", + "dev": true }, "mkdirp": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz", - "integrity": "sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=" + "integrity": "sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=", + "dev": true } } }, @@ -2437,6 +2400,7 @@ "version": "2.5.3", "resolved": "https://registry.npmjs.org/mocha/-/mocha-2.5.3.tgz", "integrity": "sha1-FhvlvetJZ3HrmzV0UFC2IrWu/Fg=", + "dev": true, "requires": { "commander": "2.3.0", "debug": "2.2.0", @@ -2453,12 +2417,14 @@ "commander": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/commander/-/commander-2.3.0.tgz", - "integrity": "sha1-/UMOiJgy7DU7ms0d4hfBHLPu+HM=" + "integrity": "sha1-/UMOiJgy7DU7ms0d4hfBHLPu+HM=", + "dev": true }, "debug": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, "requires": { "ms": "0.7.1" } @@ -2467,6 +2433,7 @@ "version": "3.2.11", "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", + "dev": true, "requires": { "inherits": "2.0.3", "minimatch": "0.3.0" @@ -2475,12 +2442,14 @@ "lru-cache": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=" + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", + "dev": true }, "minimatch": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", + "dev": true, "requires": { "lru-cache": "2.7.3", "sigmund": "1.0.1" @@ -2489,7 +2458,8 @@ "ms": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true } } }, @@ -2505,11 +2475,6 @@ "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=", "optional": true }, - "mout": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/mout/-/mout-0.11.1.tgz", - "integrity": "sha1-ujYR318OWx/7/QEWa48C0fX6K5k=" - }, "ms": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", @@ -2579,37 +2544,6 @@ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.1.1.tgz", "integrity": "sha512-6oxV13poCOv7TfGvhsSz6XZWpXeKkdGVh72++cs33OfMh3KAX8lN84dCvmqSETyDXAFcUHtV7eJrgFBoOqZbNQ==" }, - "node-tar.gz": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-tar.gz/-/node-tar.gz-1.0.0.tgz", - "integrity": "sha1-zJn4Dv3qSaixdNEiWwYrNqGffjY=", - "requires": { - "bluebird": "2.11.0", - "chai": "3.5.0", - "commander": "2.11.0", - "fstream": "1.0.11", - "mocha": "2.5.3", - "mout": "0.11.1", - "tar": "2.2.1" - }, - "dependencies": { - "chai": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", - "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", - "requires": { - "assertion-error": "1.0.2", - "deep-eql": "0.1.3", - "type-detect": "1.0.0" - } - } - } - }, - "node-uuid": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", - "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=" - }, "noop-logger": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz", @@ -2634,9 +2568,6 @@ "set-blocking": "2.0.0" } }, - "ntp-client": { - "version": "github:bookchin/node-ntp-client#64a1d2318284578b90f388565de7c4b5a2441233" - }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", @@ -3396,16 +3327,14 @@ "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" }, "storj-lib": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/storj-lib/-/storj-lib-8.4.2.tgz", - "integrity": "sha512-MXGdmNXB+eFQuhNrp/jkfu27DaUxV2AuLC485pnr9QrJ/FuG95F4Wp5L9VIIP0FaDD8B4jMzJkHW8joZys+QZg==", + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/storj-lib/-/storj-lib-8.5.0.tgz", + "integrity": "sha512-0YzU+LcolIOqCLI8EoC85EqwoM8AEB9+koG3xyYWrk4vGFdE2srnDpSC7DKmWUvrFFz2GjA3M5o7hnbGo870Xw==", "requires": { "async": "2.5.0", "bitcore-ecies": "1.0.1", "bitcore-lib": "0.13.19", "bitcore-message": "1.0.4", - "bitcore-mnemonic": "1.1.1", - "concat-stream": "1.6.0", "diglet": "1.0.6", "diskusage": "0.2.4", "du": "0.1.0", @@ -3421,15 +3350,11 @@ "leveldown": "2.0.0", "levelup": "2.0.0", "merge": "1.2.0", - "mime": "1.4.1", "mkdirp": "0.5.1", "ms": "0.7.3", "mtree": "1.0.0", "nat-upnp": "1.1.0", - "node-tar.gz": "1.0.0", - "node-uuid": "1.4.8", "ntp-client": "github:bookchin/node-ntp-client#64a1d2318284578b90f388565de7c4b5a2441233", - "once": "1.4.0", "portfinder": "1.0.13", "readable-stream": "2.3.3", "request": "2.83.0", @@ -3439,6 +3364,11 @@ "secp256k1": "3.3.0", "semver": "5.4.1", "through": "2.3.8" + }, + "dependencies": { + "ntp-client": { + "version": "github:bookchin/node-ntp-client#64a1d2318284578b90f388565de7c4b5a2441233" + } } }, "stream-transform": { @@ -3498,7 +3428,8 @@ "supports-color": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-1.2.0.tgz", - "integrity": "sha1-/x7R5hFp0Gs88tWI4YixjYhH4X4=" + "integrity": "sha1-/x7R5hFp0Gs88tWI4YixjYhH4X4=", + "dev": true }, "tail": { "version": "1.2.3", @@ -3544,16 +3475,6 @@ } } }, - "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", - "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" - } - }, "tar-fs": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.0.tgz", @@ -3597,7 +3518,8 @@ "to-iso-string": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/to-iso-string/-/to-iso-string-0.0.2.tgz", - "integrity": "sha1-TcGeZk38y+Jb2NtQiwDG2hWCVdE=" + "integrity": "sha1-TcGeZk38y+Jb2NtQiwDG2hWCVdE=", + "dev": true }, "touch": { "version": "3.1.0", @@ -3662,11 +3584,6 @@ "mime-types": "2.1.17" } }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" - }, "uglify-js": { "version": "2.8.29", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", @@ -3705,11 +3622,6 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" }, - "unorm": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz", - "integrity": "sha1-NkIA1fE2RsqLzURJAnEzVhR5IwA=" - }, "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", diff --git a/package.json b/package.json index 52bb9b3..2df4805 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "storjshare-daemon", - "version": "5.2.0", + "version": "5.3.0", "description": "daemon + process manager for sharing space on the storj network", "main": "index.js", "bin": { @@ -75,7 +75,7 @@ "mkdirp": "^0.5.1", "pretty-ms": "^3.0.1", "rc": "^1.2.2", - "storj-lib": "^8.4.2", + "storj-lib": "^8.5.0", "strip-json-comments": "^2.0.1", "tail": "^1.2.3", "touch": "3.1.0", diff --git a/test/api.unit.js b/test/api.unit.js index 6670bbb..1b78fae 100644 --- a/test/api.unit.js +++ b/test/api.unit.js @@ -127,7 +127,7 @@ describe('class:RPC', function() { }); rpc.start('path/to/config', function(err) { expect(err.message).to.equal( - 'share 2c9e76f298cb3a023785be8985205d371580ba27 is already running' + 'node 2c9e76f298cb3a023785be8985205d371580ba27 is already running' ); done(); }); @@ -301,7 +301,7 @@ describe('class:RPC', function() { it('should callback error if no share', function(done) { let rpc = new RPC({ loggerVerbosity: 0 }); rpc.stop('test', function(err) { - expect(err.message).to.equal('share test is not running'); + expect(err.message).to.equal('node test is not running'); done(); }); }); @@ -441,7 +441,7 @@ describe('class:RPC', function() { let rpc = new RPC({ loggerVerbosity: 0 }); rpc.shares.set('test', { process: null }); rpc.destroy('test', function(err) { - expect(err.message).to.equal('share test is not running'); + expect(err.message).to.equal('node test is not running'); done(); }); });