1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 09:44:22 +03:00

chore: upgrade TypeScript to latest

This commit is contained in:
louistiti 2022-11-19 21:12:43 +08:00
parent b9a6ee08fe
commit 5959b43e0a
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
3 changed files with 12 additions and 13 deletions

15
package-lock.json generated
View File

@ -76,7 +76,7 @@
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^5.0.3", "tsc-watch": "^5.0.3",
"tsconfig-paths": "^4.1.0", "tsconfig-paths": "^4.1.0",
"typescript": "^4.8.2", "typescript": "^4.9.3",
"vite": "^3.0.9" "vite": "^3.0.9"
}, },
"engines": { "engines": {
@ -13704,11 +13704,10 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.8.4", "version": "4.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
"integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
"dev": true, "dev": true,
"license": "Apache-2.0",
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
"tsserver": "bin/tsserver" "tsserver": "bin/tsserver"
@ -23637,9 +23636,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "4.8.4", "version": "4.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
"integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
"dev": true "dev": true
}, },
"unbox-primitive": { "unbox-primitive": {

View File

@ -131,7 +131,7 @@
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^5.0.3", "tsc-watch": "^5.0.3",
"tsconfig-paths": "^4.1.0", "tsconfig-paths": "^4.1.0",
"typescript": "^4.8.2", "typescript": "^4.9.3",
"vite": "^3.0.9" "vite": "^3.0.9"
} }
} }

View File

@ -16,8 +16,8 @@ export default class SocketServer {
} }
} }
public init(): void { /*public init(): void {
/*const { httpServer, host } = HTTP_SERVER const { httpServer, host } = HTTP_SERVER
const io = IS_DEVELOPMENT_ENV const io = IS_DEVELOPMENT_ENV
? new SocketIOServer(httpServer, { ? new SocketIOServer(httpServer, {
cors: { origin: `${this.host}:3000` } cors: { origin: `${this.host}:3000` }
@ -27,6 +27,6 @@ export default class SocketServer {
// TODO: instantiate new socket server // TODO: instantiate new socket server
io.on('connection', (socket) => { io.on('connection', (socket) => {
})*/ })
} }*/
} }