@ledgerhq/hw-transport-u2f
Advanced tools
Comparing version 1.2.0-beta.5f7fbb68 to 1.2.0-beta.6cd06d6f
@@ -98,6 +98,6 @@ "use strict"; | ||
TransportU2F.discover = observer => { | ||
TransportU2F.listen = observer => { | ||
let unsubscribed = false; | ||
(0, _u2fApi.isSupported)().then(supported => { | ||
if (!unsubscribed && supported) observer.next(null); | ||
if (!unsubscribed && supported) observer.next({ type: "add", descriptor: null }); | ||
}); | ||
@@ -104,0 +104,0 @@ return { |
{ | ||
"name": "@ledgerhq/hw-transport-u2f", | ||
"version": "1.2.0-beta.5f7fbb68", | ||
"version": "1.2.0-beta.6cd06d6f", | ||
"description": "Ledger Hardware Wallet Web implementation of the communication layer, using U2F api", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^1.2.0-beta.5f7fbb68", | ||
"@ledgerhq/hw-transport": "^1.2.0-beta.6cd06d6f", | ||
"u2f-api": "^0.2.7" | ||
@@ -32,0 +32,0 @@ }, |
@@ -54,6 +54,7 @@ /******************************************************************************** | ||
static discover = (observer: *) => { | ||
static listen = (observer: *) => { | ||
let unsubscribed = false; | ||
isSupported().then(supported => { | ||
if (!unsubscribed && supported) observer.next(null); | ||
if (!unsubscribed && supported) | ||
observer.next({ type: "add", descriptor: null }); | ||
}); | ||
@@ -60,0 +61,0 @@ return { |
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
27106
452