update missing-native-js-functions version
This commit is contained in:
parent
6ab626fc0d
commit
81b59c4012
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -22,7 +22,7 @@
|
||||
"dependencies": {
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"lambert-db": "^1.1.4",
|
||||
"missing-native-js-functions": "^1.2.1"
|
||||
"missing-native-js-functions": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
import "missing-native-js-functions";
|
||||
|
||||
export function convertBigIntToString(obj: any) {
|
||||
if (typeof obj === "bigint") obj = obj.toString();
|
||||
|
||||
if (typeof obj === "object") {
|
||||
obj.keys().forEach((key: string) => {
|
||||
obj[key] = convertBigIntToString(obj[key]);
|
||||
});
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
Reference in New Issue
Block a user