This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 31
31
"glob" : " ^7.1.1" ,
32
32
"glob-escape" : " 0.0.2" ,
33
33
"ipfs-block" : " ^0.5.1" ,
34
- "ipld-dag-pb" : " ^0.9.2 " ,
34
+ "ipld-dag-pb" : " ^0.9.3 " ,
35
35
"is-ipfs" : " ^0.2.1" ,
36
36
"isstream" : " ^0.1.2" ,
37
37
"lru-cache" : " ^4.0.2" ,
38
38
"multiaddr" : " ^2.1.1" ,
39
39
"multipart-stream" : " ^2.0.1" ,
40
- "ndjson" : " ^1.4.3 " ,
40
+ "ndjson" : " ^1.5.0 " ,
41
41
"once" : " ^1.4.0" ,
42
42
"peer-id" : " ^0.8.0" ,
43
43
"peer-info" : " ^0.8.1" ,
59
59
"devDependencies" : {
60
60
"aegir" : " ^9.1.2" ,
61
61
"chai" : " ^3.5.0" ,
62
- "eslint-plugin-react" : " ^6.7.1 " ,
62
+ "eslint-plugin-react" : " ^6.8.0 " ,
63
63
"gulp" : " ^3.9.1" ,
64
64
"hapi" : " ^16.0.1" ,
65
65
"interface-ipfs-core" : " ^0.22.0" ,
66
66
"ipfsd-ctl" : " ^0.17.0" ,
67
67
"pre-commit" : " ^1.1.3" ,
68
68
"socket.io" : " ^1.7.1" ,
69
69
"socket.io-client" : " ^1.7.1" ,
70
- "stream-equal" : " ^0.1.11 "
70
+ "stream-equal" : " ^0.1.12 "
71
71
},
72
72
"pre-commit" : [
73
73
" lint" ,
115
115
"url" : " https://github.com/ipfs/js-ipfs-api/issues"
116
116
},
117
117
"homepage" : " https://github.com/ipfs/js-ipfs-api"
118
- }
118
+ }
Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ module.exports = (send) => {
10
10
return {
11
11
get : promisify ( ( args , opts , callback ) => {
12
12
// TODO this needs to be adjusted with the new go-ipfs http-api
13
- if ( args && CID . isCID ( args ) ) {
13
+ if ( CID . isCID ( args ) ) {
14
14
args = multihash . toB58String ( args . multihash )
15
15
}
16
- if ( typeof ( opts ) === 'function' ) {
16
+ if ( Buffer . isBuffer ( args ) ) {
17
+ args = multihash . toB58String ( args )
18
+ }
19
+ if ( typeof opts === 'function' ) {
17
20
callback = opts
18
21
opts = { }
19
22
}
You can’t perform that action at this time.
0 commit comments