@nxtedition/rocksdb 7.0.16 → 7.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -251,11 +251,11 @@ class RocksLevel extends AbstractLevel {
|
|
|
251
251
|
const updates = new Updates(this, options)
|
|
252
252
|
try {
|
|
253
253
|
while (true) {
|
|
254
|
-
const
|
|
255
|
-
if (!
|
|
254
|
+
const { sequence, rows } = await updates.next()
|
|
255
|
+
if (!rows) {
|
|
256
256
|
return
|
|
257
257
|
}
|
|
258
|
-
yield
|
|
258
|
+
yield { sequence: Number(sequence), rows }
|
|
259
259
|
}
|
|
260
260
|
} finally {
|
|
261
261
|
await updates.close()
|