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

Commit 4b7fd55

Browse files
authored
deps: bump it-* deps (#132)
- deps: bump it-merge from 1.0.4 to 2.0.0 - deps: bump it-map from 1.0.6 to 2.0.0 - deps: bump it-filter from 1.0.3 to 2.0.0 - deps: bump it-all from 1.0.6 to 2.0.0 - deps: bump it-drain from 1.0.5 to 2.0.0 - deps: bump it-take from 1.0.2 to 2.0.0
1 parent 9e77727 commit 4b7fd55

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@
197197
"@libp2p/logger": "^2.0.0",
198198
"err-code": "^3.0.1",
199199
"interface-datastore": "^7.0.0",
200-
"it-all": "^1.0.4",
201-
"it-drain": "^1.0.4",
202-
"it-filter": "^1.0.2",
203-
"it-map": "^1.0.5",
204-
"it-merge": "^1.0.1",
200+
"it-all": "^2.0.0",
201+
"it-drain": "^2.0.0",
202+
"it-filter": "^2.0.0",
203+
"it-map": "^2.0.0",
204+
"it-merge": "^2.0.0",
205205
"it-pipe": "^2.0.3",
206206
"it-pushable": "^3.0.0",
207-
"it-take": "^1.0.1",
207+
"it-take": "^2.0.0",
208208
"uint8arrays": "^4.0.2"
209209
},
210210
"devDependencies": {

src/mount.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
/**
1111
* @typedef {import('interface-datastore').Datastore} Datastore
1212
* @typedef {import('interface-datastore').Key} Key
13+
* @typedef {import('interface-datastore').Pair} Pair
1314
* @typedef {import('interface-datastore').Options} Options
1415
* @typedef {import('interface-datastore').Batch} Batch
1516
* @typedef {import('interface-datastore').Query} Query
@@ -164,6 +165,7 @@ export class MountDatastore extends BaseDatastore {
164165
}, options)
165166
})
166167

168+
/** @type AsyncIterable<Pair> */
167169
let it = merge(...qs)
168170
if (q.filters) q.filters.forEach(f => { it = filter(it, f) })
169171
if (q.orders) q.orders.forEach(o => { it = sortAll(it, o) })
@@ -188,6 +190,7 @@ export class MountDatastore extends BaseDatastore {
188190
}, options)
189191
})
190192

193+
/** @type AsyncIterable<Key> */
191194
let it = merge(...qs)
192195
if (q.filters) q.filters.forEach(f => { it = filter(it, f) })
193196
if (q.orders) q.orders.forEach(o => { it = sortAll(it, o) })

0 commit comments

Comments
 (0)