Bump deps (#316)

* Bump deps

* Remove unused deps

* Bump berry

* Bump berry
This commit is contained in:
Jaco Greeff
2020-05-11 11:43:05 +02:00
committed by GitHub
parent e84758440f
commit 435a9b3cd4
19 changed files with 3287 additions and 2986 deletions
+2 -1
View File
@@ -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(),