@ledgerhq/device-core 0.9.1 → 0.9.2-nightly.20260320030028
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 +11 -0
- package/lib/commands/use-cases/isCharonSupported.d.ts +1 -1
- package/lib/commands/use-cases/isCharonSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isCharonSupported.d.ts +1 -1
- package/lib-es/commands/use-cases/isCharonSupported.d.ts.map +1 -1
- package/lib-es/errors.d.ts +14 -14
- package/package.json +24 -7
- package/src/commands/use-cases/isCharonSupported.ts +1 -1
- package/tsconfig.build.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ledgerhq/device-core
|
|
2
2
|
|
|
3
|
+
## 0.9.2-nightly.20260320030028
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a270b43`](https://github.com/LedgerHQ/ledger-live/commit/a270b438bf8aca99b795679fecce1b55dc249c12), [`d0559d8`](https://github.com/LedgerHQ/ledger-live/commit/d0559d84e119c844d92dc82c7648d0d9dc6c6e20), [`982d4af`](https://github.com/LedgerHQ/ledger-live/commit/982d4afbeb7faf3814c3e96ffb6e3e88b58dfe73), [`6dac7f9`](https://github.com/LedgerHQ/ledger-live/commit/6dac7f974c28dcae409c110a60061996490c5088), [`8ce1cb7`](https://github.com/LedgerHQ/ledger-live/commit/8ce1cb755b3e68c8688f9e828596d3c2605ef3cb), [`3ede91a`](https://github.com/LedgerHQ/ledger-live/commit/3ede91a3674a80c9309d305b871ec3b6e9849b41)]:
|
|
8
|
+
- @ledgerhq/types-live@6.102.0-nightly.20260320030028
|
|
9
|
+
- @ledgerhq/devices@8.13.0-nightly.20260320030028
|
|
10
|
+
- @ledgerhq/errors@6.32.0-nightly.20260320030028
|
|
11
|
+
- @ledgerhq/live-network@2.4.2-nightly.20260320030028
|
|
12
|
+
- @ledgerhq/hw-transport@6.34.1-nightly.20260320030028
|
|
13
|
+
|
|
3
14
|
## 0.9.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAS9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAS9E,CAAC"}
|
package/lib-es/errors.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export declare const AppNotFound: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
1
|
+
export declare const AppNotFound: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
2
2
|
[key: string]: unknown;
|
|
3
3
|
}>;
|
|
4
|
-
export declare const InvalidContext: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
4
|
+
export declare const InvalidContext: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
5
5
|
[key: string]: unknown;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const InvalidAppNameLength: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
7
|
+
export declare const InvalidAppNameLength: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const GenerateAesKeyFailed: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
10
|
+
export declare const GenerateAesKeyFailed: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const InternalCryptoOperationFailed: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
13
|
+
export declare const InternalCryptoOperationFailed: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
14
14
|
[key: string]: unknown;
|
|
15
15
|
}>;
|
|
16
|
-
export declare const InternalComputeAesCmacFailed: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
16
|
+
export declare const InternalComputeAesCmacFailed: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
17
17
|
[key: string]: unknown;
|
|
18
18
|
}>;
|
|
19
|
-
export declare const EncryptAppStorageFailed: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
19
|
+
export declare const EncryptAppStorageFailed: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}>;
|
|
22
|
-
export declare const PinNotSet: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
22
|
+
export declare const PinNotSet: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
}>;
|
|
25
|
-
export declare const InvalidBackupHeader: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
25
|
+
export declare const InvalidBackupHeader: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
26
26
|
[key: string]: unknown;
|
|
27
27
|
}>;
|
|
28
|
-
export declare const InvalidBackupLength: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
28
|
+
export declare const InvalidBackupLength: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
29
29
|
[key: string]: unknown;
|
|
30
30
|
}>;
|
|
31
|
-
export declare const InvalidBackupState: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
31
|
+
export declare const InvalidBackupState: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
32
32
|
[key: string]: unknown;
|
|
33
33
|
}>;
|
|
34
|
-
export declare const InvalidRestoreState: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
34
|
+
export declare const InvalidRestoreState: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
35
35
|
[key: string]: unknown;
|
|
36
36
|
}>;
|
|
37
|
-
export declare const InvalidChunkLength: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
37
|
+
export declare const InvalidChunkLength: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
38
38
|
[key: string]: unknown;
|
|
39
39
|
}>;
|
|
40
|
-
export declare const UserRefusedOnDevice: import("@ledgerhq/errors/lib/helpers").LedgerErrorConstructor<{
|
|
40
|
+
export declare const UserRefusedOnDevice: import("@ledgerhq/errors/lib-es/helpers").LedgerErrorConstructor<{
|
|
41
41
|
[key: string]: unknown;
|
|
42
42
|
}>;
|
|
43
43
|
//# sourceMappingURL=errors.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/device-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-nightly.20260320030028",
|
|
4
4
|
"description": "Ledger Live device core module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@noble/hashes": "1.8.0",
|
|
22
22
|
"semver": "7.7.3",
|
|
23
|
-
"@ledgerhq/devices": "8.
|
|
24
|
-
"@ledgerhq/errors": "^6.
|
|
25
|
-
"@ledgerhq/hw-transport": "6.34.
|
|
26
|
-
"@ledgerhq/live-network": "^2.4.
|
|
23
|
+
"@ledgerhq/devices": "8.13.0-nightly.20260320030028",
|
|
24
|
+
"@ledgerhq/errors": "^6.32.0-nightly.20260320030028",
|
|
25
|
+
"@ledgerhq/hw-transport": "6.34.1-nightly.20260320030028",
|
|
26
|
+
"@ledgerhq/live-network": "^2.4.2-nightly.20260320030028",
|
|
27
27
|
"@ledgerhq/logs": "^6.16.0",
|
|
28
|
-
"@ledgerhq/types-live": "^6.
|
|
28
|
+
"@ledgerhq/types-live": "^6.102.0-nightly.20260320030028"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/dom": "10.4.1",
|
|
@@ -55,6 +55,23 @@
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
+
"exports": {
|
|
59
|
+
".": {
|
|
60
|
+
"@ledgerhq/source": "./src/index.ts",
|
|
61
|
+
"import": "./lib-es/index.js",
|
|
62
|
+
"require": "./lib/index.js",
|
|
63
|
+
"default": "./lib/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./lib-es/*": "./lib-es/*.js",
|
|
66
|
+
"./lib/*": "./lib/*.js",
|
|
67
|
+
"./*": {
|
|
68
|
+
"@ledgerhq/source": "./src/*.ts",
|
|
69
|
+
"import": "./lib-es/*.js",
|
|
70
|
+
"require": "./lib/*.js",
|
|
71
|
+
"default": "./lib/*.js"
|
|
72
|
+
},
|
|
73
|
+
"./package.json": "./package.json"
|
|
74
|
+
},
|
|
58
75
|
"scripts": {
|
|
59
76
|
"clean": "rimraf lib lib-es",
|
|
60
77
|
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.json -m esnext --moduleResolution bundler --outDir lib-es",
|
|
@@ -63,7 +80,7 @@
|
|
|
63
80
|
"watch:es": "tsc --watch --project tsconfig.build.json -m esnext --moduleResolution bundler --outDir lib-es",
|
|
64
81
|
"lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache",
|
|
65
82
|
"lint:fix": "pnpm lint --fix",
|
|
66
|
-
"typecheck": "tsc --noEmit",
|
|
83
|
+
"typecheck": "tsc --noEmit --customConditions node",
|
|
67
84
|
"unimported": "unimported",
|
|
68
85
|
"test": "jest",
|
|
69
86
|
"coverage": "jest --coverage"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceModelId } from "@ledgerhq/devices/
|
|
1
|
+
import { DeviceModelId } from "@ledgerhq/devices/index";
|
|
2
2
|
import { satisfies as versionSatisfies, coerce as semverCoerce } from "semver";
|
|
3
3
|
|
|
4
4
|
const deviceVersionRangesForCharon: { [key in DeviceModelId]?: string } = {
|