Socket
Socket
Sign inDemoInstall

hyperbee

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperbee - npm Package Compare versions

Comparing version 2.15.2 to 2.15.3

6

index.js

@@ -309,2 +309,3 @@ const codecs = require('codecs')

this._entryWatchers = this._onappendBound ? [] : null
this._sessions = opts.sessions !== false

@@ -489,2 +490,3 @@ this._batches = []

_makeSnapshot () {
if (this._sessions === false) return this.core
// TODO: better if we could encapsulate this in hypercore in the future

@@ -498,3 +500,3 @@ return (this._checkout <= this.core.length || this._checkout <= 1) ? this.core.snapshot() : this.core.session({ snapshot: false })

// same as above, just checkout isn't set yet...
const snap = opts.reuseSession
const snap = (opts.reuseSession || this._sessions === false)
? this.core

@@ -903,3 +905,3 @@ : (version <= this.core.length || version <= 1) ? this.core.snapshot() : this.core.session({ snapshot: false })

this.root = null
this.blocks.clear()
if (this.blocks) this.blocks.clear()
this.length = 0

@@ -906,0 +908,0 @@ this._unlock()

{
"name": "hyperbee",
"version": "2.15.2",
"version": "2.15.3",
"description": "An append-only B-tree running on a Hypercore.",

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