@ledgerhq/ledger-key-ring-protocol 0.12.2 → 0.12.3-nightly.20260331030457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/package.json +10 -10
- package/tests/test-helpers/recordTrustchainSdkTests.ts +5 -3
- package/tsconfig.build.json +6 -1
- package/tsconfig.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ledgerhq/live-wallet
|
|
2
2
|
|
|
3
|
+
## 0.12.3-nightly.20260331030457
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`d0559d8`](https://github.com/LedgerHQ/ledger-live/commit/d0559d84e119c844d92dc82c7648d0d9dc6c6e20), [`008a4bd`](https://github.com/LedgerHQ/ledger-live/commit/008a4bdb87f0e65fa23de3a29818a4d02f28f4f8)]:
|
|
8
|
+
- @ledgerhq/live-env@2.31.0-nightly.20260331030457
|
|
9
|
+
- @ledgerhq/errors@6.33.0-nightly.20260331030457
|
|
10
|
+
- @ledgerhq/hw-transport@6.35.0-nightly.20260331030457
|
|
11
|
+
- @ledgerhq/hw-transport-mocker@6.34.0-nightly.20260331030457
|
|
12
|
+
- @ledgerhq/logs@6.17.0-nightly.20260331030457
|
|
13
|
+
- @ledgerhq/types-devices@6.31.0-nightly.20260331030457
|
|
14
|
+
- @ledgerhq/hw-ledger-key-ring-protocol@0.9.1-nightly.20260331030457
|
|
15
|
+
- @ledgerhq/live-network@2.4.3-nightly.20260331030457
|
|
16
|
+
- @ledgerhq/speculos-transport@0.7.2-nightly.20260331030457
|
|
17
|
+
|
|
3
18
|
## 0.12.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/ledger-key-ring-protocol",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3-nightly.20260331030457",
|
|
4
4
|
"description": "Ledger Key Ring Protocol layer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger"
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"isomorphic-ws": "5.0.0",
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"ws": "8.18.3",
|
|
63
|
-
"@ledgerhq/errors": "6.
|
|
64
|
-
"@ledgerhq/hw-transport": "6.
|
|
65
|
-
"@ledgerhq/hw-transport-mocker": "6.
|
|
66
|
-
"@ledgerhq/hw-ledger-key-ring-protocol": "0.9.
|
|
67
|
-
"@ledgerhq/live-env": "2.
|
|
68
|
-
"@ledgerhq/live-network": "2.4.
|
|
69
|
-
"@ledgerhq/logs": "6.
|
|
70
|
-
"@ledgerhq/speculos-transport": "0.7.
|
|
71
|
-
"@ledgerhq/types-devices": "^6.
|
|
63
|
+
"@ledgerhq/errors": "6.33.0-nightly.20260331030457",
|
|
64
|
+
"@ledgerhq/hw-transport": "6.35.0-nightly.20260331030457",
|
|
65
|
+
"@ledgerhq/hw-transport-mocker": "6.34.0-nightly.20260331030457",
|
|
66
|
+
"@ledgerhq/hw-ledger-key-ring-protocol": "0.9.1-nightly.20260331030457",
|
|
67
|
+
"@ledgerhq/live-env": "2.31.0-nightly.20260331030457",
|
|
68
|
+
"@ledgerhq/live-network": "2.4.3-nightly.20260331030457",
|
|
69
|
+
"@ledgerhq/logs": "6.17.0-nightly.20260331030457",
|
|
70
|
+
"@ledgerhq/speculos-transport": "0.7.2-nightly.20260331030457",
|
|
71
|
+
"@ledgerhq/types-devices": "^6.31.0-nightly.20260331030457"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/jest": "30.0.0",
|
|
@@ -39,13 +39,15 @@ export async function recordTestTrustchainSdk(
|
|
|
39
39
|
|
|
40
40
|
// passthrough all success cases for the Ledger Sync coin app to accept all.
|
|
41
41
|
const sub = device.transport.automationEvents.subscribe(event => {
|
|
42
|
-
const
|
|
42
|
+
const text =
|
|
43
|
+
typeof event.text === "string" ? event.text.trim() : String(event.text ?? "").trim();
|
|
44
|
+
const approveOnceIndex = approveOnceOnText.findIndex(t => text == t);
|
|
43
45
|
if (approveOnceIndex > -1) {
|
|
44
46
|
approveOnceOnText.splice(approveOnceIndex, 1);
|
|
45
47
|
buttonClicksPromises.push(device.transport.button("both"));
|
|
46
|
-
} else if (goNextOnText.some(t =>
|
|
48
|
+
} else if (goNextOnText.some(t => text == t)) {
|
|
47
49
|
buttonClicksPromises.push(device.transport.button("right"));
|
|
48
|
-
} else if (approveOnText.some(t =>
|
|
50
|
+
} else if (approveOnText.some(t => text == t)) {
|
|
49
51
|
buttonClicksPromises.push(device.transport.button("both"));
|
|
50
52
|
}
|
|
51
53
|
});
|
package/tsconfig.build.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "./tsconfig.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
4
|
+
"rootDir": "src",
|
|
5
|
+
"customConditions": [],
|
|
6
|
+
"types": [
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
5
9
|
},
|
|
6
10
|
"exclude": [
|
|
7
11
|
"**/*.test.ts",
|
|
@@ -10,6 +14,7 @@
|
|
|
10
14
|
"**/*.spec.tsx",
|
|
11
15
|
"**/__tests__/**/*",
|
|
12
16
|
"**/tests/**/*",
|
|
17
|
+
"**/__mocks__/**/*",
|
|
13
18
|
"**/*.test.js",
|
|
14
19
|
"**/*.test.jsx",
|
|
15
20
|
"**/*.spec.js",
|
package/tsconfig.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"declarationMap": true,
|
|
6
6
|
"noImplicitAny": false,
|
|
7
7
|
"noImplicitThis": false,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
8
|
"lib": ["es2020", "dom"],
|
|
10
9
|
"types": ["node", "jest"],
|
|
11
|
-
"outDir": "lib"
|
|
10
|
+
"outDir": "lib",
|
|
11
|
+
"rootDir": "."
|
|
12
12
|
},
|
|
13
|
-
"include": ["src/**/*"]
|
|
13
|
+
"include": ["src/**/*", "tests/**/*"]
|
|
14
14
|
}
|