Comparing version 0.0.9 to 0.0.10
@@ -5,2 +5,3 @@ module.exports = class RangeIterator { | ||
this.stack = [] | ||
this.opened = false | ||
@@ -32,3 +33,3 @@ this._limit = typeof opts.limit === 'number' ? opts.limit : -1 | ||
reverse: this._reverse, | ||
checkpoint | ||
checkpoint: this.opened ? checkpoint : [] | ||
} | ||
@@ -38,2 +39,7 @@ } | ||
async open () { | ||
await this._open() | ||
this.opened = true | ||
} | ||
async _open () { | ||
if (this._checkpoint) { | ||
@@ -40,0 +46,0 @@ for (let j = 0; j < this._checkpoint.length; j += 3) { |
{ | ||
"name": "hyperbee", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "An append-only Btree running on a Hypercore.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80303
2395