hypercore-storage 1.3.2 → 1.3.4
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
|
@@ -39,7 +39,7 @@ class Atom {
|
|
|
39
39
|
|
|
40
40
|
flushed () {
|
|
41
41
|
if (!this.flushing) return Promise.resolve()
|
|
42
|
-
if (this.flushedPromise
|
|
42
|
+
if (this.flushedPromise !== null) return this.flushedPromise.promise
|
|
43
43
|
this.flushedPromise = rrp()
|
|
44
44
|
return this.flushedPromise.promise
|
|
45
45
|
}
|
package/migrations/0/index.js
CHANGED
|
@@ -270,7 +270,7 @@ async function core (core, { version, dryRun = true, gc = true }) {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
const oplog = await readOplog(files.oplog)
|
|
273
|
-
if (!oplog) throw new Error('No oplog available')
|
|
273
|
+
if (!oplog) throw new Error('No oplog available for ' + files.oplog)
|
|
274
274
|
|
|
275
275
|
const treeData = new Slicer()
|
|
276
276
|
|