Fix ffi database return big int

This commit is contained in:
2024-05-31 11:37:51 +08:00
parent c85672070c
commit 15ff42d8c4
10 changed files with 43 additions and 15 deletions

View File

@@ -281,3 +281,11 @@ export function isDocker() {
}
return _isDocker;
}
export function toJSON(obj: unknown) {
return JSON.stringify(
obj,
(_, value) =>
typeof value === "bigint" ? parseInt(value.toString()) : value,
);
}