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.23.0 to 4.24.0-beta.aeaefa0e

19

lib/TransportNodeHid.js

@@ -201,3 +201,12 @@ "use strict";

var debug = this.debug;
var deferred = defer();
if (debug) {
debug("=>" + apdu.toString("hex"));
deferred.promise.then(function (result) {
debug("<= " + result.toString("hex"));
});
}
var exchangeTimeout = void 0;

@@ -227,7 +236,2 @@ var transport = void 0;

var send = function send(content) {
var debug = _this2.debug;
if (debug) {
debug("=>" + content.toString("hex"));
}
var data = [0x00];

@@ -246,7 +250,2 @@ for (var i = 0; i < content.length; i++) {

var buffer = Buffer.from(res);
var debug = _this2.debug;
if (debug) {
debug("<=" + buffer.toString("hex"));
}
resolve(buffer);

@@ -253,0 +252,0 @@ }

{
"name": "@ledgerhq/hw-transport-node-hid",
"version": "4.23.0",
"version": "4.24.0-beta.aeaefa0e",
"description": "Ledger Hardware Wallet Node implementation of the communication layer, using node-hid",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"@ledgerhq/hw-transport": "^4.21.0",
"@ledgerhq/hw-transport": "^4.24.0-beta.aeaefa0e",
"lodash": "^4.17.11",

@@ -31,0 +31,0 @@ "node-hid": "^0.7.2",

@@ -232,3 +232,11 @@ //@flow

const { debug } = this;
const deferred = defer();
if (debug) {
debug("=>" + apdu.toString("hex"));
deferred.promise.then(result => {
debug("<= " + result.toString("hex"));
});
}
let exchangeTimeout;

@@ -258,6 +266,2 @@ let transport;

const send = content => {
const { debug } = this;
if (debug) {
debug("=>" + content.toString("hex"));
}
const data = [0x00];

@@ -277,6 +281,2 @@ for (let i = 0; i < content.length; i++) {

const buffer = Buffer.from(res);
const { debug } = this;
if (debug) {
debug("<=" + buffer.toString("hex"));
}
resolve(buffer);

@@ -283,0 +283,0 @@ }

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