corestore 7.4.6 → 7.4.7
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
|
@@ -230,7 +230,7 @@ class Corestore extends ReadyResource {
|
|
|
230
230
|
super()
|
|
231
231
|
|
|
232
232
|
this.root = opts.root || null
|
|
233
|
-
this.storage = this.root ? this.root.storage : Hypercore.defaultStorage(storage, { id: opts.id, allowBackup: opts.allowBackup })
|
|
233
|
+
this.storage = this.root ? this.root.storage : Hypercore.defaultStorage(storage, { id: opts.id, allowBackup: opts.allowBackup, readOnly: opts.readOnly })
|
|
234
234
|
this.streamTracker = this.root ? this.root.streamTracker : new StreamTracker()
|
|
235
235
|
this.cores = this.root ? this.root.cores : new CoreTracker()
|
|
236
236
|
this.sessions = new SessionTracker()
|