@ledgerhq/hw-transport-webhid 6.9.1-taproot.0 → 6.19.0
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 +22 -22
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Allows to communicate with Ledger Hardware Wallets.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**\[Web]** **(WebHID)** – WebHID [check browser support](https://caniuse.com/webhid).
|
|
11
11
|
|
|
12
12
|
### FAQ: "DOM Exception" is triggered when creating the transport
|
|
13
13
|
|
|
@@ -27,20 +27,20 @@ WebUSB is currently only supported on Google Chrome / Chromium DEV version and b
|
|
|
27
27
|
|
|
28
28
|
#### Table of Contents
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
* [TransportWebHID](#transportwebhid)
|
|
31
|
+
* [Parameters](#parameters)
|
|
32
|
+
* [Examples](#examples)
|
|
33
|
+
* [close](#close)
|
|
34
|
+
* [exchange](#exchange)
|
|
35
|
+
* [Parameters](#parameters-1)
|
|
36
|
+
* [isSupported](#issupported)
|
|
37
|
+
* [list](#list)
|
|
38
|
+
* [listen](#listen)
|
|
39
|
+
* [Parameters](#parameters-2)
|
|
40
|
+
* [request](#request)
|
|
41
|
+
* [openConnected](#openconnected)
|
|
42
|
+
* [open](#open)
|
|
43
|
+
* [Parameters](#parameters-3)
|
|
44
44
|
|
|
45
45
|
### TransportWebHID
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@ WebHID Transport implementation
|
|
|
50
50
|
|
|
51
51
|
#### Parameters
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
* `device` **HIDDevice**
|
|
54
54
|
|
|
55
55
|
#### Examples
|
|
56
56
|
|
|
@@ -64,7 +64,7 @@ TransportWebHID.create().then(transport => ...)
|
|
|
64
64
|
|
|
65
65
|
Release the transport device
|
|
66
66
|
|
|
67
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
67
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<void>**
|
|
68
68
|
|
|
69
69
|
#### exchange
|
|
70
70
|
|
|
@@ -72,9 +72,9 @@ Exchange with the device using APDU protocol.
|
|
|
72
72
|
|
|
73
73
|
##### Parameters
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
* `apdu` **[Buffer](https://nodejs.org/api/buffer.html)**
|
|
76
76
|
|
|
77
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
77
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Buffer](https://nodejs.org/api/buffer.html)>** a promise of apdu response
|
|
78
78
|
|
|
79
79
|
#### isSupported
|
|
80
80
|
|
|
@@ -93,7 +93,7 @@ Important: it must be called in the context of a UI click!
|
|
|
93
93
|
|
|
94
94
|
##### Parameters
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
* `observer` **Observer\<DescriptorEvent\<HIDDevice>>**
|
|
97
97
|
|
|
98
98
|
Returns **Subscription**
|
|
99
99
|
|
|
@@ -103,7 +103,7 @@ Similar to create() except it will always display the device permission (even if
|
|
|
103
103
|
|
|
104
104
|
#### openConnected
|
|
105
105
|
|
|
106
|
-
Similar to create() except it will never display the device permission (it returns a Promise
|
|
106
|
+
Similar to create() except it will never display the device permission (it returns a Promise\<?Transport>, null if it fails to find a device).
|
|
107
107
|
|
|
108
108
|
#### open
|
|
109
109
|
|
|
@@ -111,4 +111,4 @@ Create a Ledger transport with a HIDDevice
|
|
|
111
111
|
|
|
112
112
|
##### Parameters
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
* `device` **HIDDevice**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/hw-transport-webhid",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.19.0",
|
|
4
4
|
"description": "Ledger Hardware Wallet WebHID implementation of the communication layer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"types": "lib/TransportWebHID.d.ts",
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ledgerhq/devices": "^6.
|
|
30
|
-
"@ledgerhq/errors": "^6.
|
|
31
|
-
"@ledgerhq/hw-transport": "^6.
|
|
32
|
-
"@ledgerhq/logs": "^6.
|
|
29
|
+
"@ledgerhq/devices": "^6.19.0",
|
|
30
|
+
"@ledgerhq/errors": "^6.10.0",
|
|
31
|
+
"@ledgerhq/hw-transport": "^6.19.0",
|
|
32
|
+
"@ledgerhq/logs": "^6.10.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/w3c-web-hid": "^1.0.2"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"watch": "bash ../../script/watch.sh",
|
|
42
42
|
"doc": "bash ../../script/doc.sh"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "37f11a943eabfca3e506deb2f494d3d886731292"
|
|
45
45
|
}
|