Comparing version 2.13.3 to 2.13.4
16
index.js
@@ -1126,2 +1126,6 @@ const codecs = require('codecs') | ||
if (this.current.core.fork !== this.previous.core.fork) { | ||
return this._yield() | ||
} | ||
this.stream = this._differ(this.current, this.previous, this.range) | ||
@@ -1131,6 +1135,3 @@ | ||
for await (const data of this.stream) { // eslint-disable-line | ||
this.currentMapped = this.map(this.current) | ||
this.previousMapped = this.map(this.previous) | ||
this.emit('update') | ||
return { done: false, value: [this.currentMapped, this.previousMapped] } | ||
return this._yield() | ||
} | ||
@@ -1146,2 +1147,9 @@ } finally { | ||
_yield () { | ||
this.currentMapped = this.map(this.current) | ||
this.previousMapped = this.map(this.previous) | ||
this.emit('update') | ||
return { done: false, value: [this.currentMapped, this.previousMapped] } | ||
} | ||
async return () { | ||
@@ -1148,0 +1156,0 @@ await this.close() |
{ | ||
"name": "hyperbee", | ||
"version": "2.13.3", | ||
"version": "2.13.4", | ||
"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
90330
2500