deeke-script-app 1.5.8 → 1.6.0

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.
@@ -4,15 +4,15 @@ declare global {
4
4
 
5
5
  interface Device {
6
6
  /**
7
- * 保持屏幕常亮(需要在当前App界面)
8
- * @param second 屏幕保持亮屏时间,单位秒
7
+ * 息屏后,保持 CPU 唤醒,延时释放
8
+ * @param second 保持 CPU 唤醒,延时释放,单位秒
9
9
  */
10
- public keepScreenOn(second: number): void;
10
+ public keepCpuAwake(second: number): void;
11
11
 
12
12
  /**
13
- * 关闭屏幕
13
+ * 关闭CPU唤醒状态
14
14
  */
15
- public closeScreenLight(): void;
15
+ public releaseCpuWakeLock(): void;
16
16
 
17
17
  /**
18
18
  * 获取屏幕宽度
@@ -13,7 +13,7 @@ interface Engines {
13
13
  * 执行脚本
14
14
  * @param content 脚本内容
15
15
  */
16
- public executeScriptStr(content: string): void;
16
+ public executeScriptStr(name: string, content: string): void;
17
17
 
18
18
  /**
19
19
  * 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.5.8",
3
+ "version": "1.6.0",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {