mirror of https://codeberg.org/pzp/pzp-db.git
use polyfill friendly "path" instead of "node:path"
This commit is contained in:
parent
39d48ac416
commit
6996fb2d20
|
@ -1,4 +1,4 @@
|
||||||
const path = require('node:path')
|
const Path = require('path')
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const push = require('push-stream')
|
const push = require('push-stream')
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -132,7 +132,7 @@ function initDB(peer, config) {
|
||||||
|
|
||||||
const onRecordAdded = Obz()
|
const onRecordAdded = Obz()
|
||||||
|
|
||||||
const log = AAOL(path.join(config.path, 'db.bin'), {
|
const log = AAOL(Path.join(config.path, 'db.bin'), {
|
||||||
cacheSize: 1,
|
cacheSize: 1,
|
||||||
blockSize: 64 * 1024,
|
blockSize: 64 * 1024,
|
||||||
codec: {
|
codec: {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const crypto = require('node:crypto')
|
const crypto = require('crypto')
|
||||||
const base58 = require('bs58')
|
const base58 = require('bs58')
|
||||||
const b4a = require('b4a')
|
const b4a = require('b4a')
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in New Issue