hypercore-storage 1.9.4 → 1.9.6
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/migrations/0/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -888,7 +888,7 @@ function tmpFixStorage (p) {
|
|
|
888
888
|
files = fs.readdirSync(p)
|
|
889
889
|
} catch {}
|
|
890
890
|
|
|
891
|
-
const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db', 'notifications'])
|
|
891
|
+
const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db', 'clone', 'core', 'notifications'])
|
|
892
892
|
|
|
893
893
|
for (const f of files) {
|
|
894
894
|
if (notRocks.has(f)) continue
|
package/migrations/0/index.js
CHANGED
|
@@ -373,7 +373,7 @@ async function core (core, { version, dryRun = true, gc = true }) {
|
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
const oplog = await readOplog(files.oplog)
|
|
376
|
-
if (!oplog) throw new Error('No oplog available for ' + files.oplog)
|
|
376
|
+
if (!oplog) throw new Error('No oplog available for ' + files.oplog + ', length = ' + (head ? head.length : 0) + ', writable = ' + (!!auth.keyPair))
|
|
377
377
|
|
|
378
378
|
const treeData = new TreeSlicer()
|
|
379
379
|
|