summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 15:04:55 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 15:04:55 +0100
commitc5bb9a6006c97d5200b65af419889cb682068baf (patch)
treef4dd2ecf9ad0d3bd8e4cc7b1681f2cef64fdba3e
parent:sparkles: load .env file (diff)
downloadserver-c5bb9a6006c97d5200b65af419889cb682068baf.tar.xz
:bug: fix startup error
-rw-r--r--package-lock.json14
-rw-r--r--package.json2
-rw-r--r--src/index.ts1
3 files changed, 9 insertions, 8 deletions
diff --git a/package-lock.json b/package-lock.json
index 02a0973a..d5300b7c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -21,7 +21,7 @@
 				"jsonwebtoken": "^8.5.1",
 				"lambert-db": "^1.1.8",
 				"lambert-server": "^1.0.10",
-				"missing-native-js-functions": "^1.2.2",
+				"missing-native-js-functions": "^1.2.4",
 				"mongodb": "^3.6.4",
 				"mongoose-long": "^0.3.2",
 				"node-fetch": "^2.6.1"
@@ -1315,9 +1315,9 @@
 			}
 		},
 		"node_modules/missing-native-js-functions": {
-			"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=="
+			"version": "1.2.4",
+			"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.4.tgz",
+			"integrity": "sha512-hJC316uZJQ76Wxys6Dciw0mgD3ZJaOvhM0Q1iceQHNegUmFYZsJZLnhV65RGCerIalxZMC7pclk8saHaYB1M5Q=="
 		},
 		"node_modules/mkdirp": {
 			"version": "0.5.5",
@@ -3464,9 +3464,9 @@
 			}
 		},
 		"missing-native-js-functions": {
-			"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=="
+			"version": "1.2.4",
+			"resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.4.tgz",
+			"integrity": "sha512-hJC316uZJQ76Wxys6Dciw0mgD3ZJaOvhM0Q1iceQHNegUmFYZsJZLnhV65RGCerIalxZMC7pclk8saHaYB1M5Q=="
 		},
 		"mkdirp": {
 			"version": "0.5.5",
diff --git a/package.json b/package.json
index 1a5d65b2..28f43846 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
 		"jsonwebtoken": "^8.5.1",
 		"lambert-db": "^1.1.8",
 		"lambert-server": "^1.0.10",
-		"missing-native-js-functions": "^1.2.2",
+		"missing-native-js-functions": "^1.2.4",
 		"mongodb": "^3.6.4",
 		"mongoose-long": "^0.3.2",
 		"node-fetch": "^2.6.1"
diff --git a/src/index.ts b/src/index.ts
index f2e5565f..08804687 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,6 +1,7 @@
 process.on("uncaughtException", console.error);
 process.on("unhandledRejection", console.error);
 
+import "missing-native-js-functions";
 import { config } from "dotenv";
 config();
 import { DiscordServer } from "./Server";