Commit f4a4049 1 parent a9156d5 commit f4a4049 Copy full SHA for f4a4049
File tree 2 files changed +13
-12
lines changed
2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 39
39
"npm" : " >=3.0.0"
40
40
},
41
41
"devDependencies" : {
42
- "aegir" : " ^11.0.1 " ,
42
+ "aegir" : " ^11.0.2 " ,
43
43
"chai" : " ^3.5.0" ,
44
44
"dirty-chai" : " ^1.2.2" ,
45
45
"lodash" : " ^4.17.4" ,
46
46
"memdown" : " ^1.2.4" ,
47
- "multihashes" : " ~0.4.4 " ,
47
+ "multihashes" : " ~0.4.5 " ,
48
48
"ncp" : " ^2.0.0" ,
49
49
"pre-commit" : " ^1.2.2" ,
50
50
"rimraf" : " ^2.6.1"
51
51
},
52
52
"dependencies" : {
53
- "async" : " ^2.1.5 " ,
53
+ "async" : " ^2.4.1 " ,
54
54
"base32.js" : " ^0.1.0" ,
55
- "cids" : " ^0.4.2 " ,
55
+ "cids" : " ^0.5.0 " ,
56
56
"datastore-core" : " ^0.2.0" ,
57
57
"datastore-fs" : " ^0.2.0" ,
58
58
"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 " ,
61
61
"ipfs-block" : " ~0.6.0" ,
62
62
"level-js" : " timkuijsten/level.js#idbunwrapper" ,
63
- "leveldown" : " ^1.6 .0" ,
63
+ "leveldown" : " ^1.7 .0" ,
64
64
"lock-me" : " ^1.0.2" ,
65
- "multiaddr" : " ^2.2.2 " ,
65
+ "multiaddr" : " ^2.3.0 " ,
66
66
"safe-buffer" : " ^5.0.1"
67
67
},
68
68
"license" : " MIT" ,
81
81
" nginnever <ginneversource@gmail.com>" ,
82
82
" npmcdn-to-unpkg-bot <npmcdn-to-unpkg-bot@users.noreply.github.com>"
83
83
]
84
- }
84
+ }
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ const each = require('async/each')
13
13
const map = require ( 'async/map' )
14
14
const _ = require ( 'lodash' )
15
15
const multihashing = require ( 'multihashing-async' )
16
+ const Buffer = require ( 'safe-buffer' ) . Buffer
16
17
17
18
module . exports = ( repo ) => {
18
19
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' )
21
22
let b
22
23
23
24
before ( ( done ) => {
@@ -143,7 +144,7 @@ module.exports = (repo) => {
143
144
} )
144
145
145
146
it ( 'non existent block' , ( done ) => {
146
- repo . blockstore . has ( new CID ( 'woot ' ) , ( err , exists ) => {
147
+ repo . blockstore . has ( new CID ( 'QmbcpFjzamCj5ZZdduW32ctWUPvbGMwQZk2ghWK6PrKswE ' ) , ( err , exists ) => {
147
148
expect ( err ) . to . not . exist ( )
148
149
expect ( exists ) . to . eql ( false )
149
150
done ( )
You can’t perform that action at this time.
0 commit comments