@settlemint/sdk-cli 2.5.1-pr0d35cbcb → 2.5.1-pr18a03541
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/dist/cli.js +21 -12
- package/dist/cli.js.map +3 -3
- package/package.json +9 -9
package/dist/cli.js
CHANGED
@@ -265083,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
265083
265083
|
var package_default = {
|
265084
265084
|
name: "@settlemint/sdk-cli",
|
265085
265085
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
265086
|
-
version: "2.5.1-
|
265086
|
+
version: "2.5.1-pr18a03541",
|
265087
265087
|
type: "module",
|
265088
265088
|
private: false,
|
265089
265089
|
license: "FSL-1.1-MIT",
|
@@ -265130,14 +265130,14 @@ var package_default = {
|
|
265130
265130
|
devDependencies: {
|
265131
265131
|
"@commander-js/extra-typings": "14.0.0",
|
265132
265132
|
commander: "14.0.0",
|
265133
|
-
"@inquirer/confirm": "5.1.
|
265134
|
-
"@inquirer/input": "4.2.
|
265135
|
-
"@inquirer/password": "4.0.
|
265136
|
-
"@inquirer/select": "4.
|
265137
|
-
"@settlemint/sdk-hasura": "2.5.1-
|
265138
|
-
"@settlemint/sdk-js": "2.5.1-
|
265139
|
-
"@settlemint/sdk-utils": "2.5.1-
|
265140
|
-
"@settlemint/sdk-viem": "2.5.1-
|
265133
|
+
"@inquirer/confirm": "5.1.14",
|
265134
|
+
"@inquirer/input": "4.2.1",
|
265135
|
+
"@inquirer/password": "4.0.17",
|
265136
|
+
"@inquirer/select": "4.3.1",
|
265137
|
+
"@settlemint/sdk-hasura": "2.5.1-pr18a03541",
|
265138
|
+
"@settlemint/sdk-js": "2.5.1-pr18a03541",
|
265139
|
+
"@settlemint/sdk-utils": "2.5.1-pr18a03541",
|
265140
|
+
"@settlemint/sdk-viem": "2.5.1-pr18a03541",
|
265141
265141
|
"@types/node": "24.0.15",
|
265142
265142
|
"@types/semver": "7.7.0",
|
265143
265143
|
"@types/which": "3.0.4",
|
@@ -303428,7 +303428,14 @@ var esm_default3 = createPrompt((config4, done) => {
|
|
303428
303428
|
setActive(next);
|
303429
303429
|
}
|
303430
303430
|
} else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
|
303431
|
-
const
|
303431
|
+
const selectedIndex = Number(rl.line) - 1;
|
303432
|
+
let selectableIndex = -1;
|
303433
|
+
const position = items.findIndex((item2) => {
|
303434
|
+
if (Separator.isSeparator(item2))
|
303435
|
+
return false;
|
303436
|
+
selectableIndex++;
|
303437
|
+
return selectableIndex === selectedIndex;
|
303438
|
+
});
|
303432
303439
|
const item = items[position];
|
303433
303440
|
if (item != null && isSelectable(item)) {
|
303434
303441
|
setActive(position);
|
@@ -303468,14 +303475,16 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
|
|
303468
303475
|
helpTipTop = theme.style.help(`(${config4.instructions?.navigation ?? "Use arrow keys"})`);
|
303469
303476
|
}
|
303470
303477
|
}
|
303478
|
+
let separatorCount = 0;
|
303471
303479
|
const page = usePagination({
|
303472
303480
|
items,
|
303473
303481
|
active,
|
303474
303482
|
renderItem({ item, isActive, index }) {
|
303475
303483
|
if (Separator.isSeparator(item)) {
|
303484
|
+
separatorCount++;
|
303476
303485
|
return ` ${item.separator}`;
|
303477
303486
|
}
|
303478
|
-
const indexLabel = theme.indexMode === "number" ? `${index + 1}. ` : "";
|
303487
|
+
const indexLabel = theme.indexMode === "number" ? `${index + 1 - separatorCount}. ` : "";
|
303479
303488
|
if (item.disabled) {
|
303480
303489
|
const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
|
303481
303490
|
return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
|
@@ -330951,4 +330960,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
330951
330960
|
// src/cli.ts
|
330952
330961
|
sdkCliCommand();
|
330953
330962
|
|
330954
|
-
//# debugId=
|
330963
|
+
//# debugId=7893C478624D86FF64756E2164756E21
|