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

chore: update IPLD to latest version #232

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ipfs": "~0.32.2",
"ipfs-block-service": "~0.14.0",
"ipfs-repo": "~0.24.0",
"ipld": "~0.18.0",
"ipld": "~0.19.0",
"mkdirp": "~0.5.1",
"multihashes": "~0.4.14",
"ncp": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/builder-dir-sharding.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

describe('basic dirbuilder', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/builder-only-hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('will only chunk and hash if passed an "onlyHash" option', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('allows multihash hash algorithm to be specified', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/exporter-subtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('export a file 2 levels down', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('ensure hash inputs are sanitized', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/hash-parity-with-go-ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('yields the same tree as go-ipfs', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion test/import-export-nested-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('imports', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion test/import-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('import and export', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/importer-flush.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('can push a single root file and flush yields no dirs', (done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ module.exports = (repo) => {

before(() => {
const bs = new BlockService(repo)
ipld = new Ipld(bs)
ipld = new Ipld({blockService: bs})
})

it('fails on bad input', (done) => {
Expand Down