diff --git a/gateway/package-lock.json b/gateway/package-lock.json
index 38bdab90..cbad96dc 100644
--- a/gateway/package-lock.json
+++ b/gateway/package-lock.json
@@ -27,7 +27,7 @@
"@types/node": "^14.17.9",
"@types/node-fetch": "^2.5.12",
"@types/ws": "^7.4.0",
- "@zerollup/ts-transform-paths": "^1.7.18",
+ "@ovos-media/ts-transform-paths": "^1.7.18-1",
"ts-node-dev": "^1.1.6",
"ts-patch": "^1.4.4",
"typescript": "^4.2.3"
diff --git a/gateway/package.json b/gateway/package.json
index a062ac9b..fe59527f 100644
--- a/gateway/package.json
+++ b/gateway/package.json
@@ -19,23 +19,23 @@
"@types/jsonwebtoken": "^8.5.0",
"@types/node": "^14.17.9",
"@types/node-fetch": "^2.5.12",
- "@types/ws": "^7.4.0",
- "@zerollup/ts-transform-paths": "^1.7.18",
- "ts-node-dev": "^1.1.6",
- "ts-patch": "^1.4.4",
+ "@types/ws": "^8.5.3",
+ "@ovos-media/ts-transform-paths": "^1.7.18-1",
+ "ts-node-dev": "^2.0.0",
+ "ts-patch": "^2.0.1",
"typescript": "^4.2.3"
},
"dependencies": {
"@fosscord/util": "file:../util",
- "amqplib": "^0.8.0",
- "dotenv": "^8.2.0",
+ "amqplib": "^0.10.0",
+ "dotenv": "^16.0.1",
"jsonwebtoken": "^8.5.1",
"lambert-server": "^1.2.11",
"missing-native-js-functions": "^1.2.18",
- "node-fetch": "^2.6.2",
+ "node-fetch": "^3.2.9",
"proxy-agent": "^5.0.0",
- "typeorm": "^0.2.45",
- "ws": "^7.4.2"
+ "typeorm": "^0.3.7",
+ "ws": "^8.8.1"
},
"optionalDependencies": {
"@yukikaze-bot/erlpack": "^1.0.1"
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index 2559624e..bfe748f1 100644
--- a/gateway/src/opcodes/Identify.ts
+++ b/gateway/src/opcodes/Identify.ts
@@ -231,7 +231,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
const d: ReadyEventData = {
v: 8,
- application,
+ application: {id: application?.id??'', flags: application?.flags??''}, //TODO: check this code!
user: privateUser,
user_settings: user.settings,
// @ts-ignore
diff --git a/gateway/tsconfig.json b/gateway/tsconfig.json
index 5ecb21e1..56b9ca7d 100644
--- a/gateway/tsconfig.json
+++ b/gateway/tsconfig.json
@@ -9,7 +9,7 @@
"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": [
- "ES2015",
+ "ES2019",
"ES2020.BigInt",
"DOM"
] /* Specify library files to be included in the compilation. */,
@@ -67,7 +67,7 @@
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
- // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
+ "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Advanced Options */
@@ -79,6 +79,6 @@
"@fosscord/gateway": ["src/index.ts"],
"@fosscord/gateway/*": ["src/*"]
},
- "plugins": [{ "transform": "@zerollup/ts-transform-paths" }]
+ "plugins": [{ "transform": "@ovos-media/ts-transform-paths" }]
}
}
|