diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-07-19 07:21:26 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | 279ec10081f245f4d5bbca8b63485c841f619e35 (patch) | |
tree | 4e58b7bb26fa3f5f60cfc8888b9f37a258146083 /gateway | |
parent | update node types to v18, ditch node-fetch (diff) | |
download | server-279ec10081f245f4d5bbca8b63485c841f619e35.tar.xz |
State update, havent tested
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/package.json | 6 | ||||
-rw-r--r-- | gateway/src/Server.ts | 1 | ||||
-rw-r--r-- | gateway/src/events/Message.ts | 5 | ||||
-rw-r--r-- | gateway/src/listener/listener.ts | 1 | ||||
-rw-r--r-- | gateway/src/opcodes/LazyRequest.ts | 2 | ||||
-rw-r--r-- | gateway/src/opcodes/instanceOf.ts | 2 | ||||
-rw-r--r-- | gateway/tsconfig.json | 2 |
7 files changed, 4 insertions, 15 deletions
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": [ |