corestore 6.15.8 → 6.15.10

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 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -256,7 +256,7 @@ module.exports = class Corestore extends ReadyResource {
256
256
 
257
257
  while (this.cores.has(id)) {
258
258
  const existing = this.cores.get(id)
259
- if (existing.opened && !existing.closing) return { from: existing, keyPair, manifest }
259
+ if (existing.opened && !existing.closing) return { from: existing, keyPair, manifest, cache: !!opts.cache }
260
260
  if (existing.closing) {
261
261
  await existing.close()
262
262
  } else {
@@ -316,7 +316,7 @@ module.exports = class Corestore extends ReadyResource {
316
316
  this.emit('conflict', core, len, fork, proof)
317
317
  })
318
318
 
319
- return { from: core, keyPair, manifest }
319
+ return { from: core, keyPair, manifest, cache: !!opts.cache }
320
320
  }
321
321
 
322
322
  async createKeyPair (name, namespace = this._namespace) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "6.15.8",
3
+ "version": "6.15.10",
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.0",
34
+ "hypercore": "^10.28.1",
35
35
  "hypercore-crypto": "^3.4.0",
36
36
  "hypercore-id-encoding": "^1.2.0",
37
37
  "read-write-mutexify": "^2.1.0",