feat: 更新依赖版本

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2023-02-08 17:03:17 +08:00
parent c2867da047
commit 3901d9fb5f
26 changed files with 75 additions and 75 deletions

View File

@ -22,6 +22,6 @@
"packages/*" "packages/*"
], ],
"devDependencies": { "devDependencies": {
"lerna": "^6.0.3" "lerna": "^6.4.1"
} }
} }

View File

@ -29,7 +29,7 @@
"@javatypes/spring-amqp": "^0.0.3", "@javatypes/spring-amqp": "^0.0.3",
"@javatypes/spring-rabbit": "^0.0.3", "@javatypes/spring-rabbit": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -28,7 +28,7 @@
"devDependencies": { "devDependencies": {
"@types/base64-js": "^1.3.0", "@types/base64-js": "^1.3.0",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -96,8 +96,8 @@ export namespace event {
/** /**
* *
* @param name * @param name
* @param exec * @param exec
* @param eventCls * @param eventCls
* @returns * @returns
*/ */
createExecute(name, exec, eventCls) { createExecute(name, exec, eventCls) {
@ -106,7 +106,7 @@ export namespace event {
try { try {
if (!eventCls.isAssignableFrom(event.getClass())) { return } if (!eventCls.isAssignableFrom(event.getClass())) { return }
let time = Date.now(); exec(event); let cost = Date.now() - time let time = Date.now(); exec(event); let cost = Date.now() - time
if (cost > global.ScriptSlowExecuteTime) { if (cost > global.ScriptSlowExecuteTime && !event.async) {
let eventKey = `${name}-${this.class2Name(eventCls)}` let eventKey = `${name}-${this.class2Name(eventCls)}`
if (!this.cacheSlowEventKey[eventKey]) { return this.cacheSlowEventKey[eventKey] = cost } if (!this.cacheSlowEventKey[eventKey]) { return this.cacheSlowEventKey[eventKey] = cost }
console.i18n("ms.api.event.execute.slow", { name, event: this.class2Name(eventCls), cost }) console.i18n("ms.api.event.execute.slow", { name, event: this.class2Name(eventCls), cost })
@ -120,11 +120,11 @@ export namespace event {
/** /**
* *
* @param plugin {any} * @param plugin {any}
* @param event {string} * @param event {string}
* @param exec {function} * @param exec {function}
* @param priority {string} [LOWEST,LOW,NORMAL,HIGH,HIGHEST,MONITOR] * @param priority {string} [LOWEST,LOW,NORMAL,HIGH,HIGHEST,MONITOR]
* @param ignoreCancel * @param ignoreCancel
*/ */
listen(plugin: any, event: string, exec: (event: any) => void, priority: EventPriority = EventPriority.NORMAL, ignoreCancel = false) { listen(plugin: any, event: string, exec: (event: any) => void, priority: EventPriority = EventPriority.NORMAL, ignoreCancel = false) {
if (!plugin || !plugin.description || !plugin.description.name) throw new TypeError(i18n.translate("ms.api.event.listen.plugin.name.empty")) if (!plugin || !plugin.description || !plugin.description.name) throw new TypeError(i18n.translate("ms.api.event.listen.plugin.name.empty"))
@ -178,7 +178,7 @@ export namespace event {
disable(plugin: any) { disable(plugin: any) {
var eventCache = this.listenerMap[plugin.description.name] var eventCache = this.listenerMap[plugin.description.name]
if (eventCache) { if (eventCache) {
eventCache.forEach(off => off()) eventCache.forEach((off: () => any) => off())
delete this.listenerMap[plugin.description.name] delete this.listenerMap[plugin.description.name]
} }
} }

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@javatypes/spigot-api": "^0.0.3", "@javatypes/spigot-api": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@javatypes/bungee-api": "^0.0.3", "@javatypes/bungee-api": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -24,16 +24,16 @@
"test": "echo \"Error: run tests from root\" && exit 1" "test": "echo \"Error: run tests from root\" && exit 1"
}, },
"dependencies": { "dependencies": {
"axios": "^1.1.3", "axios": "^1.3.2",
"https-proxy-agent": "^5.0.1", "https-proxy-agent": "^5.0.1",
"minecraft-protocol": "^1.36.1", "minecraft-protocol": "^1.40.3",
"minecraft-protocol-forge": "^1.0.0", "minecraft-protocol-forge": "^1.0.0",
"proxy-agent": "^5.0.0" "proxy-agent": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^18.11.9", "@types/node": "^18.13.0",
"lerna": "^6.0.3", "lerna": "^6.4.1",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -22,8 +22,8 @@
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"@javatypes/jdk": "^0.0.3", "@javatypes/jdk": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"gitHead": "562e2d00175c9d3a99c8b672aa07e6d92706a027" "gitHead": "562e2d00175c9d3a99c8b672aa07e6d92706a027"
} }

View File

@ -20,7 +20,7 @@
}, },
"devDependencies": { "devDependencies": {
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"inversify": "^6.0.1", "inversify": "^6.0.1",

View File

@ -20,8 +20,8 @@
}, },
"devDependencies": { "devDependencies": {
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@javatypes/spring-jdbc": "^0.0.3", "@javatypes/spring-jdbc": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -22,8 +22,8 @@
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"js-yaml": "^4.1.0" "js-yaml": "^4.1.0"

View File

@ -29,8 +29,8 @@
"@javatypes/spring-amqp": "^0.0.3", "@javatypes/spring-amqp": "^0.0.3",
"@javatypes/spring-rabbit": "^0.0.3", "@javatypes/spring-rabbit": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"gitHead": "2589633069d24f646ac09261b1b2304c21d4ea75" "gitHead": "2589633069d24f646ac09261b1b2304c21d4ea75"
} }

View File

@ -21,9 +21,9 @@
}, },
"homepage": "https://github.com/solvedDev/MoLang#readme", "homepage": "https://github.com/solvedDev/MoLang#readme",
"devDependencies": { "devDependencies": {
"@types/node": "^18.11.9", "@types/node": "^18.13.0",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"tslib": "^2.4.1", "tslib": "^2.5.0",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -21,7 +21,7 @@
}, },
"devDependencies": { "devDependencies": {
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -21,9 +21,9 @@
"devDependencies": { "devDependencies": {
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"tslib": "^2.4.1", "tslib": "^2.5.0",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"gitHead": "781524f83e52cad26d7c480513e3c525df867121" "gitHead": "781524f83e52cad26d7c480513e3c525df867121"
} }

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@javatypes/nukkit-api": "^0.0.3", "@javatypes/nukkit-api": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -22,15 +22,15 @@
"@types/crypto-js": "^4.1.1", "@types/crypto-js": "^4.1.1",
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",
"@ccms/common": "^0.26.0", "@ccms/common": "^0.26.0",
"@ccms/container": "^0.26.0", "@ccms/container": "^0.26.0",
"@ccms/i18n": "^0.26.0", "@ccms/i18n": "^0.26.0",
"@ccms/verify": "^0.24.5", "@ccms/verify": "^0.25.1",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
"js-yaml": "^4.1.0" "js-yaml": "^4.1.0"
} }

View File

@ -16,12 +16,12 @@
"dependencies": { "dependencies": {
"@ccms/i18n": "^0.26.0", "@ccms/i18n": "^0.26.0",
"@ccms/nodejs": "^0.26.0", "@ccms/nodejs": "^0.26.0",
"core-js": "^3.26.1" "core-js": "^3.27.2"
}, },
"devDependencies": { "devDependencies": {
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -68,8 +68,8 @@ type EventType =
| 'timeout' | 'timeout'
| 'loadend' | 'loadend'
| 'loadstart' | 'loadstart'
type HttpHeader = { [key: string]: string } type RequestHttpHeader = { [key: string]: string }
type HttpHeader = { [key: string]: string[] }
const executor = Executors.newCachedThreadPool() const executor = Executors.newCachedThreadPool()
@ -85,7 +85,7 @@ export class XMLHttpRequest {
private _url: string private _url: string
private _async: boolean private _async: boolean
private _mimeType: string private _mimeType: string
private _requestHeaders: HttpHeader = {}; private _requestHeaders: RequestHttpHeader = {};
private _status: number = 0; private _status: number = 0;
private _statusText: string = null; private _statusText: string = null;
@ -156,7 +156,7 @@ export class XMLHttpRequest {
this._requestHeaders[key] = val this._requestHeaders[key] = val
} }
getResponseHeader(key: string): string { getResponseHeader(key: string): string {
return this._responseHeaders[key] return this._responseHeaders[key]?.[0]
} }
getAllResponseHeaders(): any { getAllResponseHeaders(): any {
return this._responseHeaders return this._responseHeaders
@ -221,7 +221,7 @@ export class XMLHttpRequest {
this.onloadstart?.() this.onloadstart?.()
if (body) { if (body) {
let bodyType = Object.prototype.toString.call(body) let bodyType = Object.prototype.toString.call(body)
if (typeof body !== "string") { throw new Error(`body(${bodyType}) must be string!`) } if (typeof body !== "string") { throw new Error(`body(${bodyType}) must be string.`) }
var out = this._connection.getOutputStream() var out = this._connection.getOutputStream()
out.write(new JavaString(body).getBytes(UTF_8)) out.write(new JavaString(body).getBytes(UTF_8))
out.flush() out.flush()
@ -238,7 +238,7 @@ export class XMLHttpRequest {
} else { } else {
this._responseText = this.readOutput(this._connection.getErrorStream()) this._responseText = this.readOutput(this._connection.getErrorStream())
} }
this.setResponseHeaders(this._connection.getHeaderFields()) this.setResponseHeaders()
this.onloadend?.() this.onloadend?.()
} catch (ex: any) { } catch (ex: any) {
if (ex instanceof SocketTimeoutException && this.ontimeout) { if (ex instanceof SocketTimeoutException && this.ontimeout) {
@ -253,9 +253,9 @@ export class XMLHttpRequest {
} }
} }
private setResponseHeaders(header: any) { private setResponseHeaders() {
header.forEach((key: string | number, value: string | any[]) => { this._connection.getHeaderFields().forEach((key: string | number, value: any[]) => {
this._responseHeaders[key + ''] = value[value.length - 1] + '' this._responseHeaders[key + ''] = Java.from(value)
}) })
} }

View File

@ -21,7 +21,7 @@
}, },
"devDependencies": { "devDependencies": {
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }

View File

@ -21,8 +21,8 @@
"devDependencies": { "devDependencies": {
"@javatypes/sponge-api": "^0.0.3", "@javatypes/sponge-api": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -20,8 +20,8 @@
}, },
"devDependencies": { "devDependencies": {
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -25,8 +25,8 @@
"@javatypes/spring-web": "^0.0.3", "@javatypes/spring-web": "^0.0.3",
"@javatypes/tomcat": "^0.0.3", "@javatypes/tomcat": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"@ccms/api": "^0.26.0", "@ccms/api": "^0.26.0",

View File

@ -19,7 +19,7 @@
"test": "echo \"Error: run tests from root\" && exit 1" "test": "echo \"Error: run tests from root\" && exit 1"
}, },
"dependencies": { "dependencies": {
"@socket.io/component-emitter": "^3.1.0", "@socket.io/component-emitter": "^4.0.0",
"backo2": "^1.0.2", "backo2": "^1.0.2",
"parseuri": "^0.0.6" "parseuri": "^0.0.6"
}, },
@ -27,7 +27,7 @@
"@ccms/nashorn": "^0.26.0", "@ccms/nashorn": "^0.26.0",
"@javatypes/tomcat-websocket-api": "^0.0.3", "@javatypes/tomcat-websocket-api": "^0.0.3",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2", "rimraf": "^4.1.2",
"typescript": "^4.9.3" "typescript": "^4.9.5"
} }
} }