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.
- package/index.js +1 -1
- 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
|