Update ipfs-api dependency

This commit is contained in:
2018-04-02 18:17:50 +02:00
parent 0d1418e595
commit 83a0d56314
3 changed files with 1174 additions and 2247 deletions
+2 -2
View File
@@ -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);
}); });
+1171 -2244
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -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",