@ledgerhq/hw-transport-webusb
Advanced tools
Comparing version 4.56.0 to 4.57.0
@@ -8,4 +8,2 @@ "use strict"; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var requestLedgerDevice = exports.requestLedgerDevice = function () { | ||
@@ -110,6 +108,6 @@ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | ||
var isSupported = exports.isSupported = function isSupported() { | ||
return Promise.resolve((typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === "object" && | ||
return Promise.resolve( | ||
// $FlowFixMe | ||
_typeof(navigator.usb) === "object"); | ||
!!navigator && !!navigator.usb && typeof navigator.usb.getDevices === "function"); | ||
}; | ||
//# sourceMappingURL=webusb.js.map |
{ | ||
"name": "@ledgerhq/hw-transport-webusb", | ||
"version": "4.56.0", | ||
"version": "4.57.0", | ||
"description": "Ledger Hardware Wallet WebUSB implementation of the communication layer", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/devices": "^4.56.0", | ||
"@ledgerhq/devices": "^4.57.0", | ||
"@ledgerhq/errors": "^4.56.0", | ||
"@ledgerhq/hw-transport": "^4.56.0" | ||
"@ledgerhq/hw-transport": "^4.57.0" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "1d6830c64a54ec5f44556dedd06e72dbb32b8558" | ||
"gitHead": "9136a95039e562cad558eebc733ae9406a5e5fc1" | ||
} |
@@ -26,5 +26,6 @@ // @flow | ||
Promise.resolve( | ||
typeof navigator === "object" && | ||
// $FlowFixMe | ||
typeof navigator.usb === "object" | ||
// $FlowFixMe | ||
!!navigator && | ||
!!navigator.usb && | ||
typeof navigator.usb.getDevices === "function" | ||
); |
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
59716
Updated@ledgerhq/devices@^4.57.0