corestore 7.0.10 → 7.0.11
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/lib/audit.js +1 -3
- package/package.json +1 -1
package/lib/audit.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const auditCore = require('hypercore/lib/audit.js')
|
|
2
|
-
|
|
3
1
|
module.exports = async function audit (store, { dryRun = false } = {}) {
|
|
4
2
|
const stats = { cores: 0, skipped: 0, rootless: 0, dropped: 0 }
|
|
5
3
|
|
|
@@ -9,7 +7,7 @@ module.exports = async function audit (store, { dryRun = false } = {}) {
|
|
|
9
7
|
const core = await store.get({ discoveryKey, active: false })
|
|
10
8
|
await core.ready()
|
|
11
9
|
|
|
12
|
-
const audit = await
|
|
10
|
+
const audit = await core.core.audit({ dryRun })
|
|
13
11
|
|
|
14
12
|
if (audit === null || audit.corrupt) {
|
|
15
13
|
stats.rootless++
|