Socket
Socket
Sign inDemoInstall

@ledgerhq/hw-transport

Package Overview
Dependencies
7
Maintainers
7
Versions
352
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.30.6 to 6.31.0-next.0

14

CHANGELOG.md
# @ledgerhq/hw-transport
## 6.31.0-next.0
### Minor Changes
- [#6596](https://github.com/LedgerHQ/ledger-live/pull/6596) [`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11) Thanks [@KVNLS](https://github.com/KVNLS)! - Upgrade React Native to version 0.73.6
### Patch Changes
- [#6963](https://github.com/LedgerHQ/ledger-live/pull/6963) [`815ae3d`](https://github.com/LedgerHQ/ledger-live/commit/815ae3dae8027823854ada837df3dc983d09b10f) Thanks [@aussedatlo](https://github.com/aussedatlo)! - restore TransportRaceCondition instead of TransportPendingOperation that caused a breaking change
- Updated dependencies [[`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11), [`815ae3d`](https://github.com/LedgerHQ/ledger-live/commit/815ae3dae8027823854ada837df3dc983d09b10f), [`cec1599`](https://github.com/LedgerHQ/ledger-live/commit/cec1599a41aa1a18a249e34312164bc93b63972f), [`3b9c93c`](https://github.com/LedgerHQ/ledger-live/commit/3b9c93c0de8ceff2af96a6ee8e42b8d9c2ab7af0)]:
- @ledgerhq/devices@8.4.0-next.0
- @ledgerhq/errors@6.17.0-next.0
## 6.30.6

@@ -4,0 +18,0 @@

4

lib-es/Transport.d.ts

@@ -105,3 +105,3 @@ /// <reference types="node" />

*/
exchange(_apdu: Buffer, { abortTimeoutMs }?: {
exchange(_apdu: Buffer, { abortTimeoutMs: _abortTimeoutMs }?: {
abortTimeoutMs?: number;

@@ -136,3 +136,3 @@ }): Promise<Buffer>;

close(): Promise<void>;
_events: EventEmitter;
_events: EventEmitter<[never]>;
/**

@@ -139,0 +139,0 @@ * Listen for an event on the transport instance.

@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import EventEmitter from "events";
import { TransportPendingOperation, TransportError, StatusCodes, getAltStatusMessage, TransportStatusError, } from "@ledgerhq/errors";
import { TransportRaceCondition, TransportError, StatusCodes, getAltStatusMessage, TransportStatusError, } from "@ledgerhq/errors";
import { LocalTracer } from "@ledgerhq/logs";

@@ -41,3 +41,3 @@ export { TransportError, TransportStatusError, StatusCodes, getAltStatusMessage };

*/
this.send = (cla, ins, p1, p2, data = Buffer.alloc(0), statusList = [StatusCodes.OK], { abortTimeoutMs } = {}) => __awaiter(this, void 0, void 0, function* () {
this.send = (cla_1, ins_1, p1_1, p2_1, ...args_1) => __awaiter(this, [cla_1, ins_1, p1_1, p2_1, ...args_1], void 0, function* (cla, ins, p1, p2, data = Buffer.alloc(0), statusList = [StatusCodes.OK], { abortTimeoutMs } = {}) {
const tracer = this.tracer.withUpdatedContext({ function: "send" });

@@ -217,3 +217,3 @@ if (data.length >= 256) {

tracer.trace("Atomic exchange is already busy");
throw new TransportPendingOperation("An action was already pending on the Ledger device. Please deny or reconnect.");
throw new TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");
}

@@ -220,0 +220,0 @@ // Sets the atomic guard

@@ -105,3 +105,3 @@ /// <reference types="node" />

*/
exchange(_apdu: Buffer, { abortTimeoutMs }?: {
exchange(_apdu: Buffer, { abortTimeoutMs: _abortTimeoutMs }?: {
abortTimeoutMs?: number;

@@ -136,3 +136,3 @@ }): Promise<Buffer>;

close(): Promise<void>;
_events: EventEmitter;
_events: EventEmitter<[never]>;
/**

@@ -139,0 +139,0 @@ * Listen for an event on the transport instance.

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

*/
this.send = (cla, ins, p1, p2, data = Buffer.alloc(0), statusList = [errors_1.StatusCodes.OK], { abortTimeoutMs } = {}) => __awaiter(this, void 0, void 0, function* () {
this.send = (cla_1, ins_1, p1_1, p2_1, ...args_1) => __awaiter(this, [cla_1, ins_1, p1_1, p2_1, ...args_1], void 0, function* (cla, ins, p1, p2, data = Buffer.alloc(0), statusList = [errors_1.StatusCodes.OK], { abortTimeoutMs } = {}) {
const tracer = this.tracer.withUpdatedContext({ function: "send" });

@@ -225,3 +225,3 @@ if (data.length >= 256) {

tracer.trace("Atomic exchange is already busy");
throw new errors_1.TransportPendingOperation("An action was already pending on the Ledger device. Please deny or reconnect.");
throw new errors_1.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");
}

@@ -228,0 +228,0 @@ // Sets the atomic guard

{
"name": "@ledgerhq/hw-transport",
"version": "6.30.6",
"version": "6.31.0-next.0",
"description": "Ledger Hardware Wallet common interface of the communication layer",

@@ -29,4 +29,4 @@ "keywords": [

"events": "^3.3.0",
"@ledgerhq/devices": "^8.3.0",
"@ledgerhq/errors": "^6.16.4",
"@ledgerhq/devices": "^8.4.0-next.0",
"@ledgerhq/errors": "^6.17.0-next.0",
"@ledgerhq/logs": "^6.12.0"

@@ -33,0 +33,0 @@ },

import EventEmitter from "events";
import type { DeviceModel } from "@ledgerhq/devices";
import {
TransportPendingOperation,
TransportRaceCondition,
TransportError,

@@ -342,3 +342,3 @@ StatusCodes,

tracer.trace("Atomic exchange is already busy");
throw new TransportPendingOperation(
throw new TransportRaceCondition(
"An action was already pending on the Ledger device. Please deny or reconnect.",

@@ -345,0 +345,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc