@ekhein/lamda-node-sdk 2.0.4 → 2.0.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.
- package/dist/main.d.ts +1 -1
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class Device {
|
|
|
21
21
|
sleep(min?: number, max?: number): Promise<unknown>;
|
|
22
22
|
passwd(pwd: string, keyboard: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9", Parameters<typeof this.UiAutomator["selectorClick"]>[0]>): Promise<void>;
|
|
23
23
|
open(data: string): Promise<import("./rpc/types").Boolean>;
|
|
24
|
-
|
|
24
|
+
kill(...args: Parameters<typeof this.Application["stopApplication"]>): Promise<import("./rpc/types").Boolean>;
|
|
25
25
|
call(args: {
|
|
26
26
|
package: string;
|
|
27
27
|
callinfo: {
|
package/dist/main.js
CHANGED
|
@@ -64,8 +64,8 @@ export class Device {
|
|
|
64
64
|
}
|
|
65
65
|
async passwd(pwd, keyboard) {
|
|
66
66
|
for (let i = 0; i < pwd.length; i++) {
|
|
67
|
-
await this.click(keyboard[pwd[i]]);
|
|
68
67
|
await this.sleep(100, 200);
|
|
68
|
+
await this.click(keyboard[pwd[i]]);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
async open(data) {
|
|
@@ -76,7 +76,7 @@ export class Device {
|
|
|
76
76
|
flags: (FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_CLEAR_TASK)
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
async
|
|
79
|
+
async kill(...args) {
|
|
80
80
|
return this.Application
|
|
81
81
|
.stopApplication(...args);
|
|
82
82
|
}
|