hypercore 10.37.2 → 10.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/replicator.js CHANGED
@@ -862,7 +862,9 @@ class Peer {
862
862
  this.inflight--
863
863
  this.replicator._removeInflight(req.id, true)
864
864
  if (this.roundtripQueue === null) return
865
- for (const id of this.roundtripQueue.flush(req.rt)) this.replicator._inflight.reusable(id)
865
+ const flushed = this.roundtripQueue.flush(req.rt)
866
+ if (flushed === null) return
867
+ for (const id of flushed) this.replicator._inflight.reusable(id)
866
868
  }
867
869
 
868
870
  onwant ({ start, length }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.37.2",
3
+ "version": "10.37.3",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {