From e41ee5e05fe3a9f102b48d651e0bee19a6375e2f Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 31 Jan 2016 11:42:37 +0000 Subject: [PATCH] fix - module not found --- package.json | 3 ++- src/ipfs-core/index.js | 5 +++-- tests/test-core/test-block.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d10b402f0d..94a23c222f 100644 --- a/package.json +++ b/package.json @@ -66,8 +66,9 @@ "bs58": "^3.0.0", "debug": "^2.2.0", "hapi": "^12.0.0", + "ipfs-blocks": "^0.1.0", + "ipfs-merkle-dag": "^0.1.1", "ipfs-repo": "^0.5.0", - "ipfs-merkle-dag": "vijayee/js-ipfs-merkle-dag", "lodash.get": "^4.0.0", "lodash.set": "^4.0.0", "ronin": "^0.3.11" diff --git a/src/ipfs-core/index.js b/src/ipfs-core/index.js index d81f065513..367bc04dae 100644 --- a/src/ipfs-core/index.js +++ b/src/ipfs-core/index.js @@ -2,8 +2,9 @@ const defaultRepo = require('./default-repo') // const bl = require('bl') -const MerkleDAG = require('ipfs-merkle-dag') -const BlockService = MerkleDAG.BlockService +// const MerkleDAG = require('ipfs-merkle-dag') +const blocks = require('ipfs-blocks') +const BlockService = blocks.BlockService // const Block = MerkleDAG.Block exports = module.exports = IPFS diff --git a/tests/test-core/test-block.js b/tests/test-core/test-block.js index a2c19b979b..74594c9397 100644 --- a/tests/test-core/test-block.js +++ b/tests/test-core/test-block.js @@ -6,7 +6,7 @@ const expect = require('chai').expect const base58 = require('bs58') const fs = require('fs') const IPFS = require('../../src/ipfs-core') -const Block = require('ipfs-merkle-dag').Block +const Block = require('ipfs-blocks').Block const isNode = !global.window