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/*"
],
"devDependencies": {
"lerna": "^6.0.3"
"lerna": "^6.4.1"
}
}

View File

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

View File

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

View File

@ -96,8 +96,8 @@ export namespace event {
/**
*
* @param name
* @param exec
* @param eventCls
* @param exec
* @param eventCls
* @returns
*/
createExecute(name, exec, eventCls) {
@ -106,7 +106,7 @@ export namespace event {
try {
if (!eventCls.isAssignableFrom(event.getClass())) { return }
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)}`
if (!this.cacheSlowEventKey[eventKey]) { return this.cacheSlowEventKey[eventKey] = 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 event {string}
* @param exec {function}
* @param priority {string} [LOWEST,LOW,NORMAL,HIGH,HIGHEST,MONITOR]
* @param ignoreCancel
* @param plugin {any}
* @param event {string}
* @param exec {function}
* @param priority {string} [LOWEST,LOW,NORMAL,HIGH,HIGHEST,MONITOR]
* @param ignoreCancel
*/
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"))
@ -178,7 +178,7 @@ export namespace event {
disable(plugin: any) {
var eventCache = this.listenerMap[plugin.description.name]
if (eventCache) {
eventCache.forEach(off => off())
eventCache.forEach((off: () => any) => off())
delete this.listenerMap[plugin.description.name]
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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