summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 10:06:57 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 10:06:57 +0100
commit81b59c4012ad13a7c229529b4155ef1bbc5f4d39 (patch)
treec0070e107c02a58a5572d8d6f8e374d54e4747c2
parent:sparkles: convertBigIntToString (diff)
downloadserver-81b59c4012ad13a7c229529b4155ef1bbc5f4d39.tar.xz
update missing-native-js-functions version
-rw-r--r--package-lock.json14
-rw-r--r--package.json2
-rw-r--r--src/util/convertBigIntToString.ts13
3 files changed, 8 insertions, 21 deletions
diff --git a/package-lock.json b/package-lock.json
index 267e8712..8011dc35 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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",
diff --git a/package.json b/package.json
index 049fdd2a..313e8de2 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/util/convertBigIntToString.ts b/src/util/convertBigIntToString.ts
deleted file mode 100644
index 2c8d9a38..00000000
--- a/src/util/convertBigIntToString.ts
+++ /dev/null
@@ -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;
-}