Comparing version 4.2.1 to 4.2.2
@@ -239,8 +239,3 @@ const events = require('events') | ||
const cached = this._cache.get(seq) | ||
if (cached) { | ||
// early exit (see below) | ||
if (!cached.value && !cached.key) return process.nextTick(cb, null, null) | ||
return process.nextTick(cb, null, cached) | ||
} | ||
if (cached) return process.nextTick(onnode, null, cached) | ||
this.feed.get(seq, opts, onnode) | ||
@@ -251,3 +246,3 @@ | ||
const node = Node.decode(val, seq, self.valueEncoding, self.hash) | ||
self._cache.set(seq, node) | ||
self._cache.set(seq, val) | ||
// early exit for the key: '' nodes we write to reset the db | ||
@@ -254,0 +249,0 @@ if (!node.value && !node.key) return cb(null, null) |
{ | ||
"name": "hypertrie", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Distributed single writer key/value store", | ||
@@ -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
102394
3186