hyperbee2 2.4.1 → 2.4.2

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.
Files changed (2) hide show
  1. package/lib/context.js +4 -4
  2. package/package.json +1 -1
package/lib/context.js CHANGED
@@ -38,15 +38,15 @@ class CoreContext {
38
38
  const buffer = await this.core.get(seq, config)
39
39
  const block = decodeBlock(buffer, seq)
40
40
 
41
- await this._inflateCheckpoint(length, block)
41
+ await this._inflateCheckpoint(length, block, config)
42
42
  }
43
43
 
44
- async _inflateCheckpoint(length, block) {
44
+ async _inflateCheckpoint(length, block, config) {
45
45
  const checkpoint = block.checkpoint
46
46
 
47
47
  if (checkpoint > 0) {
48
48
  const seq = checkpoint - 1
49
- const buffer = await this.core.get(seq)
49
+ const buffer = await this.core.get(seq, config)
50
50
  const block = decodeBlock(buffer, seq)
51
51
 
52
52
  if (length < this.length) return
@@ -151,7 +151,7 @@ class CoreContext {
151
151
  const block = decodeBlock(buffer, seq)
152
152
 
153
153
  if (block.checkpoint > this.checkpoint) {
154
- await this._inflateCheckpoint(seq + 1, block)
154
+ await this._inflateCheckpoint(seq + 1, block, config)
155
155
  }
156
156
 
157
157
  return block
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbee2",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "btree",
5
5
  "main": "index.js",
6
6
  "files": [