diff --git a/gateway/package.json b/gateway/package.json
index 05ef5c55..19d44eba 100644
--- a/gateway/package.json
+++ b/gateway/package.json
@@ -15,9 +15,7 @@
"author": "Fosscord",
"license": "AGPL-3.0-only",
"devDependencies": {
- "@ovos-media/ts-transform-paths": "^1.7.18-1",
"@types/amqplib": "^0.8.1",
- "@types/jsonwebtoken": "^8.5.0",
"@types/node": "^18.0.6",
"@types/ws": "^8.5.3",
"ts-node-dev": "^2.0.0",
@@ -28,10 +26,6 @@
"@fosscord/util": "file:../util",
"amqplib": "^0.10.0",
"dotenv": "^16.0.1",
- "jsonwebtoken": "^8.5.1",
- "lambert-server": "^1.2.11",
- "missing-native-js-functions": "^1.2.18",
- "proxy-agent": "^5.0.0",
"typeorm": "^0.3.7",
"ws": "^8.8.1"
},
diff --git a/gateway/src/Server.ts b/gateway/src/Server.ts
index 7e1489be..254820c9 100644
--- a/gateway/src/Server.ts
+++ b/gateway/src/Server.ts
@@ -1,4 +1,3 @@
-import "missing-native-js-functions";
import dotenv from "dotenv";
dotenv.config();
import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util";
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts
index 83e6fc1b..31328784 100644
--- a/gateway/src/events/Message.ts
+++ b/gateway/src/events/Message.ts
@@ -1,17 +1,16 @@
-import { CLOSECODES, OPCODES } from "../util/Constants";
+import { CLOSECODES } from "../util/Constants";
import { WebSocket, Payload } from "@fosscord/gateway";
let erlpack: any;
try {
erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {}
import OPCodeHandlers from "../opcodes";
-import { Tuple } from "lambert-server";
import { check } from "../opcodes/instanceOf";
import WS from "ws";
const PayloadSchema = {
op: Number,
- $d: new Tuple(Object, Number), // or number for heartbeat sequence
+ $d: Object || Number, // or number for heartbeat sequence
$s: Number,
$t: String,
};
diff --git a/gateway/src/listener/listener.ts b/gateway/src/listener/listener.ts
index 060de65b..0cf2b82b 100644
--- a/gateway/src/listener/listener.ts
+++ b/gateway/src/listener/listener.ts
@@ -13,7 +13,6 @@ import {
import { OPCODES } from "../util/Constants";
import { Send } from "../util/Send";
import { WebSocket } from "@fosscord/gateway";
-import "missing-native-js-functions";
import { Channel as AMQChannel } from "amqplib";
import { Recipient } from "@fosscord/util";
diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts
index 7503ee61..dd96d6d7 100644
--- a/gateway/src/opcodes/LazyRequest.ts
+++ b/gateway/src/opcodes/LazyRequest.ts
@@ -4,9 +4,7 @@ import { Send } from "../util/Send";
import { OPCODES } from "../util/Constants";
import { WebSocket, Payload, handlePresenceUpdate } from "@fosscord/gateway";
import { check } from "./instanceOf";
-import "missing-native-js-functions";
import { getRepository } from "typeorm";
-import "missing-native-js-functions";
// TODO: only show roles/members that have access to this channel
// TODO: config: to list all members (even those who are offline) sorted by role, or just those who are online
diff --git a/gateway/src/opcodes/instanceOf.ts b/gateway/src/opcodes/instanceOf.ts
index 6fd50852..eb6f6ea1 100644
--- a/gateway/src/opcodes/instanceOf.ts
+++ b/gateway/src/opcodes/instanceOf.ts
@@ -1,4 +1,4 @@
-import { instanceOf } from "lambert-server";
+import { instanceOf } from "@fosscord/util";
import { WebSocket } from "@fosscord/gateway";
import { CLOSECODES } from "../util/Constants";
diff --git a/gateway/tsconfig.json b/gateway/tsconfig.json
index 56b9ca7d..70407c6b 100644
--- a/gateway/tsconfig.json
+++ b/gateway/tsconfig.json
@@ -5,7 +5,7 @@
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Basic Options */
- "incremental": true /* Enable incremental compilation */,
+ "incremental": false /* Enable incremental compilation */,
"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"lib": [
|