@ledgerhq/hw-transport-http
Advanced tools
Comparing version 1.2.0-beta.10b44916 to 1.2.0-beta.5f7fbb68
@@ -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
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
23392