Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hypertrie

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypertrie - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

9

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc