Skip to content

Commit 1e760ec

Browse files
committed
WIP
1 parent 41e7625 commit 1e760ec

File tree

6 files changed

+788
-641
lines changed

6 files changed

+788
-641
lines changed

package-lock.json

+141
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"semver": "^7.3.7",
7676
"shx": "^0.3.4",
7777
"systeminformation": "^5.18.5",
78+
"ts-node": "^10.9.1",
7879
"tsx": "^3.12.7",
7980
"typedoc": "^0.24.8",
8081
"typescript": "^5.1.6"

src/DB.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
DBCountOptions,
1515
} from './types.js';
1616
import type { RocksDBDatabase, RocksDBDatabaseOptions } from './native/index.js';
17+
import nodeFs from 'node:fs';
1718
import { Transfer } from 'threads';
1819
import Logger from '@matrixai/logger';
1920
import { withF, withG } from '@matrixai/resources';
@@ -38,7 +39,7 @@ class DB {
3839
dbPath,
3940
crypto,
4041
deadlock = false,
41-
fs = require('fs'),
42+
fs = nodeFs,
4243
logger = new Logger(this.name),
4344
fresh = false,
4445
...dbOptions

0 commit comments

Comments
 (0)