Comparing version 2.13.2 to 2.13.3
@@ -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", |
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
90202
2494