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