Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit c8c6634

Browse files
committed
Merge pull request #66 from ipfs/update/block-dep
fix - module not found
2 parents b9fe47a + e41ee5e commit c8c6634

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
"bs58": "^3.0.0",
6767
"debug": "^2.2.0",
6868
"hapi": "^12.0.0",
69+
"ipfs-blocks": "^0.1.0",
70+
"ipfs-merkle-dag": "^0.1.1",
6971
"ipfs-repo": "^0.5.0",
70-
"ipfs-merkle-dag": "vijayee/js-ipfs-merkle-dag",
7172
"lodash.get": "^4.0.0",
7273
"lodash.set": "^4.0.0",
7374
"ronin": "^0.3.11"

src/ipfs-core/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
const defaultRepo = require('./default-repo')
44
// const bl = require('bl')
5-
const MerkleDAG = require('ipfs-merkle-dag')
6-
const BlockService = MerkleDAG.BlockService
5+
// const MerkleDAG = require('ipfs-merkle-dag')
6+
const blocks = require('ipfs-blocks')
7+
const BlockService = blocks.BlockService
78
// const Block = MerkleDAG.Block
89

910
exports = module.exports = IPFS

tests/test-core/test-block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const expect = require('chai').expect
66
const base58 = require('bs58')
77
const fs = require('fs')
88
const IPFS = require('../../src/ipfs-core')
9-
const Block = require('ipfs-merkle-dag').Block
9+
const Block = require('ipfs-blocks').Block
1010

1111
const isNode = !global.window
1212

0 commit comments

Comments
 (0)