Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 9d17e1e

Browse files
Merge pull request #329 from ipfs/update-deps
feat: update all dependencies
2 parents 3741929 + 2c4cd7f commit 9d17e1e

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
"main": "lib/index.js",
66
"jsnext:main": "src/index.js",
77
"dependencies": {
8-
"async": "^2.0.0-rc.5",
9-
"babel-runtime": "^6.6.1",
8+
"async": "^2.0.1",
9+
"babel-runtime": "^6.11.6",
1010
"bl": "^1.1.2",
1111
"bs58": "^3.0.0",
1212
"detect-node": "^2.0.3",
1313
"flatmap": "0.0.3",
14-
"glob": "^7.0.3",
14+
"glob": "^7.0.5",
1515
"ipfs-merkle-dag": "^0.6.0",
1616
"is-ipfs": "^0.2.0",
1717
"isstream": "^0.1.2",
18-
"multiaddr": "^2.0.0",
18+
"multiaddr": "^2.0.2",
1919
"multipart-stream": "^2.0.1",
2020
"ndjson": "^1.4.3",
2121
"promisify-es6": "^1.0.1",
22-
"qs": "^6.1.0",
23-
"wreck": "^7.0.2"
22+
"qs": "^6.2.1",
23+
"wreck": "^9.0.0"
2424
},
2525
"engines": {
2626
"node": ">=4.2.2"
@@ -30,14 +30,14 @@
3030
"url": "https://github.com/ipfs/js-ipfs-api"
3131
},
3232
"devDependencies": {
33-
"aegir": "^3.2.0",
33+
"aegir": "^5.0.1",
3434
"chai": "^3.5.0",
3535
"gulp": "^3.9.1",
36-
"interface-ipfs-core": "^0.4.3",
36+
"interface-ipfs-core": "^0.5.0",
3737
"ipfsd-ctl": "^0.14.0",
38-
"pre-commit": "^1.1.2",
38+
"pre-commit": "^1.1.3",
3939
"stream-equal": "^0.1.8",
40-
"stream-http": "^2.2.0",
40+
"stream-http": "^2.3.1",
4141
"streamifier": "^0.1.1"
4242
},
4343
"scripts": {
@@ -94,4 +94,4 @@
9494
"url": "https://github.com/ipfs/js-ipfs-api/issues"
9595
},
9696
"homepage": "https://github.com/ipfs/js-ipfs-api"
97-
}
97+
}

test/api/block.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('.block', () => {
6161
})
6262

6363
it('block.get', (done) => {
64-
return apiClients.a.block.get(blorbKey)
64+
apiClients.a.block.get(blorbKey)
6565
.then((res) => {
6666
let buf = ''
6767
res
@@ -71,6 +71,7 @@ describe('.block', () => {
7171
done()
7272
})
7373
})
74+
.catch(done)
7475
})
7576

7677
it('block.stat', () => {

test/api/files.spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('.files (pseudo mfs)', () => {
175175
})
176176

177177
it('files.write', (done) => {
178-
return apiClients.a.files
178+
apiClients.a.files
179179
.write('/test-folder/test-file-2.txt', new Buffer('hello world'), {create: true})
180180
.then(() => {
181181
return apiClients.a.files.read('/test-folder/test-file-2.txt')
@@ -194,10 +194,11 @@ describe('.files (pseudo mfs)', () => {
194194
done()
195195
})
196196
})
197+
.catch(done)
197198
})
198199

199200
it('files.write without options', (done) => {
200-
return apiClients.a.files
201+
apiClients.a.files
201202
.write('/test-folder/test-file-2.txt', new Buffer('hello world'))
202203
.then(() => {
203204
return apiClients.a.files.read('/test-folder/test-file-2.txt')
@@ -216,6 +217,7 @@ describe('.files (pseudo mfs)', () => {
216217
done()
217218
})
218219
})
220+
.catch(done)
219221
})
220222

221223
it('files.stat', () => {

test/api/log.spec.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ describe('.log', () => {
2525
})
2626

2727
describe('promise', () => {
28-
it('.log.tail', (done) => {
28+
it('.log.tail', () => {
2929
if (isPhantom) {
30-
return done()
30+
return
3131
}
3232

3333
return apiClients.a.log.tail()
3434
.then((res) => {
3535
res.once('data', (obj) => {
3636
expect(obj).to.be.an('object')
37-
done()
3837
})
3938
})
4039
})

0 commit comments

Comments
 (0)