This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 4 files changed +19
-17
lines changed
4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " lib/index.js" ,
6
6
"jsnext:main" : " src/index.js" ,
7
7
"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 " ,
10
10
"bl" : " ^1.1.2" ,
11
11
"bs58" : " ^3.0.0" ,
12
12
"detect-node" : " ^2.0.3" ,
13
13
"flatmap" : " 0.0.3" ,
14
- "glob" : " ^7.0.3 " ,
14
+ "glob" : " ^7.0.5 " ,
15
15
"ipfs-merkle-dag" : " ^0.6.0" ,
16
16
"is-ipfs" : " ^0.2.0" ,
17
17
"isstream" : " ^0.1.2" ,
18
- "multiaddr" : " ^2.0.0 " ,
18
+ "multiaddr" : " ^2.0.2 " ,
19
19
"multipart-stream" : " ^2.0.1" ,
20
20
"ndjson" : " ^1.4.3" ,
21
21
"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 "
24
24
},
25
25
"engines" : {
26
26
"node" : " >=4.2.2"
30
30
"url" : " https://github.com/ipfs/js-ipfs-api"
31
31
},
32
32
"devDependencies" : {
33
- "aegir" : " ^3.2.0 " ,
33
+ "aegir" : " ^5.0.1 " ,
34
34
"chai" : " ^3.5.0" ,
35
35
"gulp" : " ^3.9.1" ,
36
- "interface-ipfs-core" : " ^0.4.3 " ,
36
+ "interface-ipfs-core" : " ^0.5.0 " ,
37
37
"ipfsd-ctl" : " ^0.14.0" ,
38
- "pre-commit" : " ^1.1.2 " ,
38
+ "pre-commit" : " ^1.1.3 " ,
39
39
"stream-equal" : " ^0.1.8" ,
40
- "stream-http" : " ^2.2.0 " ,
40
+ "stream-http" : " ^2.3.1 " ,
41
41
"streamifier" : " ^0.1.1"
42
42
},
43
43
"scripts" : {
94
94
"url" : " https://github.com/ipfs/js-ipfs-api/issues"
95
95
},
96
96
"homepage" : " https://github.com/ipfs/js-ipfs-api"
97
- }
97
+ }
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ describe('.block', () => {
61
61
} )
62
62
63
63
it ( 'block.get' , ( done ) => {
64
- return apiClients . a . block . get ( blorbKey )
64
+ apiClients . a . block . get ( blorbKey )
65
65
. then ( ( res ) => {
66
66
let buf = ''
67
67
res
@@ -71,6 +71,7 @@ describe('.block', () => {
71
71
done ( )
72
72
} )
73
73
} )
74
+ . catch ( done )
74
75
} )
75
76
76
77
it ( 'block.stat' , ( ) => {
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ describe('.files (pseudo mfs)', () => {
175
175
} )
176
176
177
177
it ( 'files.write' , ( done ) => {
178
- return apiClients . a . files
178
+ apiClients . a . files
179
179
. write ( '/test-folder/test-file-2.txt' , new Buffer ( 'hello world' ) , { create : true } )
180
180
. then ( ( ) => {
181
181
return apiClients . a . files . read ( '/test-folder/test-file-2.txt' )
@@ -194,10 +194,11 @@ describe('.files (pseudo mfs)', () => {
194
194
done ( )
195
195
} )
196
196
} )
197
+ . catch ( done )
197
198
} )
198
199
199
200
it ( 'files.write without options' , ( done ) => {
200
- return apiClients . a . files
201
+ apiClients . a . files
201
202
. write ( '/test-folder/test-file-2.txt' , new Buffer ( 'hello world' ) )
202
203
. then ( ( ) => {
203
204
return apiClients . a . files . read ( '/test-folder/test-file-2.txt' )
@@ -216,6 +217,7 @@ describe('.files (pseudo mfs)', () => {
216
217
done ( )
217
218
} )
218
219
} )
220
+ . catch ( done )
219
221
} )
220
222
221
223
it ( 'files.stat' , ( ) => {
Original file line number Diff line number Diff line change @@ -25,16 +25,15 @@ describe('.log', () => {
25
25
} )
26
26
27
27
describe ( 'promise' , ( ) => {
28
- it ( '.log.tail' , ( done ) => {
28
+ it ( '.log.tail' , ( ) => {
29
29
if ( isPhantom ) {
30
- return done ( )
30
+ return
31
31
}
32
32
33
33
return apiClients . a . log . tail ( )
34
34
. then ( ( res ) => {
35
35
res . once ( 'data' , ( obj ) => {
36
36
expect ( obj ) . to . be . an ( 'object' )
37
- done ( )
38
37
} )
39
38
} )
40
39
} )
You can’t perform that action at this time.
0 commit comments