File tree 5 files changed +9
-10
lines changed
5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 156
156
"@multiformats/murmur3" : " ^1.0.3" ,
157
157
"err-code" : " ^3.0.1" ,
158
158
"hamt-sharding" : " ^2.0.0" ,
159
- "interface-blockstore" : " ^1 .0.0 " ,
159
+ "interface-blockstore" : " ^2 .0.3 " ,
160
160
"ipfs-unixfs" : " ^6.0.0" ,
161
161
"it-last" : " ^1.0.5" ,
162
162
"multiformats" : " ^9.4.2" ,
163
163
"uint8arrays" : " ^3.0.0"
164
164
},
165
165
"devDependencies" : {
166
- "@types/mocha" : " ^8.2.1" ,
167
166
"@types/sinon" : " ^10.0.0" ,
168
167
"abort-controller" : " ^3.0.0" ,
169
168
"aegir" : " ^36.2.3" ,
169
+ "blockstore-core" : " ^1.0.5" ,
170
170
"copy" : " ^0.3.2" ,
171
171
"crypto-browserify" : " ^3.12.0" ,
172
172
"events" : " ^3.3.0" ,
Original file line number Diff line number Diff line change 1
1
import errCode from 'err-code'
2
- import { BlockstoreAdapter } from 'interface- blockstore'
2
+ import { BaseBlockstore } from 'blockstore-core '
3
3
import { base58btc } from 'multiformats/bases/base58'
4
4
5
5
/**
6
6
* @typedef {import('multiformats/cid').CID } CID
7
7
*/
8
8
9
9
function createBlockApi ( ) {
10
- class MockBlockstore extends BlockstoreAdapter {
10
+ class MockBlockstore extends BaseBlockstore {
11
11
constructor ( ) {
12
12
super ( )
13
13
Original file line number Diff line number Diff line change 147
147
"clean" : " rimraf ./dist" ,
148
148
"lint" : " aegir ts -p check && aegir lint" ,
149
149
"coverage" : " nyc -s npm run test -t node && nyc report --reporter=html" ,
150
- "de-pcheck" : " aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert" ,
150
+ "de-pcheck" : " aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert -i interface-blockstore " ,
151
151
"release" : " semantic-release"
152
152
},
153
153
"dependencies" : {
156
156
"bl" : " ^5.0.0" ,
157
157
"err-code" : " ^3.0.1" ,
158
158
"hamt-sharding" : " ^2.0.0" ,
159
- "interface-blockstore" : " ^1 .0.0 " ,
159
+ "interface-blockstore" : " ^2 .0.3 " ,
160
160
"ipfs-unixfs" : " ^6.0.0" ,
161
161
"it-all" : " ^1.0.5" ,
162
162
"it-batch" : " ^1.0.8" ,
168
168
"uint8arrays" : " ^3.0.0"
169
169
},
170
170
"devDependencies" : {
171
- "@types/mocha" : " ^8.2.1" ,
172
171
"aegir" : " ^36.2.3" ,
173
172
"assert" : " ^2.0.0" ,
173
+ "blockstore-core" : " ^1.0.5" ,
174
174
"copy" : " ^0.3.2" ,
175
175
"crypto-browserify" : " ^3.12.0" ,
176
176
"events" : " ^3.3.0" ,
Original file line number Diff line number Diff line change 1
1
import errCode from 'err-code'
2
- import { BlockstoreAdapter } from 'interface- blockstore'
2
+ import { BaseBlockstore } from 'blockstore-core '
3
3
import { base58btc } from 'multiformats/bases/base58'
4
4
5
5
/**
6
6
* @typedef {import('multiformats/cid').CID } CID
7
7
*/
8
8
9
9
function createBlockApi ( ) {
10
- class MockBlockstore extends BlockstoreAdapter {
10
+ class MockBlockstore extends BaseBlockstore {
11
11
constructor ( ) {
12
12
super ( )
13
13
Original file line number Diff line number Diff line change 159
159
"protobufjs" : " ^6.10.2"
160
160
},
161
161
"devDependencies" : {
162
- "@types/mocha" : " ^8.2.1" ,
163
162
"aegir" : " ^36.2.3" ,
164
163
"copy" : " ^0.3.2" ,
165
164
"mkdirp" : " ^1.0.4" ,
You can’t perform that action at this time.
0 commit comments