hypercore 10.37.5 → 10.37.6

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
@@ -300,9 +300,14 @@ class RoundtripQueue {
300
300
  }
301
301
 
302
302
  clear () {
303
- const q = this.queue
303
+ const ids = new Array(this.queue.length)
304
+ for (let i = 0; i < ids.length; i++) {
305
+ ids[i] = this.queue[i][1]
306
+ }
307
+
304
308
  this.queue = []
305
- return q
309
+
310
+ return ids
306
311
  }
307
312
 
308
313
  add (id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.37.5",
3
+ "version": "10.37.6",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {