@onekeyfe/hwk-trezor-connector-electron-ble 1.2.1 → 1.2.2-alpha.1
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/{chunk-JRFR54HU.mjs → chunk-CFZTAWFZ.mjs} +1 -1
- package/dist/constants.d.mts +36 -0
- package/dist/constants.d.ts +36 -0
- package/dist/constants.js +62 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +17 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/{constants-DZHtU8H6.d.mts → desktop-api-DDNonbNW.d.mts} +1 -32
- package/dist/{constants-DZHtU8H6.d.ts → desktop-api-DDNonbNW.d.ts} +1 -32
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/main.d.mts +3 -2
- package/dist/main.d.ts +3 -2
- package/dist/main.mjs +1 -1
- package/package.json +15 -5
- /package/dist/{chunk-JRFR54HU.mjs.map → chunk-CFZTAWFZ.mjs.map} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IPC channel names exchanged between renderer and main process.
|
|
3
|
+
* Namespaced under `$onekey-trezor-ble-…` to avoid clashing with the
|
|
4
|
+
* existing OneKey BLE handler (`$onekey-noble-ble-…`) when both run in
|
|
5
|
+
* the same Electron app.
|
|
6
|
+
*/
|
|
7
|
+
declare const TREZOR_BLE_CHANNELS: {
|
|
8
|
+
readonly scan: "$onekey-trezor-ble-scan";
|
|
9
|
+
readonly stopScan: "$onekey-trezor-ble-stop-scan";
|
|
10
|
+
readonly connect: "$onekey-trezor-ble-connect";
|
|
11
|
+
readonly disconnect: "$onekey-trezor-ble-disconnect";
|
|
12
|
+
readonly write: "$onekey-trezor-ble-write";
|
|
13
|
+
readonly subscribe: "$onekey-trezor-ble-subscribe";
|
|
14
|
+
readonly unsubscribe: "$onekey-trezor-ble-unsubscribe";
|
|
15
|
+
readonly availability: "$onekey-trezor-ble-availability";
|
|
16
|
+
readonly getDevice: "$onekey-trezor-ble-get-device";
|
|
17
|
+
readonly readRssi: "$onekey-trezor-ble-read-rssi";
|
|
18
|
+
readonly cancelPairing: "$onekey-trezor-ble-cancel-pairing";
|
|
19
|
+
/** push event: main → renderer with assembled BLE notification payload */
|
|
20
|
+
readonly notification: "$onekey-trezor-ble-notification";
|
|
21
|
+
/** push event: main → renderer when device disconnects unexpectedly */
|
|
22
|
+
readonly disconnected: "$onekey-trezor-ble-disconnected";
|
|
23
|
+
};
|
|
24
|
+
type TrezorBleChannel = (typeof TREZOR_BLE_CHANNELS)[keyof typeof TREZOR_BLE_CHANNELS];
|
|
25
|
+
/** Reconnect scan window for `connect(id)`. */
|
|
26
|
+
declare const TREZOR_BLE_SCAN_DURATION_MS = 5000;
|
|
27
|
+
/** Continuous scan auto-stops this long after the last poll (reset, not accumulated). */
|
|
28
|
+
declare const TREZOR_BLE_SCAN_IDLE_STOP_MS = 10000;
|
|
29
|
+
/** Drop a device from the snapshot if it hasn't re-advertised within this window. */
|
|
30
|
+
declare const TREZOR_BLE_DEVICE_TTL_MS = 5000;
|
|
31
|
+
/** Time we'll wait for noble to reach `poweredOn` before failing init. */
|
|
32
|
+
declare const TREZOR_BLE_POWER_ON_TIMEOUT_MS = 10000;
|
|
33
|
+
/** Inter-chunk delay during write, matches OneKey's `UNIFIED_WRITE_DELAY`. */
|
|
34
|
+
declare const TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;
|
|
35
|
+
|
|
36
|
+
export { TREZOR_BLE_CHANNELS, TREZOR_BLE_DEVICE_TTL_MS, TREZOR_BLE_POWER_ON_TIMEOUT_MS, TREZOR_BLE_SCAN_DURATION_MS, TREZOR_BLE_SCAN_IDLE_STOP_MS, TREZOR_BLE_WRITE_CHUNK_DELAY_MS, type TrezorBleChannel };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IPC channel names exchanged between renderer and main process.
|
|
3
|
+
* Namespaced under `$onekey-trezor-ble-…` to avoid clashing with the
|
|
4
|
+
* existing OneKey BLE handler (`$onekey-noble-ble-…`) when both run in
|
|
5
|
+
* the same Electron app.
|
|
6
|
+
*/
|
|
7
|
+
declare const TREZOR_BLE_CHANNELS: {
|
|
8
|
+
readonly scan: "$onekey-trezor-ble-scan";
|
|
9
|
+
readonly stopScan: "$onekey-trezor-ble-stop-scan";
|
|
10
|
+
readonly connect: "$onekey-trezor-ble-connect";
|
|
11
|
+
readonly disconnect: "$onekey-trezor-ble-disconnect";
|
|
12
|
+
readonly write: "$onekey-trezor-ble-write";
|
|
13
|
+
readonly subscribe: "$onekey-trezor-ble-subscribe";
|
|
14
|
+
readonly unsubscribe: "$onekey-trezor-ble-unsubscribe";
|
|
15
|
+
readonly availability: "$onekey-trezor-ble-availability";
|
|
16
|
+
readonly getDevice: "$onekey-trezor-ble-get-device";
|
|
17
|
+
readonly readRssi: "$onekey-trezor-ble-read-rssi";
|
|
18
|
+
readonly cancelPairing: "$onekey-trezor-ble-cancel-pairing";
|
|
19
|
+
/** push event: main → renderer with assembled BLE notification payload */
|
|
20
|
+
readonly notification: "$onekey-trezor-ble-notification";
|
|
21
|
+
/** push event: main → renderer when device disconnects unexpectedly */
|
|
22
|
+
readonly disconnected: "$onekey-trezor-ble-disconnected";
|
|
23
|
+
};
|
|
24
|
+
type TrezorBleChannel = (typeof TREZOR_BLE_CHANNELS)[keyof typeof TREZOR_BLE_CHANNELS];
|
|
25
|
+
/** Reconnect scan window for `connect(id)`. */
|
|
26
|
+
declare const TREZOR_BLE_SCAN_DURATION_MS = 5000;
|
|
27
|
+
/** Continuous scan auto-stops this long after the last poll (reset, not accumulated). */
|
|
28
|
+
declare const TREZOR_BLE_SCAN_IDLE_STOP_MS = 10000;
|
|
29
|
+
/** Drop a device from the snapshot if it hasn't re-advertised within this window. */
|
|
30
|
+
declare const TREZOR_BLE_DEVICE_TTL_MS = 5000;
|
|
31
|
+
/** Time we'll wait for noble to reach `poweredOn` before failing init. */
|
|
32
|
+
declare const TREZOR_BLE_POWER_ON_TIMEOUT_MS = 10000;
|
|
33
|
+
/** Inter-chunk delay during write, matches OneKey's `UNIFIED_WRITE_DELAY`. */
|
|
34
|
+
declare const TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;
|
|
35
|
+
|
|
36
|
+
export { TREZOR_BLE_CHANNELS, TREZOR_BLE_DEVICE_TTL_MS, TREZOR_BLE_POWER_ON_TIMEOUT_MS, TREZOR_BLE_SCAN_DURATION_MS, TREZOR_BLE_SCAN_IDLE_STOP_MS, TREZOR_BLE_WRITE_CHUNK_DELAY_MS, type TrezorBleChannel };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/constants.ts
|
|
21
|
+
var constants_exports = {};
|
|
22
|
+
__export(constants_exports, {
|
|
23
|
+
TREZOR_BLE_CHANNELS: () => TREZOR_BLE_CHANNELS,
|
|
24
|
+
TREZOR_BLE_DEVICE_TTL_MS: () => TREZOR_BLE_DEVICE_TTL_MS,
|
|
25
|
+
TREZOR_BLE_POWER_ON_TIMEOUT_MS: () => TREZOR_BLE_POWER_ON_TIMEOUT_MS,
|
|
26
|
+
TREZOR_BLE_SCAN_DURATION_MS: () => TREZOR_BLE_SCAN_DURATION_MS,
|
|
27
|
+
TREZOR_BLE_SCAN_IDLE_STOP_MS: () => TREZOR_BLE_SCAN_IDLE_STOP_MS,
|
|
28
|
+
TREZOR_BLE_WRITE_CHUNK_DELAY_MS: () => TREZOR_BLE_WRITE_CHUNK_DELAY_MS
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(constants_exports);
|
|
31
|
+
var TREZOR_BLE_CHANNELS = {
|
|
32
|
+
scan: "$onekey-trezor-ble-scan",
|
|
33
|
+
stopScan: "$onekey-trezor-ble-stop-scan",
|
|
34
|
+
connect: "$onekey-trezor-ble-connect",
|
|
35
|
+
disconnect: "$onekey-trezor-ble-disconnect",
|
|
36
|
+
write: "$onekey-trezor-ble-write",
|
|
37
|
+
subscribe: "$onekey-trezor-ble-subscribe",
|
|
38
|
+
unsubscribe: "$onekey-trezor-ble-unsubscribe",
|
|
39
|
+
availability: "$onekey-trezor-ble-availability",
|
|
40
|
+
getDevice: "$onekey-trezor-ble-get-device",
|
|
41
|
+
readRssi: "$onekey-trezor-ble-read-rssi",
|
|
42
|
+
cancelPairing: "$onekey-trezor-ble-cancel-pairing",
|
|
43
|
+
/** push event: main → renderer with assembled BLE notification payload */
|
|
44
|
+
notification: "$onekey-trezor-ble-notification",
|
|
45
|
+
/** push event: main → renderer when device disconnects unexpectedly */
|
|
46
|
+
disconnected: "$onekey-trezor-ble-disconnected"
|
|
47
|
+
};
|
|
48
|
+
var TREZOR_BLE_SCAN_DURATION_MS = 5e3;
|
|
49
|
+
var TREZOR_BLE_SCAN_IDLE_STOP_MS = 1e4;
|
|
50
|
+
var TREZOR_BLE_DEVICE_TTL_MS = 5e3;
|
|
51
|
+
var TREZOR_BLE_POWER_ON_TIMEOUT_MS = 1e4;
|
|
52
|
+
var TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
TREZOR_BLE_CHANNELS,
|
|
56
|
+
TREZOR_BLE_DEVICE_TTL_MS,
|
|
57
|
+
TREZOR_BLE_POWER_ON_TIMEOUT_MS,
|
|
58
|
+
TREZOR_BLE_SCAN_DURATION_MS,
|
|
59
|
+
TREZOR_BLE_SCAN_IDLE_STOP_MS,
|
|
60
|
+
TREZOR_BLE_WRITE_CHUNK_DELAY_MS
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/constants.ts"],"sourcesContent":["/**\n * IPC channel names exchanged between renderer and main process.\n * Namespaced under `$onekey-trezor-ble-…` to avoid clashing with the\n * existing OneKey BLE handler (`$onekey-noble-ble-…`) when both run in\n * the same Electron app.\n */\nexport const TREZOR_BLE_CHANNELS = {\n scan: '$onekey-trezor-ble-scan',\n stopScan: '$onekey-trezor-ble-stop-scan',\n connect: '$onekey-trezor-ble-connect',\n disconnect: '$onekey-trezor-ble-disconnect',\n write: '$onekey-trezor-ble-write',\n subscribe: '$onekey-trezor-ble-subscribe',\n unsubscribe: '$onekey-trezor-ble-unsubscribe',\n availability: '$onekey-trezor-ble-availability',\n getDevice: '$onekey-trezor-ble-get-device',\n readRssi: '$onekey-trezor-ble-read-rssi',\n cancelPairing: '$onekey-trezor-ble-cancel-pairing',\n /** push event: main → renderer with assembled BLE notification payload */\n notification: '$onekey-trezor-ble-notification',\n /** push event: main → renderer when device disconnects unexpectedly */\n disconnected: '$onekey-trezor-ble-disconnected',\n} as const;\n\nexport type TrezorBleChannel = (typeof TREZOR_BLE_CHANNELS)[keyof typeof TREZOR_BLE_CHANNELS];\n\n/** Reconnect scan window for `connect(id)`. */\nexport const TREZOR_BLE_SCAN_DURATION_MS = 5_000;\n\n/** Continuous scan auto-stops this long after the last poll (reset, not accumulated). */\nexport const TREZOR_BLE_SCAN_IDLE_STOP_MS = 10_000;\n\n/** Drop a device from the snapshot if it hasn't re-advertised within this window. */\nexport const TREZOR_BLE_DEVICE_TTL_MS = 5_000;\n\n/** Time we'll wait for noble to reach `poweredOn` before failing init. */\nexport const TREZOR_BLE_POWER_ON_TIMEOUT_MS = 10_000;\n\n/** Inter-chunk delay during write, matches OneKey's `UNIFIED_WRITE_DELAY`. */\nexport const TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,sBAAsB;AAAA,EACjC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,WAAW;AAAA,EACX,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA;AAAA,EAEf,cAAc;AAAA;AAAA,EAEd,cAAc;AAChB;AAKO,IAAM,8BAA8B;AAGpC,IAAM,+BAA+B;AAGrC,IAAM,2BAA2B;AAGjC,IAAM,iCAAiC;AAGvC,IAAM,kCAAkC;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TREZOR_BLE_CHANNELS,
|
|
3
|
+
TREZOR_BLE_DEVICE_TTL_MS,
|
|
4
|
+
TREZOR_BLE_POWER_ON_TIMEOUT_MS,
|
|
5
|
+
TREZOR_BLE_SCAN_DURATION_MS,
|
|
6
|
+
TREZOR_BLE_SCAN_IDLE_STOP_MS,
|
|
7
|
+
TREZOR_BLE_WRITE_CHUNK_DELAY_MS
|
|
8
|
+
} from "./chunk-CFZTAWFZ.mjs";
|
|
9
|
+
export {
|
|
10
|
+
TREZOR_BLE_CHANNELS,
|
|
11
|
+
TREZOR_BLE_DEVICE_TTL_MS,
|
|
12
|
+
TREZOR_BLE_POWER_ON_TIMEOUT_MS,
|
|
13
|
+
TREZOR_BLE_SCAN_DURATION_MS,
|
|
14
|
+
TREZOR_BLE_SCAN_IDLE_STOP_MS,
|
|
15
|
+
TREZOR_BLE_WRITE_CHUNK_DELAY_MS
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -74,35 +74,4 @@ interface TrezorBleApi {
|
|
|
74
74
|
onDeviceDisconnected(handler: (id: string) => void): () => void;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
* IPC channel names exchanged between renderer and main process.
|
|
79
|
-
* Namespaced under `$onekey-trezor-ble-…` to avoid clashing with the
|
|
80
|
-
* existing OneKey BLE handler (`$onekey-noble-ble-…`) when both run in
|
|
81
|
-
* the same Electron app.
|
|
82
|
-
*/
|
|
83
|
-
declare const TREZOR_BLE_CHANNELS: {
|
|
84
|
-
readonly scan: "$onekey-trezor-ble-scan";
|
|
85
|
-
readonly stopScan: "$onekey-trezor-ble-stop-scan";
|
|
86
|
-
readonly connect: "$onekey-trezor-ble-connect";
|
|
87
|
-
readonly disconnect: "$onekey-trezor-ble-disconnect";
|
|
88
|
-
readonly write: "$onekey-trezor-ble-write";
|
|
89
|
-
readonly subscribe: "$onekey-trezor-ble-subscribe";
|
|
90
|
-
readonly unsubscribe: "$onekey-trezor-ble-unsubscribe";
|
|
91
|
-
readonly availability: "$onekey-trezor-ble-availability";
|
|
92
|
-
readonly getDevice: "$onekey-trezor-ble-get-device";
|
|
93
|
-
readonly readRssi: "$onekey-trezor-ble-read-rssi";
|
|
94
|
-
readonly cancelPairing: "$onekey-trezor-ble-cancel-pairing";
|
|
95
|
-
/** push event: main → renderer with assembled BLE notification payload */
|
|
96
|
-
readonly notification: "$onekey-trezor-ble-notification";
|
|
97
|
-
/** push event: main → renderer when device disconnects unexpectedly */
|
|
98
|
-
readonly disconnected: "$onekey-trezor-ble-disconnected";
|
|
99
|
-
};
|
|
100
|
-
type TrezorBleChannel = (typeof TREZOR_BLE_CHANNELS)[keyof typeof TREZOR_BLE_CHANNELS];
|
|
101
|
-
/** Reconnect scan window for `connect(id)`. */
|
|
102
|
-
declare const TREZOR_BLE_SCAN_DURATION_MS = 5000;
|
|
103
|
-
/** Time we'll wait for noble to reach `poweredOn` before failing init. */
|
|
104
|
-
declare const TREZOR_BLE_POWER_ON_TIMEOUT_MS = 10000;
|
|
105
|
-
/** Inter-chunk delay during write, matches OneKey's `UNIFIED_WRITE_DELAY`. */
|
|
106
|
-
declare const TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;
|
|
107
|
-
|
|
108
|
-
export { type TrezorBleApi as T, type TrezorBleDeviceInfo as a, TREZOR_BLE_CHANNELS as b, TREZOR_BLE_POWER_ON_TIMEOUT_MS as c, TREZOR_BLE_SCAN_DURATION_MS as d, TREZOR_BLE_WRITE_CHUNK_DELAY_MS as e, type TrezorBleAvailability as f, type TrezorBleChannel as g };
|
|
77
|
+
export type { TrezorBleApi as T, TrezorBleDeviceInfo as a, TrezorBleAvailability as b };
|
|
@@ -74,35 +74,4 @@ interface TrezorBleApi {
|
|
|
74
74
|
onDeviceDisconnected(handler: (id: string) => void): () => void;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
* IPC channel names exchanged between renderer and main process.
|
|
79
|
-
* Namespaced under `$onekey-trezor-ble-…` to avoid clashing with the
|
|
80
|
-
* existing OneKey BLE handler (`$onekey-noble-ble-…`) when both run in
|
|
81
|
-
* the same Electron app.
|
|
82
|
-
*/
|
|
83
|
-
declare const TREZOR_BLE_CHANNELS: {
|
|
84
|
-
readonly scan: "$onekey-trezor-ble-scan";
|
|
85
|
-
readonly stopScan: "$onekey-trezor-ble-stop-scan";
|
|
86
|
-
readonly connect: "$onekey-trezor-ble-connect";
|
|
87
|
-
readonly disconnect: "$onekey-trezor-ble-disconnect";
|
|
88
|
-
readonly write: "$onekey-trezor-ble-write";
|
|
89
|
-
readonly subscribe: "$onekey-trezor-ble-subscribe";
|
|
90
|
-
readonly unsubscribe: "$onekey-trezor-ble-unsubscribe";
|
|
91
|
-
readonly availability: "$onekey-trezor-ble-availability";
|
|
92
|
-
readonly getDevice: "$onekey-trezor-ble-get-device";
|
|
93
|
-
readonly readRssi: "$onekey-trezor-ble-read-rssi";
|
|
94
|
-
readonly cancelPairing: "$onekey-trezor-ble-cancel-pairing";
|
|
95
|
-
/** push event: main → renderer with assembled BLE notification payload */
|
|
96
|
-
readonly notification: "$onekey-trezor-ble-notification";
|
|
97
|
-
/** push event: main → renderer when device disconnects unexpectedly */
|
|
98
|
-
readonly disconnected: "$onekey-trezor-ble-disconnected";
|
|
99
|
-
};
|
|
100
|
-
type TrezorBleChannel = (typeof TREZOR_BLE_CHANNELS)[keyof typeof TREZOR_BLE_CHANNELS];
|
|
101
|
-
/** Reconnect scan window for `connect(id)`. */
|
|
102
|
-
declare const TREZOR_BLE_SCAN_DURATION_MS = 5000;
|
|
103
|
-
/** Time we'll wait for noble to reach `poweredOn` before failing init. */
|
|
104
|
-
declare const TREZOR_BLE_POWER_ON_TIMEOUT_MS = 10000;
|
|
105
|
-
/** Inter-chunk delay during write, matches OneKey's `UNIFIED_WRITE_DELAY`. */
|
|
106
|
-
declare const TREZOR_BLE_WRITE_CHUNK_DELAY_MS = 5;
|
|
107
|
-
|
|
108
|
-
export { type TrezorBleApi as T, type TrezorBleDeviceInfo as a, TREZOR_BLE_CHANNELS as b, TREZOR_BLE_POWER_ON_TIMEOUT_MS as c, TREZOR_BLE_SCAN_DURATION_MS as d, TREZOR_BLE_WRITE_CHUNK_DELAY_MS as e, type TrezorBleAvailability as f, type TrezorBleChannel as g };
|
|
77
|
+
export type { TrezorBleApi as T, TrezorBleDeviceInfo as a, TrezorBleAvailability as b };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TrezorDebugLogger, TrezorConnectorBase, TrezorConnectorBaseOptions, TrezorConnectorByteTransport } from '@onekeyfe/hwk-trezor-connector';
|
|
2
|
-
import { T as TrezorBleApi, a as TrezorBleDeviceInfo } from './
|
|
3
|
-
export { b as
|
|
2
|
+
import { T as TrezorBleApi, a as TrezorBleDeviceInfo } from './desktop-api-DDNonbNW.mjs';
|
|
3
|
+
export { b as TrezorBleAvailability } from './desktop-api-DDNonbNW.mjs';
|
|
4
4
|
import { ConnectorDevice } from '@onekeyfe/hwk-adapter-core';
|
|
5
|
+
export { TREZOR_BLE_CHANNELS, TREZOR_BLE_POWER_ON_TIMEOUT_MS, TREZOR_BLE_SCAN_DURATION_MS, TREZOR_BLE_WRITE_CHUNK_DELAY_MS, TrezorBleChannel } from './constants.mjs';
|
|
5
6
|
|
|
6
7
|
interface TrezorElectronBleTransportOptions {
|
|
7
8
|
/** The IPC bridge exposed by the main process (typically `window.desktopApi.trezorBle`). */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TrezorDebugLogger, TrezorConnectorBase, TrezorConnectorBaseOptions, TrezorConnectorByteTransport } from '@onekeyfe/hwk-trezor-connector';
|
|
2
|
-
import { T as TrezorBleApi, a as TrezorBleDeviceInfo } from './
|
|
3
|
-
export { b as
|
|
2
|
+
import { T as TrezorBleApi, a as TrezorBleDeviceInfo } from './desktop-api-DDNonbNW.js';
|
|
3
|
+
export { b as TrezorBleAvailability } from './desktop-api-DDNonbNW.js';
|
|
4
4
|
import { ConnectorDevice } from '@onekeyfe/hwk-adapter-core';
|
|
5
|
+
export { TREZOR_BLE_CHANNELS, TREZOR_BLE_POWER_ON_TIMEOUT_MS, TREZOR_BLE_SCAN_DURATION_MS, TREZOR_BLE_WRITE_CHUNK_DELAY_MS, TrezorBleChannel } from './constants.js';
|
|
5
6
|
|
|
6
7
|
interface TrezorElectronBleTransportOptions {
|
|
7
8
|
/** The IPC bridge exposed by the main process (typically `window.desktopApi.trezorBle`). */
|
package/dist/index.mjs
CHANGED
package/dist/main.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TREZOR_BLE_UUIDS } from '@onekeyfe/hwk-trezor-adapter';
|
|
2
2
|
import { TrezorDebugLogger } from '@onekeyfe/hwk-trezor-connector';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b as TrezorBleAvailability, a as TrezorBleDeviceInfo } from './desktop-api-DDNonbNW.mjs';
|
|
4
|
+
export { T as TrezorBleApi } from './desktop-api-DDNonbNW.mjs';
|
|
5
|
+
export { TREZOR_BLE_CHANNELS } from './constants.mjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Subset of @stoprocent/noble we touch. We type as `any` to keep the package
|
package/dist/main.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TREZOR_BLE_UUIDS } from '@onekeyfe/hwk-trezor-adapter';
|
|
2
2
|
import { TrezorDebugLogger } from '@onekeyfe/hwk-trezor-connector';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b as TrezorBleAvailability, a as TrezorBleDeviceInfo } from './desktop-api-DDNonbNW.js';
|
|
4
|
+
export { T as TrezorBleApi } from './desktop-api-DDNonbNW.js';
|
|
5
|
+
export { TREZOR_BLE_CHANNELS } from './constants.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Subset of @stoprocent/noble we touch. We type as `any` to keep the package
|
package/dist/main.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hwk-trezor-connector-electron-ble",
|
|
3
|
-
"version": "1.2.1",
|
|
3
|
+
"version": "1.2.2-alpha.1",
|
|
4
4
|
"description": "IConnector implementation for Trezor hardware wallets via Electron BLE (noble in main process)",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
"types": "./dist/main.d.ts",
|
|
28
28
|
"default": "./dist/main.js"
|
|
29
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"./constants": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/constants.d.mts",
|
|
34
|
+
"default": "./dist/constants.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/constants.d.ts",
|
|
38
|
+
"default": "./dist/constants.js"
|
|
39
|
+
}
|
|
30
40
|
}
|
|
31
41
|
},
|
|
32
42
|
"files": [
|
|
@@ -58,9 +68,9 @@
|
|
|
58
68
|
"connector"
|
|
59
69
|
],
|
|
60
70
|
"dependencies": {
|
|
61
|
-
"@onekeyfe/hwk-adapter-core": "1.2.1",
|
|
62
|
-
"@onekeyfe/hwk-trezor-adapter": "1.2.1",
|
|
63
|
-
"@onekeyfe/hwk-trezor-connector": "1.2.1",
|
|
71
|
+
"@onekeyfe/hwk-adapter-core": "1.2.2-alpha.1",
|
|
72
|
+
"@onekeyfe/hwk-trezor-adapter": "1.2.2-alpha.1",
|
|
73
|
+
"@onekeyfe/hwk-trezor-connector": "1.2.2-alpha.1",
|
|
64
74
|
"buffer": "^6.0.3"
|
|
65
75
|
},
|
|
66
76
|
"peerDependencies": {
|
|
@@ -80,5 +90,5 @@
|
|
|
80
90
|
"tsup": "^8.0.0",
|
|
81
91
|
"typescript": "5.1.6"
|
|
82
92
|
},
|
|
83
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "66f45610d36e06a46ac82cd49a4b0e1a128f19d4"
|
|
84
94
|
}
|
|
File without changes
|