Socket
Socket
Sign inDemoInstall

hyperbee

Package Overview
Dependencies
Maintainers
2
Versions
108
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.13.2 to 2.13.3

7

index.js

@@ -452,11 +452,12 @@ const codecs = require('codecs')

// TODO: better if we could encapsulate this in hypercore in the future
return (this._checkout <= this.core.length || this._checkout <= 1) ? this.core.snapshot() : this.core.session()
return (this._checkout <= this.core.length || this._checkout <= 1) ? this.core.snapshot() : this.core.session({ snapshot: false })
}
checkout (version, opts = {}) {
if (version < 1) version = 1
// same as above, just checkout isn't set yet...
const snap = opts.reuseSession
? this.core
: (version <= this.core.length || version <= 1) ? this.core.snapshot() : this.core.session()
: (version <= this.core.length || version <= 1) ? this.core.snapshot() : this.core.session({ snapshot: false })

@@ -463,0 +464,0 @@ return new Hyperbee(snap, {

{
"name": "hyperbee",
"version": "2.13.2",
"version": "2.13.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