@ledgerhq/live-cli 24.29.0-nightly.20251127130943 → 24.29.0-nightly.20251128023740
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/lib/cli.js +24 -7
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -536952,15 +536952,19 @@ var require_picomatch2 = __commonJS({
|
|
|
536952
536952
|
}
|
|
536953
536953
|
});
|
|
536954
536954
|
|
|
536955
|
-
// ../../node_modules/.pnpm/micromatch@4.0.
|
|
536955
|
+
// ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
536956
536956
|
var require_micromatch = __commonJS({
|
|
536957
|
-
"../../node_modules/.pnpm/micromatch@4.0.
|
|
536957
|
+
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports2, module2) {
|
|
536958
536958
|
"use strict";
|
|
536959
536959
|
var util10 = require("util");
|
|
536960
536960
|
var braces = require_braces();
|
|
536961
536961
|
var picomatch = require_picomatch2();
|
|
536962
536962
|
var utils6 = require_utils50();
|
|
536963
|
-
var isEmptyString = (
|
|
536963
|
+
var isEmptyString = (v64) => v64 === "" || v64 === "./";
|
|
536964
|
+
var hasBraces = (v64) => {
|
|
536965
|
+
const index = v64.indexOf("{");
|
|
536966
|
+
return index > -1 && v64.indexOf("}", index) > -1;
|
|
536967
|
+
};
|
|
536964
536968
|
var micromatch = (list2, patterns, options24) => {
|
|
536965
536969
|
patterns = [].concat(patterns);
|
|
536966
536970
|
list2 = [].concat(list2);
|
|
@@ -537100,7 +537104,7 @@ var require_micromatch = __commonJS({
|
|
|
537100
537104
|
micromatch.braces = (pattern, options24) => {
|
|
537101
537105
|
if (typeof pattern !== "string")
|
|
537102
537106
|
throw new TypeError("Expected a string");
|
|
537103
|
-
if (options24 && options24.nobrace === true ||
|
|
537107
|
+
if (options24 && options24.nobrace === true || !hasBraces(pattern)) {
|
|
537104
537108
|
return [pattern];
|
|
537105
537109
|
}
|
|
537106
537110
|
return braces(pattern, options24);
|
|
@@ -537110,6 +537114,7 @@ var require_micromatch = __commonJS({
|
|
|
537110
537114
|
throw new TypeError("Expected a string");
|
|
537111
537115
|
return micromatch.braces(pattern, { ...options24, expand: true });
|
|
537112
537116
|
};
|
|
537117
|
+
micromatch.hasBraces = hasBraces;
|
|
537113
537118
|
module2.exports = micromatch;
|
|
537114
537119
|
}
|
|
537115
537120
|
});
|
|
@@ -543581,7 +543586,7 @@ var require_package8 = __commonJS({
|
|
|
543581
543586
|
module2.exports = {
|
|
543582
543587
|
name: "@ledgerhq/live-common",
|
|
543583
543588
|
description: "Common ground for the Ledger Live apps",
|
|
543584
|
-
version: "34.54.0-nightly.
|
|
543589
|
+
version: "34.54.0-nightly.20251128023740",
|
|
543585
543590
|
repository: {
|
|
543586
543591
|
type: "git",
|
|
543587
543592
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -543934,7 +543939,7 @@ var require_package9 = __commonJS({
|
|
|
543934
543939
|
"package.json"(exports2, module2) {
|
|
543935
543940
|
module2.exports = {
|
|
543936
543941
|
name: "@ledgerhq/live-cli",
|
|
543937
|
-
version: "24.29.0-nightly.
|
|
543942
|
+
version: "24.29.0-nightly.20251128023740",
|
|
543938
543943
|
description: "ledger-live CLI version",
|
|
543939
543944
|
repository: {
|
|
543940
543945
|
type: "git",
|
|
@@ -853685,6 +853690,7 @@ function getMemorySpeculosDeviceInternal(id5) {
|
|
|
853685
853690
|
var modelMap = {
|
|
853686
853691
|
stax: DeviceModelId.stax,
|
|
853687
853692
|
flex: DeviceModelId.europa,
|
|
853693
|
+
apex_p: DeviceModelId.apex,
|
|
853688
853694
|
nanos: DeviceModelId.nanoS,
|
|
853689
853695
|
"nanos+": DeviceModelId.nanoSP,
|
|
853690
853696
|
nanox: DeviceModelId.nanoX,
|
|
@@ -853694,6 +853700,16 @@ var reverseModelMap = {};
|
|
|
853694
853700
|
for (const k26 in modelMap) {
|
|
853695
853701
|
reverseModelMap[modelMap[k26]] = k26;
|
|
853696
853702
|
}
|
|
853703
|
+
var getSpeculosModel = (model) => {
|
|
853704
|
+
switch (model) {
|
|
853705
|
+
case DeviceModelId.europa:
|
|
853706
|
+
return "flex";
|
|
853707
|
+
case DeviceModelId.apex:
|
|
853708
|
+
return "apex_p";
|
|
853709
|
+
default:
|
|
853710
|
+
return model.toLowerCase();
|
|
853711
|
+
}
|
|
853712
|
+
};
|
|
853697
853713
|
async function releaseSpeculosDevice(id5) {
|
|
853698
853714
|
log2("speculos", "release " + id5);
|
|
853699
853715
|
const obj2 = data5[id5];
|
|
@@ -853771,7 +853787,7 @@ async function createSpeculosDevice(arg, maxRetry = 3) {
|
|
|
853771
853787
|
`${speculosID}`,
|
|
853772
853788
|
process.env.SPECULOS_IMAGE_TAG ?? "ghcr.io/ledgerhq/speculos:sha-e262a0c",
|
|
853773
853789
|
"--model",
|
|
853774
|
-
|
|
853790
|
+
getSpeculosModel(model),
|
|
853775
853791
|
appPath,
|
|
853776
853792
|
...dependency ? [
|
|
853777
853793
|
"-l",
|
|
@@ -853906,6 +853922,7 @@ async function createSpeculosDevice(arg, maxRetry = 3) {
|
|
|
853906
853922
|
|
|
853907
853923
|
// ../../libs/ledger-live-common/lib-es/load/speculos.js
|
|
853908
853924
|
var modelMapPriority = {
|
|
853925
|
+
apex_p: 7,
|
|
853909
853926
|
flex: 6,
|
|
853910
853927
|
stax: 5,
|
|
853911
853928
|
nanos: 4,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.29.0-nightly.
|
|
3
|
+
"version": "24.29.0-nightly.20251128023740",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
60
|
"yaml": "2.8.1",
|
|
61
61
|
"@ledgerhq/types-cryptoassets": "^7.30.0",
|
|
62
|
-
"@ledgerhq/types-live": "^6.90.0-nightly.
|
|
62
|
+
"@ledgerhq/types-live": "^6.90.0-nightly.20251128023740"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"directory": "dist"
|