Socket
Socket
Sign inDemoInstall

@ledgerhq/hw-transport-http

Package Overview
Dependencies
Maintainers
6
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport-http - npm Package Compare versions

Comparing version 1.2.0-beta.10b44916 to 1.2.0-beta.5f7fbb68

4

lib/HttpTransport.js

@@ -53,3 +53,3 @@ "use strict";

exchange(apduHex, statusList) {
exchange(apdu) {
var _this = this;

@@ -64,3 +64,3 @@

},
body: JSON.stringify({ apduHex, statusList })
body: JSON.stringify({ apduHex: apdu.toString("hex") })
});

@@ -67,0 +67,0 @@ if (response.status !== 200) {

{
"name": "@ledgerhq/hw-transport-http",
"version": "1.2.0-beta.10b44916",
"version": "1.2.0-beta.5f7fbb68",
"description": "Ledger Hardware Wallet communication layer over http",

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

"dependencies": {
"@ledgerhq/hw-transport": "^1.2.0-beta.10b44916"
"@ledgerhq/hw-transport": "^1.2.0-beta.5f7fbb68"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -43,3 +43,3 @@ //@flow

async exchange(apduHex: string, statusList: Array<number>): Promise<string> {
async exchange(apdu: Buffer): Promise<Buffer> {
const response = await fetch(this.url, {

@@ -51,3 +51,3 @@ method: "POST",

},
body: JSON.stringify({ apduHex, statusList })
body: JSON.stringify({ apduHex: apdu.toString("hex") })
});

@@ -54,0 +54,0 @@ if (response.status !== 200) {

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