@ledgerhq/hw-transport
Advanced tools
Comparing version 6.29.0-tag-word.0 to 6.29.0
# @ledgerhq/hw-transport | ||
## 6.29.0-tag-word.0 | ||
## 6.29.0 | ||
@@ -14,9 +14,35 @@ ### Minor Changes | ||
- [#5142](https://github.com/LedgerHQ/ledger-live/pull/5142) [`7968dfc551`](https://github.com/LedgerHQ/ledger-live/commit/7968dfc551acca00b7fabf00a726758d74be33de) Thanks [@alexandremgo](https://github.com/alexandremgo)! - chore: new mock fixture aTransportBuilder | ||
For unit tests where a real implementation of a Transport is not necessary. | ||
- [#5063](https://github.com/LedgerHQ/ledger-live/pull/5063) [`6b7fc5d071`](https://github.com/LedgerHQ/ledger-live/commit/6b7fc5d0711a83ed2fcacacd02795862a4a3bf1d) Thanks [@sarneijim](https://github.com/sarneijim)! - fix: fix TransportRaceCondition literal | ||
- Updated dependencies [[`9e2d32aec4`](https://github.com/LedgerHQ/ledger-live/commit/9e2d32aec4ebd8774880f94e3ef0e805ebb172ac), [`4d6fa0772e`](https://github.com/LedgerHQ/ledger-live/commit/4d6fa0772e19cdbd4b432fafa43621c42e2a5fdd)]: | ||
- @ledgerhq/logs@6.11.0-tag-word.0 | ||
- @ledgerhq/errors@6.15.0-tag-word.0 | ||
- @ledgerhq/devices@8.0.8-tag-word.0 | ||
- @ledgerhq/logs@6.11.0 | ||
- @ledgerhq/errors@6.15.0 | ||
- @ledgerhq/devices@8.0.8 | ||
## 6.29.0-next.0 | ||
### Minor Changes | ||
- [#4709](https://github.com/LedgerHQ/ledger-live/pull/4709) [`9e2d32aec4`](https://github.com/LedgerHQ/ledger-live/commit/9e2d32aec4ebd8774880f94e3ef0e805ebb172ac) Thanks [@alexandremgo](https://github.com/alexandremgo)! - feat: usage of new tracing system | ||
The tracing helps keeping a context (for ex a `job id`) that is propagated to other logs, | ||
creating a (simple) tracing span | ||
### Patch Changes | ||
- [#5142](https://github.com/LedgerHQ/ledger-live/pull/5142) [`7968dfc551`](https://github.com/LedgerHQ/ledger-live/commit/7968dfc551acca00b7fabf00a726758d74be33de) Thanks [@alexandremgo](https://github.com/alexandremgo)! - chore: new mock fixture aTransportBuilder | ||
For unit tests where a real implementation of a Transport is not necessary. | ||
- [#5063](https://github.com/LedgerHQ/ledger-live/pull/5063) [`6b7fc5d071`](https://github.com/LedgerHQ/ledger-live/commit/6b7fc5d0711a83ed2fcacacd02795862a4a3bf1d) Thanks [@sarneijim](https://github.com/sarneijim)! - fix: fix TransportRaceCondition literal | ||
- Updated dependencies [[`9e2d32aec4`](https://github.com/LedgerHQ/ledger-live/commit/9e2d32aec4ebd8774880f94e3ef0e805ebb172ac), [`4d6fa0772e`](https://github.com/LedgerHQ/ledger-live/commit/4d6fa0772e19cdbd4b432fafa43621c42e2a5fdd)]: | ||
- @ledgerhq/logs@6.11.0-next.0 | ||
- @ledgerhq/errors@6.15.0-next.0 | ||
- @ledgerhq/devices@8.0.8-next.0 | ||
## 6.28.8 | ||
@@ -23,0 +49,0 @@ |
@@ -182,2 +182,6 @@ /// <reference types="node" /> | ||
setTraceContext(context?: TraceContext): void; | ||
/** | ||
* Gets the tracing context of the transport instance | ||
*/ | ||
getTraceContext(): TraceContext | undefined; | ||
static ErrorMessage_ListenTimeout: string; | ||
@@ -184,0 +188,0 @@ static ErrorMessage_NoDeviceFound: string; |
@@ -246,2 +246,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
/** | ||
* Gets the tracing context of the transport instance | ||
*/ | ||
getTraceContext() { | ||
return this.tracer.getContext(); | ||
} | ||
} | ||
@@ -248,0 +254,0 @@ Transport.ErrorMessage_ListenTimeout = "No Ledger device found (timeout)"; |
@@ -182,2 +182,6 @@ /// <reference types="node" /> | ||
setTraceContext(context?: TraceContext): void; | ||
/** | ||
* Gets the tracing context of the transport instance | ||
*/ | ||
getTraceContext(): TraceContext | undefined; | ||
static ErrorMessage_ListenTimeout: string; | ||
@@ -184,0 +188,0 @@ static ErrorMessage_NoDeviceFound: string; |
@@ -255,2 +255,8 @@ "use strict"; | ||
} | ||
/** | ||
* Gets the tracing context of the transport instance | ||
*/ | ||
getTraceContext() { | ||
return this.tracer.getContext(); | ||
} | ||
} | ||
@@ -257,0 +263,0 @@ Transport.ErrorMessage_ListenTimeout = "No Ledger device found (timeout)"; |
{ | ||
"name": "@ledgerhq/hw-transport", | ||
"version": "6.29.0-tag-word.0", | ||
"version": "6.29.0", | ||
"description": "Ledger Hardware Wallet common interface of the communication layer", | ||
@@ -29,5 +29,5 @@ "keywords": [ | ||
"events": "^3.3.0", | ||
"@ledgerhq/devices": "^8.0.8-tag-word.0", | ||
"@ledgerhq/errors": "^6.15.0-tag-word.0", | ||
"@ledgerhq/logs": "^6.11.0-tag-word.0" | ||
"@ledgerhq/devices": "^8.0.8", | ||
"@ledgerhq/errors": "^6.15.0", | ||
"@ledgerhq/logs": "^6.11.0" | ||
}, | ||
@@ -53,4 +53,5 @@ "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec", | ||
"lint:fix": "pnpm lint --fix", | ||
"test": "jest" | ||
"test": "jest", | ||
"unimported": "unimported" | ||
} | ||
} |
@@ -44,2 +44,3 @@ <img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" /> | ||
* [Parameters](#parameters-9) | ||
* [getTraceContext](#gettracecontext) | ||
* [isSupported](#issupported) | ||
@@ -215,2 +216,8 @@ * [list](#list) | ||
#### getTraceContext | ||
Gets the tracing context of the transport instance | ||
Returns **(TraceContext | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** | ||
#### isSupported | ||
@@ -217,0 +224,0 @@ |
@@ -384,4 +384,11 @@ import EventEmitter from "events"; | ||
/** | ||
* Gets the tracing context of the transport instance | ||
*/ | ||
getTraceContext(): TraceContext | undefined { | ||
return this.tracer.getContext(); | ||
} | ||
static ErrorMessage_ListenTimeout = "No Ledger device found (timeout)"; | ||
static ErrorMessage_NoDeviceFound = "No Ledger device found"; | ||
} |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
103792
16
1259
0
312
Updated@ledgerhq/devices@^8.0.8
Updated@ledgerhq/errors@^6.15.0
Updated@ledgerhq/logs@^6.11.0