hypercore-storage 0.0.23 → 0.0.24

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 +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -551,6 +551,11 @@ class HypercoreStorage {
551
551
  return mapStreamBitfieldPage(last)
552
552
  }
553
553
 
554
+ destroy () {
555
+ if (this.dbSnapshot === null) return
556
+ this.dbSnapshot.destroy()
557
+ }
558
+
554
559
  close () {
555
560
  if (this.closed) return Promise.resolve()
556
561
  this.closed = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",