Comparing version 2.10.3 to 2.10.4
11
index.js
@@ -1261,2 +1261,12 @@ const codecs = require('codecs') | ||
if (!e) return opts | ||
if (e.encodeRange) { | ||
const r = e.encodeRange({ gt: opts.gt, gte: opts.gte, lt: opts.lt, lte: opts.lte }) | ||
opts.gt = r.gt | ||
opts.gte = r.gte | ||
opts.lt = r.lt | ||
opts.lte = r.lte | ||
return opts | ||
} | ||
if (opts.gt !== undefined) opts.gt = enc(e, opts.gt) | ||
@@ -1268,2 +1278,3 @@ if (opts.gte !== undefined) opts.gte = enc(e, opts.gte) | ||
if (opts.sub && !opts.lt && !opts.lte) opts.lt = bump(enc(e, EMPTY)) | ||
return opts | ||
@@ -1270,0 +1281,0 @@ } |
{ | ||
"name": "hyperbee", | ||
"version": "2.10.3", | ||
"version": "2.10.4", | ||
"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
88011
2450