mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 22:41:04 +00:00
Swap with USB libs (#400)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/ledger-transports",
|
||||
"version": "0.62.2-8",
|
||||
"repository": "https://github.com/polkadot-js/ui.git",
|
||||
"repository": "github:polkadot-js/ui",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -19,6 +19,6 @@
|
||||
"@types/ledgerhq__hw-transport-webusb": "^4.70.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@ledgerhq/hw-transport-node-hid": "^5.28.0"
|
||||
"@ledgerhq/hw-transport-node-hid-singleton": "^5.28.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
||||
declare module '@ledgerhq/hw-transport-node-hid-noevents' {
|
||||
import Transport from '@ledgerhq/hw-transport';
|
||||
|
||||
export default class TransportNodeHidNoEvents extends Transport<string> {}
|
||||
export function getDevices(): Array<unknown>
|
||||
}
|
||||
|
||||
declare module '@ledgerhq/hw-transport-node-hid-singleton' {
|
||||
import TransportNodeHidNoEvents, { getDevices } from '@ledgerhq/hw-transport-node-hid-noevents';
|
||||
|
||||
export default class TransportNodeHid extends TransportNodeHidNoEvents { }
|
||||
}
|
||||
Reference in New Issue
Block a user