update missing-native-js-functions version

This commit is contained in:
Flam3rboy 2021-02-06 10:06:57 +01:00
parent 6ab626fc0d
commit 81b59c4012
3 changed files with 1 additions and 14 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -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",

View File

@ -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;
}