@ledgerhq/hw-transport-webusb
Advanced tools
Comparing version 5.13.1 to 5.15.0
{ | ||
"name": "@ledgerhq/hw-transport-webusb", | ||
"version": "5.13.1", | ||
"version": "5.15.0", | ||
"description": "Ledger Hardware Wallet WebUSB implementation of the communication layer", | ||
@@ -28,9 +28,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/devices": "^5.13.1", | ||
"@ledgerhq/errors": "^5.13.1", | ||
"@ledgerhq/hw-transport": "^5.13.1", | ||
"@ledgerhq/logs": "^5.13.1" | ||
"@ledgerhq/devices": "^5.15.0", | ||
"@ledgerhq/errors": "^5.15.0", | ||
"@ledgerhq/hw-transport": "^5.15.0", | ||
"@ledgerhq/logs": "^5.15.0" | ||
}, | ||
"devDependencies": { | ||
"flow-bin": "^0.123.0" | ||
"flow-bin": "^0.124.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
}, | ||
"gitHead": "7d2f04f2f3ffc3eb8e8399c8d970569e4fa38326" | ||
"gitHead": "819ae5151465d5980c75ff6a356afe1ff6731e11" | ||
} |
@@ -6,3 +6,3 @@ //@flow | ||
DescriptorEvent, | ||
Subscription | ||
Subscription, | ||
} from "@ledgerhq/hw-transport"; | ||
@@ -18,3 +18,3 @@ import hidFraming from "@ledgerhq/devices/lib/hid-framing"; | ||
DisconnectedDeviceDuringOperation, | ||
DisconnectedDevice | ||
DisconnectedDevice, | ||
} from "@ledgerhq/errors"; | ||
@@ -25,3 +25,3 @@ import { | ||
requestLedgerDevice, | ||
isSupported | ||
isSupported, | ||
} from "./webusb"; | ||
@@ -74,3 +74,3 @@ | ||
getFirstLedgerDevice().then( | ||
device => { | ||
(device) => { | ||
if (!unsubscribed) { | ||
@@ -82,3 +82,3 @@ const deviceModel = identifyUSBProductId(device.productId); | ||
}, | ||
error => { | ||
(error) => { | ||
if ( | ||
@@ -128,3 +128,3 @@ window.DOMException && | ||
const iface = device.configurations[0].interfaces.find(({ alternates }) => | ||
alternates.some(a => a.interfaceClass === 255) | ||
alternates.some((a) => a.interfaceClass === 255) | ||
); | ||
@@ -144,3 +144,3 @@ if (!iface) { | ||
const transport = new TransportWebUSB(device, interfaceNumber); | ||
const onDisconnect = e => { | ||
const onDisconnect = (e) => { | ||
if (device === e.device) { | ||
@@ -205,3 +205,3 @@ // $FlowFixMe | ||
return result; | ||
}).catch(e => { | ||
}).catch((e) => { | ||
if (e && e.message && e.message.includes("disconnected")) { | ||
@@ -208,0 +208,0 @@ this._emitDisconnect(e); |
@@ -15,3 +15,3 @@ // @flow | ||
const devices = await navigator.usb.getDevices(); | ||
return devices.filter(d => d.vendorId === ledgerUSBVendorId); | ||
return devices.filter((d) => d.vendorId === ledgerUSBVendorId); | ||
} | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84499
Updated@ledgerhq/devices@^5.15.0
Updated@ledgerhq/errors@^5.15.0
Updated@ledgerhq/logs@^5.15.0