hypercore-storage 1.9.0 → 1.9.2

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 +1 -1
package/index.js CHANGED
@@ -438,7 +438,7 @@ class CorestoreStorage {
438
438
  try {
439
439
  if (this.version === VERSION) return
440
440
 
441
- if (this.bootstrap && this.readOnly) {
441
+ if (this.bootstrap && !this.readOnly) {
442
442
  const corestoreFile = path.join(this.path, 'CORESTORE')
443
443
 
444
444
  if (!(await DeviceFile.resume(corestoreFile, { id: this.id }))) {
@@ -883,7 +883,7 @@ function tmpFixStorage (p) {
883
883
  files = fs.readdirSync(p)
884
884
  } catch {}
885
885
 
886
- const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db'])
886
+ const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db', 'notifications'])
887
887
 
888
888
  for (const f of files) {
889
889
  if (notRocks.has(f)) continue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",