Comparing version 2.15.2 to 2.15.3
@@ -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", |
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
92431
2539