corestore 7.4.7 → 7.4.8

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -235,7 +235,7 @@ class Corestore extends ReadyResource {
235
235
  this.cores = this.root ? this.root.cores : new CoreTracker()
236
236
  this.sessions = new SessionTracker()
237
237
  this.corestores = this.root ? this.root.corestores : new Set()
238
- this.readOnly = opts.writable === false
238
+ this.readOnly = opts.writable === false || !!opts.readOnly
239
239
  this.globalCache = this.root ? this.root.globalCache : (opts.globalCache || null)
240
240
  this.primaryKey = this.root ? this.root.primaryKey : (opts.primaryKey || null)
241
241
  this.ns = opts.namespace || DEFAULT_NAMESPACE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.4.7",
3
+ "version": "7.4.8",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [