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 CHANGED
@@ -39,7 +39,7 @@ class Atom {
39
39
 
40
40
  flushed () {
41
41
  if (!this.flushing) return Promise.resolve()
42
- if (this.flushedPromise === null) return this.flushedPromise.promise
42
+ if (this.flushedPromise !== null) return this.flushedPromise.promise
43
43
  this.flushedPromise = rrp()
44
44
  return this.flushedPromise.promise
45
45
  }
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",