@onekeyfe/hd-transport-electron 1.2.2-alpha.100 → 1.2.2-alpha.101

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.
@@ -1,2 +1,2 @@
1
1
  export const NOBLE_BLE_TARGETED_SCAN_TIMEOUT_MS = 5_000;
2
- export const NOBLE_BLE_CONNECTION_TIMEOUT_MS = 10_000;
2
+ export const NOBLE_BLE_SUBSCRIBE_TIMEOUT_MS = 10_000;
@@ -10,6 +10,19 @@ export interface NobleBleWriteOptions {
10
10
  pacingDelayMs?: number;
11
11
  }
12
12
 
13
+ export type NobleBleIpcErrorPayload = {
14
+ name: string;
15
+ message: string;
16
+ errorCode: number;
17
+ params?: unknown;
18
+ };
19
+
20
+ export type NobleBleIpcErrorResponse = {
21
+ type: 'NobleBleIpcError';
22
+ success: false;
23
+ error: NobleBleIpcErrorPayload;
24
+ };
25
+
13
26
  export interface NobleBleAPI {
14
27
  enumerate: () => Promise<{ id: string; name: string }[]>;
15
28
  getDevice: (uuid: string) => Promise<{ id: string; name: string; mtu?: number } | null>;
@@ -39,6 +39,7 @@ export interface NobleModule {
39
39
  export interface Logger {
40
40
  info(message: string, ...args: any[]): void;
41
41
  debug(message: string, ...args: any[]): void;
42
+ warn(message: string, ...args: any[]): void;
42
43
  error(message: string, ...args: any[]): void;
43
44
  }
44
45