From 2c4cd7f459a58f79758dbd2f7abafeb17bad0a29 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Wed, 3 Aug 2016 20:15:06 +0200 Subject: [PATCH] feat: update all dependencies --- package.json | 22 +++++++++++----------- test/api/block.spec.js | 3 ++- test/api/files.spec.js | 6 ++++-- test/api/log.spec.js | 5 ++--- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 38adb7b71a..f0ff3949a2 100644 --- a/package.json +++ b/package.json @@ -5,22 +5,22 @@ "main": "lib/index.js", "jsnext:main": "src/index.js", "dependencies": { - "async": "^2.0.0-rc.5", - "babel-runtime": "^6.6.1", + "async": "^2.0.1", + "babel-runtime": "^6.11.6", "bl": "^1.1.2", "bs58": "^3.0.0", "detect-node": "^2.0.3", "flatmap": "0.0.3", - "glob": "^7.0.3", + "glob": "^7.0.5", "ipfs-merkle-dag": "^0.6.0", "is-ipfs": "^0.2.0", "isstream": "^0.1.2", - "multiaddr": "^2.0.0", + "multiaddr": "^2.0.2", "multipart-stream": "^2.0.1", "ndjson": "^1.4.3", "promisify-es6": "^1.0.1", - "qs": "^6.1.0", - "wreck": "^7.0.2" + "qs": "^6.2.1", + "wreck": "^9.0.0" }, "engines": { "node": ">=4.2.2" @@ -30,14 +30,14 @@ "url": "https://github.com/ipfs/js-ipfs-api" }, "devDependencies": { - "aegir": "^3.2.0", + "aegir": "^5.0.1", "chai": "^3.5.0", "gulp": "^3.9.1", - "interface-ipfs-core": "^0.4.3", + "interface-ipfs-core": "^0.5.0", "ipfsd-ctl": "^0.14.0", - "pre-commit": "^1.1.2", + "pre-commit": "^1.1.3", "stream-equal": "^0.1.8", - "stream-http": "^2.2.0", + "stream-http": "^2.3.1", "streamifier": "^0.1.1" }, "scripts": { @@ -94,4 +94,4 @@ "url": "https://github.com/ipfs/js-ipfs-api/issues" }, "homepage": "https://github.com/ipfs/js-ipfs-api" -} \ No newline at end of file +} diff --git a/test/api/block.spec.js b/test/api/block.spec.js index 3851b09e47..4fdef4646b 100644 --- a/test/api/block.spec.js +++ b/test/api/block.spec.js @@ -61,7 +61,7 @@ describe('.block', () => { }) it('block.get', (done) => { - return apiClients.a.block.get(blorbKey) + apiClients.a.block.get(blorbKey) .then((res) => { let buf = '' res @@ -71,6 +71,7 @@ describe('.block', () => { done() }) }) + .catch(done) }) it('block.stat', () => { diff --git a/test/api/files.spec.js b/test/api/files.spec.js index 1a397d5531..7a5cc616bd 100644 --- a/test/api/files.spec.js +++ b/test/api/files.spec.js @@ -175,7 +175,7 @@ describe('.files (pseudo mfs)', () => { }) it('files.write', (done) => { - return apiClients.a.files + apiClients.a.files .write('/test-folder/test-file-2.txt', new Buffer('hello world'), {create: true}) .then(() => { return apiClients.a.files.read('/test-folder/test-file-2.txt') @@ -194,10 +194,11 @@ describe('.files (pseudo mfs)', () => { done() }) }) + .catch(done) }) it('files.write without options', (done) => { - return apiClients.a.files + apiClients.a.files .write('/test-folder/test-file-2.txt', new Buffer('hello world')) .then(() => { return apiClients.a.files.read('/test-folder/test-file-2.txt') @@ -216,6 +217,7 @@ describe('.files (pseudo mfs)', () => { done() }) }) + .catch(done) }) it('files.stat', () => { diff --git a/test/api/log.spec.js b/test/api/log.spec.js index 92ce2ad4b7..6c46ba36f2 100644 --- a/test/api/log.spec.js +++ b/test/api/log.spec.js @@ -25,16 +25,15 @@ describe('.log', () => { }) describe('promise', () => { - it('.log.tail', (done) => { + it('.log.tail', () => { if (isPhantom) { - return done() + return } return apiClients.a.log.tail() .then((res) => { res.once('data', (obj) => { expect(obj).to.be.an('object') - done() }) }) })