@ledgerhq/hw-transport-node-hid
Advanced tools
Comparing version 4.19.0 to 4.19.1
@@ -225,4 +225,6 @@ "use strict"; | ||
var send = function send(content) { | ||
if (_this2.debug) { | ||
_this2.debug("=>" + content.toString("hex")); | ||
var debug = _this2.debug; | ||
if (debug) { | ||
debug("=>" + content.toString("hex")); | ||
} | ||
@@ -242,4 +244,6 @@ var data = [0x00]; | ||
var buffer = Buffer.from(res); | ||
if (_this2.debug) { | ||
_this2.debug("<=" + buffer.toString("hex")); | ||
var debug = _this2.debug; | ||
if (debug) { | ||
debug("<=" + buffer.toString("hex")); | ||
} | ||
@@ -246,0 +250,0 @@ resolve(buffer); |
{ | ||
"name": "@ledgerhq/hw-transport-node-hid", | ||
"version": "4.19.0", | ||
"version": "4.19.1", | ||
"description": "Ledger Hardware Wallet Node implementation of the communication layer, using node-hid", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,3 +43,2 @@ //@flow | ||
timeout: number; | ||
debug: boolean; | ||
exchangeStack: Array<*>; | ||
@@ -248,4 +247,5 @@ | ||
const send = content => { | ||
if (this.debug) { | ||
this.debug("=>" + content.toString("hex")); | ||
const { debug } = this; | ||
if (debug) { | ||
debug("=>" + content.toString("hex")); | ||
} | ||
@@ -266,4 +266,5 @@ const data = [0x00]; | ||
const buffer = Buffer.from(res); | ||
if (this.debug) { | ||
this.debug("<=" + buffer.toString("hex")); | ||
const { debug } = this; | ||
if (debug) { | ||
debug("<=" + buffer.toString("hex")); | ||
} | ||
@@ -270,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
86059
1173