This repository was archived by the owner on Sep 28, 2021. It is now read-only.
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
"homepage" : " https://github.com./ipfs/js-ipfs-http-response#readme" ,
33
33
"dependencies" : {
34
- "debug" : " ^4.1 .1" ,
34
+ "debug" : " ^4.3 .1" ,
35
35
"file-type" : " ^16.0.0" ,
36
36
"filesize" : " ^6.1.0" ,
37
37
"it-buffer" : " ^0.1.1" ,
38
38
"it-concat" : " ^2.0.0" ,
39
39
"it-reader" : " ^3.0.0" ,
40
40
"it-to-stream" : " ^1.0.0" ,
41
- "mime-types" : " ^2.1.27 " ,
41
+ "mime-types" : " ^2.1.30 " ,
42
42
"multihashes" : " ^4.0.2" ,
43
43
"p-try-each" : " ^1.0.1"
44
44
},
45
45
"devDependencies" : {
46
- "aegir" : " ^33.0.0 " ,
46
+ "aegir" : " ^33.1.2 " ,
47
47
"cids" : " ^1.0.0" ,
48
48
"get-stream" : " ^6.0.0" ,
49
- "ipfs" : " ^0.54.2 " ,
50
- "ipfsd-ctl" : " ^7 .0.0 " ,
51
- "it-all" : " ^1.0.1 " ,
49
+ "ipfs" : " ^0.55.1 " ,
50
+ "ipfsd-ctl" : " ^8 .0.2 " ,
51
+ "it-all" : " ^1.0.5 " ,
52
52
"path" : " ^0.12.7" ,
53
53
"uint8arrays" : " ^2.0.5" ,
54
54
"util" : " ^0.12.3"
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ describe('resolve directory (CIDv0)', function () {
150
150
} )
151
151
152
152
it ( 'should return HTML listing of files of a directory' , async ( ) => {
153
- const res = await ipfsResolver . directory ( ipfs , `/ipfs/${ directory . cid } ` , directory . cid )
153
+ const res = await ipfsResolver . directory ( ipfs , `/ipfs/${ directory . cid } ` , new CID ( directory . cid ) )
154
154
155
155
expect ( res ) . to . exist ( )
156
156
expect ( res ) . to . include ( '</html>' )
@@ -207,7 +207,7 @@ describe('resolve directory (CIDv1)', function () {
207
207
} )
208
208
209
209
it ( 'should return HTML listing of files of a directory' , async ( ) => {
210
- const res = await ipfsResolver . directory ( ipfs , `/ipfs/${ directory . cid } ` , directory . cid )
210
+ const res = await ipfsResolver . directory ( ipfs , `/ipfs/${ directory . cid } ` , new CID ( directory . cid ) )
211
211
expect ( res ) . to . exist ( )
212
212
expect ( res ) . to . include ( 'pp.txt' )
213
213
expect ( res ) . to . include ( 'holmes.txt' )
You can’t perform that action at this time.
0 commit comments