@ekhein/lamda-node-sdk 2.1.2 → 2.1.3

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 CHANGED
@@ -21,8 +21,8 @@ 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
  activity(data: string): Promise<import("./rpc/types").Boolean>;
24
- kill(...args: Parameters<typeof this.Application["stopApplication"]>): Promise<import("./rpc/types").Boolean>;
25
- open(...args: Parameters<typeof this.Application["startApplication"]>): Promise<import("./rpc/types").Boolean>;
24
+ kill(name: string): Promise<import("./rpc/types").Boolean>;
25
+ open(name: string): Promise<import("./rpc/types").Boolean>;
26
26
  restart(name: string): Promise<void>;
27
27
  call(args: {
28
28
  package: string;
package/dist/main.js CHANGED
@@ -79,18 +79,18 @@ class Device {
79
79
  flags: (activity_flag_1.FLAG_ACTIVITY_NEW_TASK | activity_flag_1.FLAG_ACTIVITY_CLEAR_TOP | activity_flag_1.FLAG_ACTIVITY_CLEAR_TASK)
80
80
  });
81
81
  }
82
- async kill(...args) {
82
+ async kill(name) {
83
83
  return this.Application
84
- .stopApplication(...args);
84
+ .stopApplication({ name });
85
85
  }
86
- async open(...args) {
86
+ async open(name) {
87
87
  return this.Application
88
- .startApplication(...args);
88
+ .startApplication({ name });
89
89
  }
90
90
  async restart(name) {
91
- await this.kill({ name });
91
+ await this.kill(name);
92
92
  await this.sleep(200);
93
- await this.open({ name });
93
+ await this.open(name);
94
94
  }
95
95
  async call(args) {
96
96
  const callinfo = JSON.stringify(args.callinfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekhein/lamda-node-sdk",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "author": "ekhein",
5
5
  "license": "MIT",
6
6
  "main": "./dist/main.js",