diff --git a/lib/index.js b/lib/index.js index 5223310..14d9cd9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -const path = require('node:path') +const Path = require('path') // @ts-ignore const push = require('push-stream') // @ts-ignore @@ -132,7 +132,7 @@ function initDB(peer, config) { const onRecordAdded = Obz() - const log = AAOL(path.join(config.path, 'db.bin'), { + const log = AAOL(Path.join(config.path, 'db.bin'), { cacheSize: 1, blockSize: 64 * 1024, codec: { diff --git a/lib/msg-v3/index.js b/lib/msg-v3/index.js index b9c94be..44de3d5 100644 --- a/lib/msg-v3/index.js +++ b/lib/msg-v3/index.js @@ -1,4 +1,4 @@ -const crypto = require('node:crypto') +const crypto = require('crypto') const base58 = require('bs58') const b4a = require('b4a') // @ts-ignore