use polyfill friendly "path" instead of "node:path"

This commit is contained in:
Andre Staltz 2023-10-18 14:45:06 +03:00
parent 39d48ac416
commit 6996fb2d20
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 3 additions and 3 deletions

View File

@ -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: {

View File

@ -1,4 +1,4 @@
const crypto = require('node:crypto')
const crypto = require('crypto')
const base58 = require('bs58')
const b4a = require('b4a')
// @ts-ignore