corestore 6.16.0 → 6.16.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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -430,6 +430,8 @@ module.exports = class Corestore extends ReadyResource {
430
430
  const stream = Hypercore.createProtocolStream(isInitiator, {
431
431
  ...opts,
432
432
  ondiscoverykey: async discoveryKey => {
433
+ if (this.closing) return
434
+
433
435
  const id = b4a.toString(discoveryKey, 'hex')
434
436
  if (this._noCoreCache.get(id)) return
435
437
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "6.16.0",
3
+ "version": "6.16.2",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "b4a": "^1.6.4",
34
- "hypercore": "^10.28.1",
34
+ "hypercore": "^10.32.3",
35
35
  "hypercore-crypto": "^3.4.0",
36
36
  "hypercore-id-encoding": "^1.2.0",
37
37
  "read-write-mutexify": "^2.1.0",