hypercore 11.13.4 → 11.14.0

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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -453,6 +453,11 @@ class Hypercore extends EventEmitter {
453
453
  return this.closing
454
454
  }
455
455
 
456
+ clearRequests (activeRequests, error) {
457
+ if (!activeRequests.length) return
458
+ if (this.core) this.core.replicator.clearRequests(activeRequests, error)
459
+ }
460
+
456
461
  async _close (error) {
457
462
  if (this.opened === false) {
458
463
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.13.4",
3
+ "version": "11.14.0",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {