Update ipfs-api dependency
This commit is contained in:
@@ -24,8 +24,8 @@ export default Ember.Service.extend({
|
||||
},
|
||||
|
||||
getFile(hash) {
|
||||
return this.get('ipfs').cat(hash, { buffer: true }).then(res => {
|
||||
return res.toString();
|
||||
return this.get('ipfs').cat(hash).then(res => {
|
||||
return res.toString('utf8');
|
||||
}, err => {
|
||||
Ember.Logger.warn('[ipfs] error trying to fetch file', hash, err);
|
||||
});
|
||||
|
||||
Generated
+1171
-2244
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -51,7 +51,7 @@
|
||||
"ember-parachute": "0.1.0",
|
||||
"ember-resolver": "^2.0.3",
|
||||
"ember-truth-helpers": "1.3.0",
|
||||
"ipfs-api": "^12.1.7",
|
||||
"ipfs-api": "^19.0.0",
|
||||
"kosmos-schemas": "^1.1.2",
|
||||
"kredits-contracts": "github:67P/truffle-kredits#master",
|
||||
"loader.js": "^4.0.10",
|
||||
|
||||
Reference in New Issue
Block a user