@ -21,7 +21,7 @@
|
||||
"devDependencies": {
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rimraf": "^3.0.2",
|
||||
"typescript": "^4.3.5"
|
||||
"typescript": "^4.5.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ccms/api": "^0.17.0",
|
||||
|
@ -15,7 +15,7 @@ export default function SpringImpl(container: Container) {
|
||||
require('@ccms/amqp')
|
||||
require('@ccms/database')
|
||||
require('./internal/scanner/mysql-scanner')
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.ex(error)
|
||||
}
|
||||
const beanFactory = base.getInstance().getAutowireCapableBeanFactory()
|
||||
|
@ -36,7 +36,7 @@ export class CommandMap {
|
||||
if (exists) {
|
||||
try {
|
||||
return exists.executor(sender, '', command, Java.to(args))
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.ex(error)
|
||||
}
|
||||
return true
|
||||
@ -54,7 +54,7 @@ export class CommandMap {
|
||||
try {
|
||||
if (args.length !== index) { args.push('') }
|
||||
return exists.tabCompleter(sender, '', command, Java.to(args))
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.ex(error)
|
||||
}
|
||||
}
|
||||
@ -76,4 +76,4 @@ export class SpringCommand {
|
||||
setExecutor = (executor: CommandExec) => this.executor = executor
|
||||
setTabCompleter = (tabCompleter: TabCompleter) => this.tabCompleter = tabCompleter
|
||||
toString = () => `SpringCommand(${this.name})`
|
||||
}
|
||||
}
|
||||
|
@ -58,22 +58,22 @@ export class SpringTask extends task.Task {
|
||||
if (this.laterTime > 0) {
|
||||
try {
|
||||
Thread.sleep(this.laterTime)
|
||||
} catch (ex) {
|
||||
} catch (ex: any) {
|
||||
Thread.currentThread().interrupt()
|
||||
}
|
||||
}
|
||||
while (this.running.get()) {
|
||||
try {
|
||||
this.func(...args)
|
||||
} catch (t) {
|
||||
console.error("Task exec error:", t)
|
||||
console.ex(t)
|
||||
} catch (ex: any) {
|
||||
console.error("Task exec error:", ex)
|
||||
console.ex(ex)
|
||||
}
|
||||
// If we have a interval of 0 or less, only run once
|
||||
if (this.interval <= 0) { break }
|
||||
try {
|
||||
Thread.sleep(this.interval)
|
||||
} catch (ex) {
|
||||
} catch (ex: any) {
|
||||
Thread.currentThread().interrupt()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user