Browse Source

Using hw-transport-node-hid beta with usb devices detection

master
Thibaut Boustany 7 years ago
parent
commit
53372a1fe2
No known key found for this signature in database GPG Key ID: 32475B11A2B13EEC
  1. 2
      package.json
  2. 1
      src/commands/listenDevices.js
  3. 25
      yarn.lock

2
package.json

@ -36,7 +36,7 @@
"@ledgerhq/hw-app-eth": "^4.14.0",
"@ledgerhq/hw-app-xrp": "^4.13.0",
"@ledgerhq/hw-transport": "^4.13.0",
"@ledgerhq/hw-transport-node-hid": "^4.13.0",
"@ledgerhq/hw-transport-node-hid": "^4.22.0-beta.ae6f5c51",
"@ledgerhq/ledger-core": "2.0.0-rc.5",
"@ledgerhq/live-common": "3.0.0-beta.2",
"animated": "^0.2.2",

1
src/commands/listenDevices.js

@ -7,6 +7,7 @@ import CommNodeHid from '@ledgerhq/hw-transport-node-hid'
import { DEVICE_DISCONNECT_DEBOUNCE, LISTEN_DEVICES_POLLING_INTERVAL } from 'config/constants'
CommNodeHid.setListenDevicesPollingInterval(LISTEN_DEVICES_POLLING_INTERVAL)
CommNodeHid.setListenDevicesDebug(true)
const cmd = createCommand('listenDevices', () =>
Observable.create(o => {

25
yarn.lock

@ -1501,12 +1501,14 @@
"@ledgerhq/hw-transport" "^4.21.0"
bip32-path "0.4.2"
"@ledgerhq/hw-transport-node-hid@^4.13.0":
version "4.21.0"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-4.21.0.tgz#fffdae5314bb969473a763e59fe1dfdde3fd7aed"
"@ledgerhq/hw-transport-node-hid@^4.22.0-beta.ae6f5c51":
version "4.22.0-beta.ae6f5c51"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-4.22.0-beta.ae6f5c51.tgz#36f5515c98af437d41653e854a613c462e65d9e1"
dependencies:
"@ledgerhq/hw-transport" "^4.21.0"
"@ledgerhq/hw-transport" "^4.22.0-beta.ae6f5c51"
lodash "^4.17.10"
node-hid "^0.7.2"
usb "^1.3.2"
"@ledgerhq/hw-transport-node-hid@^4.7.6":
version "4.16.0"
@ -1527,6 +1529,12 @@
dependencies:
events "^2.0.0"
"@ledgerhq/hw-transport@^4.22.0-beta.ae6f5c51":
version "4.22.0-beta.ae6f5c51"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-4.22.0-beta.ae6f5c51.tgz#a9f17ff8fa792a19e01d82d72f14ff7f7a211209"
dependencies:
events "^2.0.0"
"@ledgerhq/ledger-core@2.0.0-rc.5":
version "2.0.0-rc.5"
resolved "https://registry.yarnpkg.com/@ledgerhq/ledger-core/-/ledger-core-2.0.0-rc.5.tgz#ec42f6c3cc265fc5ca82e01d27df38357642d3ed"
@ -9905,7 +9913,7 @@ mute-stream@0.0.7, mute-stream@~0.0.4:
version "0.0.7"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
nan@^2.10.0, nan@^2.2.1, nan@^2.6.2, nan@^2.9.2:
nan@^2.10.0, nan@^2.2.1, nan@^2.6.2, nan@^2.8.0, nan@^2.9.2:
version "2.10.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
@ -14352,6 +14360,13 @@ url@^0.11.0:
punycode "1.3.2"
querystring "0.2.0"
usb@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/usb/-/usb-1.3.2.tgz#4563a32323856e26c97dae374b34c66c3d83b5f4"
dependencies:
nan "^2.8.0"
node-pre-gyp "^0.10.0"
use@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544"

Loading…
Cancel
Save