@ledgerhq/hw-transport-webauthn
Advanced tools
Comparing version 5.0.0-babel7.1 to 5.0.0-babel7.3
@@ -98,19 +98,20 @@ "use strict"; | ||
TransportWebAuthn.listen = observer => { | ||
if (!navigator.credentials) { | ||
observer.error(new _errors.TransportError("WebAuthn not supported", "NotSupported")); | ||
return { | ||
unsubscribe: () => {} | ||
}; | ||
} | ||
setTimeout(() => { | ||
if (!navigator.credentials) { | ||
observer.error(new _errors.TransportError("WebAuthn not supported", "NotSupported")); | ||
return { | ||
unsubscribe: () => {} | ||
}; | ||
} | ||
observer.next({ | ||
type: "add", | ||
descriptor: null | ||
}); | ||
observer.complete(); | ||
observer.next({ | ||
type: "add", | ||
descriptor: null | ||
}); | ||
observer.complete(); | ||
}, 0); | ||
return { | ||
unsubscribe: () => {} | ||
}; | ||
if (sub) sub.unsubscribe(); | ||
}; | ||
//# sourceMappingURL=TransportWebAuthn.js.map |
{ | ||
"name": "@ledgerhq/hw-transport-webauthn", | ||
"version": "5.0.0-babel7.1+8dc0cb0", | ||
"version": "5.0.0-babel7.3+8372cbd", | ||
"description": "Ledger Hardware Wallet Web implementation of the communication layer, using WebAuthN api", | ||
@@ -29,6 +29,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/devices": "^5.0.0-babel7.1+8dc0cb0", | ||
"@ledgerhq/errors": "^5.0.0-babel7.1+8dc0cb0", | ||
"@ledgerhq/hw-transport": "^5.0.0-babel7.1+8dc0cb0", | ||
"@ledgerhq/logs": "^5.0.0-babel7.1+8dc0cb0" | ||
"@ledgerhq/devices": "^5.0.0-babel7.3+8372cbd", | ||
"@ledgerhq/errors": "^5.0.0-babel7.3+8372cbd", | ||
"@ledgerhq/hw-transport": "^5.0.0-babel7.3+8372cbd", | ||
"@ledgerhq/logs": "^5.0.0-babel7.3+8372cbd" | ||
}, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "8dc0cb0b8648b437f2a9227d0232de772369b128" | ||
"gitHead": "8372cbd7a20effd14e4885a69877fd35fc0fde06" | ||
} |
@@ -61,12 +61,13 @@ //@flow | ||
static listen = (observer: *) => { | ||
if (!navigator.credentials) { | ||
observer.error( | ||
new TransportError("WebAuthn not supported", "NotSupported") | ||
); | ||
return { unsubscribe: () => {} }; | ||
} | ||
observer.next({ type: "add", descriptor: null }); | ||
observer.complete(); | ||
return { unsubscribe: () => {} }; if (sub) sub.unsubscribe(); | ||
setTimeout(() => { | ||
if (!navigator.credentials) { | ||
observer.error( | ||
new TransportError("WebAuthn not supported", "NotSupported") | ||
); | ||
return { unsubscribe: () => {} }; | ||
} | ||
observer.next({ type: "add", descriptor: null }); | ||
observer.complete(); | ||
}, 0); | ||
return { unsubscribe: () => {} }; | ||
}; | ||
@@ -73,0 +74,0 @@ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
28568
191