@ekhein/lamda-node-sdk 2.1.9 → 2.2.2
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 +3 -3
- package/package.json +4 -1
package/dist/main.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class Device {
|
|
|
16
16
|
readonly Settings: SettingsClient;
|
|
17
17
|
private channel;
|
|
18
18
|
private client;
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(lamdaURL?: string);
|
|
20
20
|
click(selector: Partial<Selector>, corner?: Corner): Promise<import("./rpc/types").Boolean>;
|
|
21
21
|
clickEx(keys: string, keyboard: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9", Partial<Selector>>): Promise<void>;
|
|
22
22
|
waitFor(selector: Partial<Selector>, timeout?: number): Promise<true>;
|
package/dist/main.js
CHANGED
|
@@ -20,12 +20,12 @@ const services_1 = require("./rpc/services");
|
|
|
20
20
|
class Device {
|
|
21
21
|
channel;
|
|
22
22
|
client;
|
|
23
|
-
constructor(
|
|
24
|
-
const address =
|
|
23
|
+
constructor(lamdaURL = process.env.LAMDA_URL || "http://127.0.0.1:65000") {
|
|
24
|
+
const address = new URL(lamdaURL);
|
|
25
25
|
const credentials = nice_grpc_1.ChannelCredentials.createInsecure();
|
|
26
26
|
this.client = (0, nice_grpc_1.createClientFactory)()
|
|
27
27
|
.use((0, remoteException_Interceptor_1.RemoteExceptionInterceptor)());
|
|
28
|
-
this.channel = (0, nice_grpc_1.createChannel)(address, credentials, {
|
|
28
|
+
this.channel = (0, nice_grpc_1.createChannel)(address.host, credentials, {
|
|
29
29
|
["grpc.max_send_message_length"]: 64 * 1024 * 1024,
|
|
30
30
|
["grpc.max_receive_message_length"]: 128 * 1024 * 1024,
|
|
31
31
|
["grpc.keepalive_time_ms"]: 60 * 1000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekhein/lamda-node-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"author": "ekhein",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/main.js",
|
|
@@ -26,5 +26,8 @@
|
|
|
26
26
|
"ts-proto": "^2.7.0",
|
|
27
27
|
"tsx": "^4.19.4",
|
|
28
28
|
"typescript": "^5.8.3"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
29
32
|
}
|
|
30
33
|
}
|