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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.4.6",
3
+ "version": "7.4.7",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [