deeke-script-app 1.8.4 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,10 +33,10 @@ interface Threads {
33
33
  * ThreadWrapper对象,用于管理线程
34
34
  */
35
35
  interface ThreadWrapper {
36
- /**
37
- * 启动线程(使用线程池时,任务会自动启动,此方法主要用于兼容性)
38
- */
39
- start(): void;
36
+ /**
37
+ * 启动线程
38
+ */
39
+ start(): void;
40
40
 
41
41
  /**
42
42
  * 等待线程任务完成
@@ -78,7 +78,7 @@ interface ThreadWrapper {
78
78
  * 获取线程名称
79
79
  * @returns 线程名称
80
80
  */
81
- getName(): string | null;
81
+ getName(): string;
82
82
 
83
83
  /**
84
84
  * 设置线程优先级
@@ -61,6 +61,25 @@
61
61
  }
62
62
  }
63
63
  },
64
+ "hooks": {
65
+ "type": "object",
66
+ "description": "生命周期钩子函数配置",
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "app_start_before": {
70
+ "type": "string",
71
+ "description": "应用启动前执行的钩子函数文件路径"
72
+ },
73
+ "app_start": {
74
+ "type": "string",
75
+ "description": "应用启动时执行的钩子函数文件路径"
76
+ },
77
+ "app_active_after": {
78
+ "type": "string",
79
+ "description": "应用激活后执行的钩子函数文件路径"
80
+ }
81
+ }
82
+ },
64
83
  "groups": {
65
84
  "type": "array",
66
85
  "description": "主界面的功能组,每组都会包含若干个功能",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {