feat: add loadMavenDepend & optimize database

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2022-04-25 00:41:11 +08:00
parent 579d89ae89
commit 8d0484eefb
10 changed files with 165 additions and 68 deletions

View File

@ -49,7 +49,18 @@ declare global {
logger: any
debug: boolean
level: string
/**
* 引擎配置
*/
ScriptEngineConfig: any
/**
* 引擎版本
*/
ScriptEngineVersion: string
/**
* 引擎渠道
*/
ScriptEngineChannel: string
ScriptSlowExecuteTime: number
ScriptEngineStartTime: number
setGlobal: (key: string, value: any, config?: PropertyDescriptor & ThisType<any>) => void
@ -71,6 +82,7 @@ declare global {
getProxyClass(): any
getJavaScriptTaskClass(): any
getInstance(): any
loadMavenDepend(groupId: string, artifactId: string, version: string): [any, any]
read(path: string): string
save(path: string, content: string): void
delete(path: string): void