Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8924bf0

Browse files
author
Alan Shaw
committedMay 22, 2019
fix: upgrade for 0.36
The IPLD dag-pb format changed in 0.36 to more closely follow it's serialized form. See the release notes for more info ipfs/js-ipfs#2024
1 parent f0df3ff commit 8924bf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ function getFile(ipfs, rootHash, filename, callback) {
6767
var hash = null
6868
var fileSize, fileName
6969

70-
_.each(res.links, function(link) {
71-
if (link.name === filename) {
72-
hash = link.multihash
73-
fileSize = link.size
74-
fileName = link.name
70+
_.each(res.Links, function(link) {
71+
if (link.Name === filename) {
72+
hash = link.Hash
73+
fileSize = link.Tsize
74+
fileName = link.Name
7575
return false
7676
}
7777
});

0 commit comments

Comments
 (0)
Please sign in to comment.