From 5959b43e0a5c0a75154f3d4c27f25a5fbdbb1423 Mon Sep 17 00:00:00 2001 From: louistiti Date: Sat, 19 Nov 2022 21:12:43 +0800 Subject: [PATCH] chore: upgrade TypeScript to latest --- package-lock.json | 15 +++++++-------- package.json | 2 +- server/src/core/socket-server.ts | 8 ++++---- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a61a5eb..0ca55dbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,7 +76,7 @@ "ts-node": "^10.9.1", "tsc-watch": "^5.0.3", "tsconfig-paths": "^4.1.0", - "typescript": "^4.8.2", + "typescript": "^4.9.3", "vite": "^3.0.9" }, "engines": { @@ -13704,11 +13704,10 @@ } }, "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz", + "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -23637,9 +23636,9 @@ } }, "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz", + "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==", "dev": true }, "unbox-primitive": { diff --git a/package.json b/package.json index 4f9cd59f..ef394208 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "ts-node": "^10.9.1", "tsc-watch": "^5.0.3", "tsconfig-paths": "^4.1.0", - "typescript": "^4.8.2", + "typescript": "^4.9.3", "vite": "^3.0.9" } } diff --git a/server/src/core/socket-server.ts b/server/src/core/socket-server.ts index 9ba2a5ca..b94f5def 100644 --- a/server/src/core/socket-server.ts +++ b/server/src/core/socket-server.ts @@ -16,8 +16,8 @@ export default class SocketServer { } } - public init(): void { - /*const { httpServer, host } = HTTP_SERVER + /*public init(): void { + const { httpServer, host } = HTTP_SERVER const io = IS_DEVELOPMENT_ENV ? new SocketIOServer(httpServer, { cors: { origin: `${this.host}:3000` } @@ -27,6 +27,6 @@ export default class SocketServer { // TODO: instantiate new socket server io.on('connection', (socket) => { - })*/ - } + }) + }*/ }