Comparing version 1.7.0 to 1.8.0
13
index.js
@@ -495,2 +495,3 @@ const codecs = require('codecs') | ||
this.onseq = this.options.onseq || noop | ||
this.appending = null | ||
} | ||
@@ -707,4 +708,4 @@ | ||
flush () { | ||
if (!this.length) return Promise.resolve() | ||
toBlocks () { | ||
if (this.appending) return this.appending | ||
@@ -739,2 +740,10 @@ const batch = new Array(this.length) | ||
this.appending = batch | ||
return batch | ||
} | ||
flush () { | ||
if (!this.length) return Promise.resolve() | ||
const batch = this.toBlocks() | ||
this.root = null | ||
@@ -741,0 +750,0 @@ this.blocks.clear() |
{ | ||
"name": "hyperbee", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "An append-only Btree 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
100409
3001