mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
update missing-native-js-functions version
This commit is contained in:
parent
6ab626fc0d
commit
81b59c4012
14
package-lock.json
generated
14
package-lock.json
generated
@ -11,7 +11,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",
|
||||
@ -483,9 +483,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/missing-native-js-functions": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.1.tgz",
|
||||
"integrity": "sha512-u80HCPBHee9DQSUJ6s74KshR3gV3mTJUbfmFnHvyBh41OoMEVo5S6tljeCzg+tf1pHWAGpVeQoUZ0NzBX/RmpQ=="
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.2.tgz",
|
||||
"integrity": "sha512-kNdwKWXh1hM8RdNqW2BIHsqD6fYN9RV27M+0uQF1pGF1yLKVc+xIv1VB8WEN1HxQ22N8Rj9sdEezOX2yBpsMZA=="
|
||||
},
|
||||
"node_modules/mkdirp": {
|
||||
"version": "1.0.4",
|
||||
@ -1414,9 +1414,9 @@
|
||||
}
|
||||
},
|
||||
"missing-native-js-functions": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.1.tgz",
|
||||
"integrity": "sha512-u80HCPBHee9DQSUJ6s74KshR3gV3mTJUbfmFnHvyBh41OoMEVo5S6tljeCzg+tf1pHWAGpVeQoUZ0NzBX/RmpQ=="
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.2.tgz",
|
||||
"integrity": "sha512-kNdwKWXh1hM8RdNqW2BIHsqD6fYN9RV27M+0uQF1pGF1yLKVc+xIv1VB8WEN1HxQ22N8Rj9sdEezOX2yBpsMZA=="
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "1.0.4",
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user