hypercore-storage 1.14.1 → 1.15.0
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 +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -426,6 +426,10 @@ class CorestoreStorage {
|
|
|
426
426
|
return this.db.ready()
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
+
compact () {
|
|
430
|
+
return this.db.compactRange()
|
|
431
|
+
}
|
|
432
|
+
|
|
429
433
|
async audit () {
|
|
430
434
|
for await (const { core } of this.createCoreStream()) {
|
|
431
435
|
const coreRx = new CoreRX(core, this.db, EMPTY)
|