deeke-script-app 1.5.7 → 1.5.9

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
  * 获取屏幕宽度
@@ -25,7 +25,7 @@ interface Encrypt {
25
25
  * base64 encode
26
26
  * @param input
27
27
  */
28
- public base64Encode(input: string): string;
28
+ public base64Encode(input: string|byte[]): string;
29
29
 
30
30
  /**
31
31
  * base64 decode
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {