Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 5e4f7c1

Browse files
authored
Merge pull request #34 from ipfs/refactor/use-ipld-in-memory-module
refactor: use ipld-in-memory module
2 parents b4f6083 + ab6ce5a commit 5e4f7c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"detect-webworker": "^1.0.0",
4444
"dirty-chai": "^2.0.1",
4545
"ipld": "~0.20.0",
46+
"ipld-in-memory": "^2.0.0",
4647
"multihashes": "~0.4.14",
4748
"pull-buffer-stream": "^1.0.0",
4849
"pull-traverse": "^1.0.3"

test/helpers/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const core = require('../../src/core')
44
const isWebWorker = require('detect-webworker')
55
const promisify = require('promisify-es6')
66
const InMemoryDataStore = require('interface-datastore').MemoryDatastore
7-
const inMemoryIpld = promisify(require('ipld').inMemory)
7+
const Ipld = require('ipld')
8+
const inMemoryIpld = promisify(require('ipld-in-memory').bind(null, Ipld))
89

910
const createMfs = async () => {
1011
let ipld = await inMemoryIpld()

0 commit comments

Comments
 (0)