Comparing version 2.19.5 to 2.19.6
11
index.js
@@ -147,2 +147,3 @@ const codecs = require('codecs') | ||
const core = getBackingCore(this.block.tree.core) | ||
const indexedLength = getIndexedLength(this.block.tree.core) | ||
const bitfield = core.core.bitfield | ||
@@ -153,3 +154,3 @@ | ||
if (k.value) continue | ||
if (k.seq >= core.length || bitfield.get(k.seq)) continue | ||
if (k.seq >= indexedLength || bitfield.get(k.seq)) continue | ||
preloadBlock(core, k.seq) | ||
@@ -160,3 +161,3 @@ } | ||
if (c.value) continue | ||
if (c.seq >= core.length || bitfield.get(c.seq)) continue | ||
if (c.seq >= indexedLength || bitfield.get(c.seq)) continue | ||
preloadBlock(core, c.seq) | ||
@@ -1568,2 +1569,8 @@ } | ||
function getIndexedLength (core) { | ||
if (core._source) return core._source.core.indexedLength | ||
if (core.flush) return core.indexedLength | ||
return core.length | ||
} | ||
function sameValue (a, b) { | ||
@@ -1570,0 +1577,0 @@ return a === b || (a !== null && b !== null && b4a.equals(a, b)) |
{ | ||
"name": "hyperbee", | ||
"version": "2.19.5", | ||
"version": "2.19.6", | ||
"description": "An append-only B-tree 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
96671
2673