@ledgerhq/hw-transport-node-hid 6.7.0 → 6.11.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/README.md +18 -18
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Allows to communicate with Ledger Hardware Wallets.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**\[Node]**/Electron **(HID)** – uses `node-hid` and `usb`.
|
|
11
11
|
|
|
12
12
|
## API
|
|
13
13
|
|
|
@@ -15,19 +15,19 @@ Allows to communicate with Ledger Hardware Wallets.
|
|
|
15
15
|
|
|
16
16
|
#### Table of Contents
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
* [TransportNodeHid](#transportnodehid)
|
|
19
|
+
* [Examples](#examples)
|
|
20
|
+
* [isSupported](#issupported)
|
|
21
|
+
* [list](#list)
|
|
22
|
+
* [setListenDevicesDebounce](#setlistendevicesdebounce)
|
|
23
|
+
* [Parameters](#parameters)
|
|
24
|
+
* [setListenDevicesPollingSkip](#setlistendevicespollingskip)
|
|
25
|
+
* [Parameters](#parameters-1)
|
|
26
|
+
* [setListenDevicesDebug](#setlistendevicesdebug)
|
|
27
|
+
* [listen](#listen)
|
|
28
|
+
* [Parameters](#parameters-2)
|
|
29
|
+
* [open](#open)
|
|
30
|
+
* [Parameters](#parameters-3)
|
|
31
31
|
|
|
32
32
|
### TransportNodeHid
|
|
33
33
|
|
|
@@ -51,13 +51,13 @@ TransportNodeHid.create().then(transport => ...)
|
|
|
51
51
|
|
|
52
52
|
##### Parameters
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
* `delay` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
55
55
|
|
|
56
56
|
#### setListenDevicesPollingSkip
|
|
57
57
|
|
|
58
58
|
##### Parameters
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
* `conditionToSkip` **function (): [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
61
61
|
|
|
62
62
|
#### setListenDevicesDebug
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ TransportNodeHid.create().then(transport => ...)
|
|
|
65
65
|
|
|
66
66
|
##### Parameters
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
* `observer` **Observer\<DescriptorEvent<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>>**
|
|
69
69
|
|
|
70
70
|
Returns **Subscription**
|
|
71
71
|
|
|
@@ -75,4 +75,4 @@ if path="" is not provided, the library will take the first device
|
|
|
75
75
|
|
|
76
76
|
##### Parameters
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
* `path` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/hw-transport-node-hid",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.2",
|
|
4
4
|
"description": "Ledger Hardware Wallet Node implementation of the communication layer, using node-hid",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"types": "lib/TransportNodeHid.d.ts",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ledgerhq/devices": "^6.
|
|
31
|
-
"@ledgerhq/errors": "^6.
|
|
32
|
-
"@ledgerhq/hw-transport": "^6.
|
|
33
|
-
"@ledgerhq/hw-transport-node-hid-noevents": "^6.
|
|
34
|
-
"@ledgerhq/logs": "^6.
|
|
30
|
+
"@ledgerhq/devices": "^6.11.2",
|
|
31
|
+
"@ledgerhq/errors": "^6.10.0",
|
|
32
|
+
"@ledgerhq/hw-transport": "^6.11.2",
|
|
33
|
+
"@ledgerhq/hw-transport-node-hid-noevents": "^6.11.2",
|
|
34
|
+
"@ledgerhq/logs": "^6.10.0",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"node-hid": "2.1.1",
|
|
37
37
|
"usb": "^1.7.0"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"watch": "bash ../../script/watch.sh",
|
|
43
43
|
"doc": "bash ../../script/doc.sh"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d243550a31bd781924fc301492320b16212c3dbe"
|
|
46
46
|
}
|