hypercore 10.34.0 → 10.34.1

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
@@ -1087,7 +1087,7 @@ class Peer {
1087
1087
  return false
1088
1088
  }
1089
1089
 
1090
- const end = Math.min(r.end === -1 ? this.remoteLength : r.end, this.remoteLength)
1090
+ const end = Math.min(this.core.tree.length, Math.min(r.end === -1 ? this.remoteLength : r.end, this.remoteLength))
1091
1091
  if (end <= r.start || fork !== this.remoteFork) return false
1092
1092
 
1093
1093
  const len = end - r.start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.34.0",
3
+ "version": "10.34.1",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {