Comparing version 2.15.0 to 2.15.1
17
index.js
@@ -236,2 +236,6 @@ const codecs = require('codecs') | ||
isTarget (key) { | ||
return b4a.equals(this.key, key) | ||
} | ||
isDeletion () { | ||
@@ -272,2 +276,6 @@ if (this.value !== null) return false | ||
isTarget (key) { | ||
return false | ||
} | ||
getTreeNode (offset) { | ||
@@ -708,6 +716,11 @@ return this.pendingIndex[offset].value | ||
let node = await this.getRoot(false) | ||
if (!node) return null | ||
const root = await this.getRoot(false) | ||
if (!root) return null | ||
let node = root | ||
while (true) { | ||
if (node.block.isTarget(key)) { | ||
return (node === root && node.block.isDeletion()) ? null : node.block.final(encoding) | ||
} | ||
let s = 0 | ||
@@ -714,0 +727,0 @@ let e = node.keys.length |
{ | ||
"name": "hyperbee", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"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
92329
2538