feat: update dep version
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
36c9d4ad99
commit
05244f9bef
@ -20,6 +20,6 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lerna": "^3.21.0"
|
"lerna": "^3.22.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,12 +21,15 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
"@ccms/common": "^0.8.0",
|
"@ccms/common": "^0.8.0",
|
||||||
"@ccms/container": "^0.8.0",
|
"@ccms/container": "^0.8.0"
|
||||||
"@ccms/nashorn": "^0.8.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
|
"@javatypes/amqp-client": "^0.0.2",
|
||||||
|
"@javatypes/spring-amqp": "^0.0.2",
|
||||||
|
"@javatypes/spring-rabbit": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,9 @@
|
|||||||
"source-map-builder": "^0.0.7"
|
"source-map-builder": "^0.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/base64-js": "^1.2.5",
|
"@types/base64-js": "^1.3.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/spigot-api": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/bungee-api": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minecraft-protocol": "^1.11.0"
|
"minecraft-protocol": "^1.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
|
"@javatypes/jdk": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/nashorn": "^0.8.0",
|
|
||||||
"@javatypes/jdk": "^1.14.0"
|
|
||||||
},
|
},
|
||||||
"gitHead": "562e2d00175c9d3a99c8b672aa07e6d92706a027"
|
"gitHead": "562e2d00175c9d3a99c8b672aa07e6d92706a027"
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,12 +19,12 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/nashorn": "^0.8.0",
|
|
||||||
"inversify": "^5.0.1",
|
"inversify": "^5.0.1",
|
||||||
"inversify-binding-decorators": "^4.0.0"
|
"inversify-binding-decorators": "^4.0.0"
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/spring-jdbc": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/js-yaml": "^3.12.3",
|
"@ccms/nashorn": "^0.8.0",
|
||||||
|
"@types/js-yaml": "^3.12.5",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/nashorn": "^0.8.0",
|
"js-yaml": "^3.14.0"
|
||||||
"js-yaml": "^3.13.1"
|
|
||||||
},
|
},
|
||||||
"gitHead": "781524f83e52cad26d7c480513e3c525df867121"
|
"gitHead": "781524f83e52cad26d7c480513e3c525df867121"
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,12 +19,12 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/nashorn": "^0.8.0"
|
|
||||||
},
|
},
|
||||||
"gitHead": "781524f83e52cad26d7c480513e3c525df867121"
|
"gitHead": "781524f83e52cad26d7c480513e3c525df867121"
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/nukkit-api": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -15,13 +15,13 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/i18n": "^0.8.0",
|
"@ccms/i18n": "^0.8.0",
|
||||||
"@ccms/nashorn": "^0.8.0",
|
|
||||||
"@ccms/nodejs": "^0.8.0",
|
"@ccms/nodejs": "^0.8.0",
|
||||||
"core-js": "^3.6.5"
|
"core-js": "^3.6.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/js-yaml": "^3.12.3",
|
"@types/js-yaml": "^3.12.5",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
"@ccms/common": "^0.8.0",
|
"@ccms/common": "^0.8.0",
|
||||||
"@ccms/container": "^0.8.0",
|
"@ccms/container": "^0.8.0",
|
||||||
"@ccms/i18n": "^0.8.0",
|
"@ccms/i18n": "^0.8.0",
|
||||||
"js-yaml": "^3.13.1"
|
"js-yaml": "^3.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/sponge-api": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -47,7 +47,7 @@ export class CommandMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tabComplate(sender: any, input: string, index?: number): string[] {
|
tabComplate(sender: any, input: string, index?: number): string[] {
|
||||||
if (index == 0) { return Object.keys(this.commands) }
|
if (index == 0) { return Object.keys(this.commands).concat('help') }
|
||||||
let [command, ...args] = input.split(' ')
|
let [command, ...args] = input.split(' ')
|
||||||
let exists = this.commands[command]
|
let exists = this.commands[command]
|
||||||
if (exists && exists.tabCompleter) {
|
if (exists && exists.tabCompleter) {
|
||||||
|
@ -19,9 +19,14 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@javatypes/jdk": "^0.0.2",
|
||||||
|
"@javatypes/spring-beans": "^0.0.2",
|
||||||
|
"@javatypes/spring-core": "^0.0.2",
|
||||||
|
"@javatypes/spring-web": "^0.0.2",
|
||||||
|
"@javatypes/tomcat": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/api": "^0.8.1",
|
"@ccms/api": "^0.8.1",
|
||||||
|
@ -19,11 +19,12 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ccms/nashorn": "^0.8.0",
|
||||||
|
"@javatypes/tomcat-websocket-api": "^0.0.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ccms/nashorn": "^0.8.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/// <reference types="@ccms/nashorn" />
|
/// <reference types="@ccms/nashorn" />
|
||||||
|
/// <reference types="@javatypes/tomcat-websocket-api" />
|
||||||
|
|
||||||
import { Server, ServerOptions } from './socket-io'
|
import { Server, ServerOptions } from './socket-io'
|
||||||
|
|
||||||
@ -6,40 +7,40 @@ interface SocketIOStatic {
|
|||||||
/**
|
/**
|
||||||
* Default Server constructor
|
* Default Server constructor
|
||||||
*/
|
*/
|
||||||
(): Server;
|
(): Server
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Server
|
* Creates a new Server
|
||||||
* @param srv The HTTP server that we're going to bind to
|
* @param srv The HTTP server that we're going to bind to
|
||||||
* @param opts An optional parameters object
|
* @param opts An optional parameters object
|
||||||
*/
|
*/
|
||||||
(srv: any, opts?: ServerOptions): Server;
|
(srv: any, opts?: ServerOptions): Server
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Server
|
* Creates a new Server
|
||||||
* @param port A port to bind to, as a number, or a string
|
* @param port A port to bind to, as a number, or a string
|
||||||
* @param An optional parameters object
|
* @param An optional parameters object
|
||||||
*/
|
*/
|
||||||
(port: string | number, opts?: ServerOptions): Server;
|
(port: string | number, opts?: ServerOptions): Server
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Server
|
* Creates a new Server
|
||||||
* @param A parameters object
|
* @param A parameters object
|
||||||
*/
|
*/
|
||||||
(opts: ServerOptions): Server;
|
(opts: ServerOptions): Server
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Backwards compatibility
|
* Backwards compatibility
|
||||||
* @see io().listen()
|
* @see io().listen()
|
||||||
*/
|
*/
|
||||||
listen?: SocketIOStatic;
|
listen?: SocketIOStatic
|
||||||
}
|
}
|
||||||
|
|
||||||
type SocketStatic = SocketIOStatic & { Instance?: symbol }
|
type SocketStatic = SocketIOStatic & { Instance?: symbol }
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let io: SocketStatic = function (pipeline: any, options: ServerOptions) {
|
let io: SocketStatic = function (pipeline: any, options: ServerOptions) {
|
||||||
return new Server(pipeline, options)
|
return new Server(pipeline, options)
|
||||||
}
|
}
|
||||||
io.Instance = Symbol("@ccms/websocket")
|
io.Instance = Symbol("@ccms/websocket")
|
||||||
export default io
|
export default io
|
||||||
|
@ -10,9 +10,7 @@ const WebSocketServerProxy = Java.type("pw.yumc.MiaoScript.websocket.WebSocketPr
|
|||||||
const ThreadPoolExecutor = Java.type('java.util.concurrent.ThreadPoolExecutor')
|
const ThreadPoolExecutor = Java.type('java.util.concurrent.ThreadPoolExecutor')
|
||||||
const ThreadPoolTaskExecutor = Java.type('org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor')
|
const ThreadPoolTaskExecutor = Java.type('org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor')
|
||||||
|
|
||||||
interface TomcatWebSocketSession {
|
type TomcatWebSocketSession = javax.websocket.Session
|
||||||
getId: () => number
|
|
||||||
}
|
|
||||||
|
|
||||||
class TomcatWebSocketServer extends EventEmitter {
|
class TomcatWebSocketServer extends EventEmitter {
|
||||||
private beanFactory: any
|
private beanFactory: any
|
||||||
|
Loading…
Reference in New Issue
Block a user