@ledgerhq/hw-transport-u2f
Advanced tools
Comparing version 1.1.0-beta.e6f42082 to 1.1.0
@@ -150,6 +150,6 @@ "use strict"; | ||
TransportU2F.discover = function (cb) { | ||
TransportU2F.discover = function (observer) { | ||
var unsubscribed = false; | ||
(0, _u2fApi.isSupported)().then(function (supported) { | ||
if (!unsubscribed && supported) cb(null); | ||
if (!unsubscribed && supported) observer.next(null); | ||
}); | ||
@@ -156,0 +156,0 @@ return { |
{ | ||
"name": "@ledgerhq/hw-transport-u2f", | ||
"version": "1.1.0-beta.e6f42082", | ||
"version": "1.1.0", | ||
"description": "Ledger Hardware Wallet Web implementation of the communication layer, using U2F api", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^1.1.0-beta.e6f42082", | ||
"@ledgerhq/hw-transport": "^1.1.0", | ||
"u2f-api": "^0.2.7" | ||
@@ -32,0 +32,0 @@ }, |
@@ -74,6 +74,6 @@ /******************************************************************************** | ||
static discover = cb => { | ||
static discover = (observer: *) => { | ||
let unsubscribed = false; | ||
isSupported().then(supported => { | ||
if (!unsubscribed && supported) cb(null); | ||
if (!unsubscribed && supported) observer.next(null); | ||
}); | ||
@@ -80,0 +80,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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
39066
0
1