hypercore-storage 1.3.3 → 1.3.5
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/migrations/0/index.js +2 -1
- package/package.json +1 -1
package/migrations/0/index.js
CHANGED
|
@@ -265,12 +265,13 @@ async function core (core, { version, dryRun = true, gc = true }) {
|
|
|
265
265
|
const files = getFiles(path.join(core.store.path, 'cores', dk.slice(0, 2), dk.slice(2, 4), dk))
|
|
266
266
|
|
|
267
267
|
if (head === null || head.length === 0) {
|
|
268
|
+
await commitCoreMigration(auth, core, version)
|
|
268
269
|
if (gc) await runGC()
|
|
269
270
|
return // no data
|
|
270
271
|
}
|
|
271
272
|
|
|
272
273
|
const oplog = await readOplog(files.oplog)
|
|
273
|
-
if (!oplog) throw new Error('No oplog available')
|
|
274
|
+
if (!oplog) throw new Error('No oplog available for ' + files.oplog)
|
|
274
275
|
|
|
275
276
|
const treeData = new Slicer()
|
|
276
277
|
|