@ledgerhq/hw-transport-node-hid
Advanced tools
Comparing version 4.18.0 to 4.19.0
@@ -89,6 +89,6 @@ "use strict"; | ||
function TransportNodeHid(device) { | ||
function TransportNodeHid(device) // FIXME not used? | ||
{ | ||
var ledgerTransport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
var debug = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
(0, _classCallCheck3.default)(this, TransportNodeHid); | ||
@@ -102,3 +102,2 @@ | ||
_this.exchangeStack = []; | ||
_this.debug = debug; | ||
return _this; | ||
@@ -229,3 +228,3 @@ } | ||
if (_this2.debug) { | ||
console.log("=>" + content.toString("hex")); | ||
_this2.debug("=>" + content.toString("hex")); | ||
} | ||
@@ -246,3 +245,3 @@ var data = [0x00]; | ||
if (_this2.debug) { | ||
console.log("<=" + buffer.toString("hex")); | ||
_this2.debug("<=" + buffer.toString("hex")); | ||
} | ||
@@ -395,3 +394,3 @@ resolve(buffer); | ||
function open(_x4) { | ||
function open(_x3) { | ||
return _ref.apply(this, arguments); | ||
@@ -398,0 +397,0 @@ } |
{ | ||
"name": "@ledgerhq/hw-transport-node-hid", | ||
"version": "4.18.0", | ||
"version": "4.19.0", | ||
"description": "Ledger Hardware Wallet Node implementation of the communication layer, using node-hid", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.15.0", | ||
"@ledgerhq/hw-transport": "^4.19.0", | ||
"node-hid": "^0.7.2" | ||
@@ -31,0 +31,0 @@ }, |
@@ -48,5 +48,4 @@ //@flow | ||
device: HID.HID, | ||
ledgerTransport: boolean = true, | ||
timeout: number = 0, | ||
debug: boolean = false | ||
ledgerTransport: boolean = true, // FIXME not used? | ||
timeout: number = 0 // FIXME not used? | ||
) { | ||
@@ -58,3 +57,2 @@ super(); | ||
this.exchangeStack = []; | ||
this.debug = debug; | ||
} | ||
@@ -252,3 +250,3 @@ | ||
if (this.debug) { | ||
console.log("=>" + content.toString("hex")); | ||
this.debug("=>" + content.toString("hex")); | ||
} | ||
@@ -270,3 +268,3 @@ const data = [0x00]; | ||
if (this.debug) { | ||
console.log("<=" + buffer.toString("hex")); | ||
this.debug("<=" + buffer.toString("hex")); | ||
} | ||
@@ -273,0 +271,0 @@ resolve(buffer); |
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
85870
1170