We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b2b9b commit 842090bCopy full SHA for 842090b
package.json
@@ -32,7 +32,7 @@
32
"dependencies": {
33
"bs58": "^3.0.0",
34
"detect-node": "^2.0.3",
35
- "ipfs-blocks": "^0.1.0",
+ "ipfs-blocks": "^0.2.3",
36
"is-ipfs": "^0.2.0",
37
"multihashing": "^0.2.0",
38
"protocol-buffers": "^3.1.4",
src/dag-service.js
@@ -48,7 +48,9 @@ function DAGService (blockService) {
48
this.getWith = function (key, callback) {
49
const formatted = typeof key === 'string' ? new Buffer(base58.decode(key)) : key
50
this.bs.getBlock(formatted, (err, block) => {
51
- if (err) { return callback(err) }
+ if (err) {
52
+ return callback(err)
53
+ }
54
var node = new DAGNode()
55
node.unMarshal(block.data)
56
return callback(null, node)
0 commit comments