Socket
Socket
Sign inDemoInstall

@ledgerhq/hw-transport-node-hid

Package Overview
Dependencies
Maintainers
7
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport-node-hid - npm Package Compare versions

Comparing version 4.18.0 to 4.19.0

11

lib/TransportNodeHid.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc