hypercore 11.21.1 → 11.21.2

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
@@ -921,10 +921,15 @@ class Peer {
921
921
  }
922
922
  }
923
923
 
924
+ let req = null
924
925
  const batch = this.core.storage.read()
925
- const req = await this._getProof(batch, msg, true)
926
- if (req === null) return
926
+ try {
927
+ req = await this._getProof(batch, msg, true)
928
+ } catch {
929
+ return
930
+ }
927
931
 
932
+ if (req === null) return
928
933
  batch.tryFlush()
929
934
 
930
935
  await this._fulfillRequest(req, true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.21.1",
3
+ "version": "11.21.2",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {