mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-14 04:31:01 +00:00
Bump deps (#316)
* Bump deps * Remove unused deps * Bump berry * Bump berry
This commit is contained in:
@@ -29,7 +29,8 @@ export default class Ledger {
|
||||
#type: LedgerTypes;
|
||||
|
||||
constructor (type: LedgerTypes) {
|
||||
assert(['hid', 'u2f', 'webusb'].includes(type), `Unsupported transport ${type}`);
|
||||
// u2f is deprecated
|
||||
assert(['hid', 'webusb'].includes(type), `Unsupported transport ${type}`);
|
||||
|
||||
this.#type = type;
|
||||
}
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
import { TransportDef } from './types';
|
||||
|
||||
import Transport from '@ledgerhq/hw-transport';
|
||||
import LedgerU2F from '@ledgerhq/hw-transport-u2f';
|
||||
import LedgerWebUSB from '@ledgerhq/hw-transport-webusb';
|
||||
|
||||
const transports: TransportDef[] = [
|
||||
{
|
||||
create: (): Promise<Transport> =>
|
||||
LedgerU2F.create(),
|
||||
type: 'u2f'
|
||||
},
|
||||
// deprecated
|
||||
// import LedgerU2F from '@ledgerhq/hw-transport-u2f';
|
||||
// {
|
||||
// create: (): Promise<Transport> =>
|
||||
// LedgerU2F.create(),
|
||||
// type: 'u2f'
|
||||
// },
|
||||
{
|
||||
create: (): Promise<Transport> =>
|
||||
LedgerWebUSB.create(),
|
||||
|
||||
Reference in New Issue
Block a user