Skip to content

Commit f4a4049

Browse files
authored
chore: update deps and fix tests (#134)
1 parent a9156d5 commit f4a4049

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,30 @@
3939
"npm": ">=3.0.0"
4040
},
4141
"devDependencies": {
42-
"aegir": "^11.0.1",
42+
"aegir": "^11.0.2",
4343
"chai": "^3.5.0",
4444
"dirty-chai": "^1.2.2",
4545
"lodash": "^4.17.4",
4646
"memdown": "^1.2.4",
47-
"multihashes": "~0.4.4",
47+
"multihashes": "~0.4.5",
4848
"ncp": "^2.0.0",
4949
"pre-commit": "^1.2.2",
5050
"rimraf": "^2.6.1"
5151
},
5252
"dependencies": {
53-
"async": "^2.1.5",
53+
"async": "^2.4.1",
5454
"base32.js": "^0.1.0",
55-
"cids": "^0.4.2",
55+
"cids": "^0.5.0",
5656
"datastore-core": "^0.2.0",
5757
"datastore-fs": "^0.2.0",
5858
"datastore-level": "^0.3.0",
59-
"debug": "^2.6.3",
60-
"interface-datastore": "^0.2.0",
59+
"debug": "^2.6.8",
60+
"interface-datastore": "^0.2.1",
6161
"ipfs-block": "~0.6.0",
6262
"level-js": "timkuijsten/level.js#idbunwrapper",
63-
"leveldown": "^1.6.0",
63+
"leveldown": "^1.7.0",
6464
"lock-me": "^1.0.2",
65-
"multiaddr": "^2.2.2",
65+
"multiaddr": "^2.3.0",
6666
"safe-buffer": "^5.0.1"
6767
},
6868
"license": "MIT",
@@ -81,4 +81,4 @@
8181
"nginnever <ginneversource@gmail.com>",
8282
"npmcdn-to-unpkg-bot <npmcdn-to-unpkg-bot@users.noreply.github.com>"
8383
]
84-
}
84+
}

test/blockstore-test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ const each = require('async/each')
1313
const map = require('async/map')
1414
const _ = require('lodash')
1515
const multihashing = require('multihashing-async')
16+
const Buffer = require('safe-buffer').Buffer
1617

1718
module.exports = (repo) => {
1819
describe('blockstore', () => {
19-
const blockData = _.range(100).map((i) => new Buffer(`hello-${i}-${Math.random()}`))
20-
const bData = new Buffer('hello world')
20+
const blockData = _.range(100).map((i) => Buffer.from(`hello-${i}-${Math.random()}`))
21+
const bData = Buffer.from('hello world')
2122
let b
2223

2324
before((done) => {
@@ -143,7 +144,7 @@ module.exports = (repo) => {
143144
})
144145

145146
it('non existent block', (done) => {
146-
repo.blockstore.has(new CID('woot'), (err, exists) => {
147+
repo.blockstore.has(new CID('QmbcpFjzamCj5ZZdduW32ctWUPvbGMwQZk2ghWK6PrKswE'), (err, exists) => {
147148
expect(err).to.not.exist()
148149
expect(exists).to.eql(false)
149150
done()

0 commit comments

Comments
 (0)