@settlemint/sdk-cli 2.0.0-pr2f010903 → 2.0.0-pr3454c3aa

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 CHANGED
@@ -244713,6 +244713,8 @@ var require_binary = __commonJS((exports) => {
244713
244713
  }
244714
244714
  },
244715
244715
  stringify({ comment, type: type4, value: value4 }, ctx, onComment, onChompKeep) {
244716
+ if (!value4)
244717
+ return "";
244716
244718
  const buf = value4;
244717
244719
  let str;
244718
244720
  if (typeof node_buffer.Buffer === "function") {
@@ -245199,7 +245201,7 @@ var require_timestamp = __commonJS((exports) => {
245199
245201
  }
245200
245202
  return new Date(date);
245201
245203
  },
245202
- stringify: ({ value: value4 }) => value4.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
245204
+ stringify: ({ value: value4 }) => value4?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
245203
245205
  };
245204
245206
  exports.floatTime = floatTime;
245205
245207
  exports.intTime = intTime;
@@ -246376,8 +246378,8 @@ var require_compose_collection = __commonJS((exports) => {
246376
246378
  ctx.schema.tags.push(Object.assign({}, kt3, { default: false }));
246377
246379
  tag = kt3;
246378
246380
  } else {
246379
- if (kt3?.collection) {
246380
- onError(tagToken, "BAD_COLLECTION_TYPE", `${kt3.tag} used for ${expType} collection, but expects ${kt3.collection}`, true);
246381
+ if (kt3) {
246382
+ onError(tagToken, "BAD_COLLECTION_TYPE", `${kt3.tag} used for ${expType} collection, but expects ${kt3.collection ?? "scalar"}`, true);
246381
246383
  } else {
246382
246384
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
246383
246385
  }
@@ -248824,7 +248826,17 @@ var require_parser2 = __commonJS((exports) => {
248824
248826
  default: {
248825
248827
  const bv = this.startBlockValue(map3);
248826
248828
  if (bv) {
248827
- if (atMapIndent && bv.type !== "block-seq") {
248829
+ if (bv.type === "block-seq") {
248830
+ if (!it2.explicitKey && it2.sep && !includesToken(it2.sep, "newline")) {
248831
+ yield* this.pop({
248832
+ type: "error",
248833
+ offset: this.offset,
248834
+ message: "Unexpected block-seq-ind on same line with key",
248835
+ source: this.source
248836
+ });
248837
+ return;
248838
+ }
248839
+ } else if (atMapIndent) {
248828
248840
  map3.items.push({ start: start3 });
248829
248841
  }
248830
248842
  this.stack.push(bv);
@@ -259524,7 +259536,7 @@ function pruneCurrentEnv(currentEnv, env2) {
259524
259536
  var package_default = {
259525
259537
  name: "@settlemint/sdk-cli",
259526
259538
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
259527
- version: "2.0.0-pr2f010903",
259539
+ version: "2.0.0-pr3454c3aa",
259528
259540
  type: "module",
259529
259541
  private: false,
259530
259542
  license: "FSL-1.1-MIT",
@@ -259567,13 +259579,13 @@ var package_default = {
259567
259579
  devDependencies: {
259568
259580
  "@commander-js/extra-typings": "11.1.0",
259569
259581
  commander: "11.1.0",
259570
- "@inquirer/confirm": "5.1.8",
259571
- "@inquirer/input": "4.1.8",
259572
- "@inquirer/password": "4.0.11",
259573
- "@inquirer/select": "4.1.0",
259574
- "@settlemint/sdk-js": "2.0.0-pr2f010903",
259575
- "@settlemint/sdk-utils": "2.0.0-pr2f010903",
259576
- "@types/node": "22.13.14",
259582
+ "@inquirer/confirm": "5.1.9",
259583
+ "@inquirer/input": "4.1.9",
259584
+ "@inquirer/password": "4.0.12",
259585
+ "@inquirer/select": "4.1.1",
259586
+ "@settlemint/sdk-js": "2.0.0-pr3454c3aa",
259587
+ "@settlemint/sdk-utils": "2.0.0-pr3454c3aa",
259588
+ "@types/node": "22.14.0",
259577
259589
  "@types/semver": "7.7.0",
259578
259590
  "@types/which": "3.0.4",
259579
259591
  "get-tsconfig": "4.10.0",
@@ -259582,7 +259594,7 @@ var package_default = {
259582
259594
  semver: "7.7.1",
259583
259595
  slugify: "1.6.6",
259584
259596
  which: "5.0.0",
259585
- yaml: "2.7.0",
259597
+ yaml: "2.7.1",
259586
259598
  yoctocolors: "2.1.1"
259587
259599
  },
259588
259600
  peerDependencies: {
@@ -260687,7 +260699,7 @@ function createPrompt(view) {
260687
260699
  setImmediate(() => resolve(value));
260688
260700
  });
260689
260701
  if (nextView === undefined) {
260690
- const callerFilename = callSites[1]?.getFileName?.();
260702
+ const callerFilename = callSites[1]?.getFileName();
260691
260703
  throw new Error(`Prompt functions must return a string.
260692
260704
  at ${callerFilename}`);
260693
260705
  }
@@ -265695,13 +265707,16 @@ function normalizeChoices(choices) {
265695
265707
  };
265696
265708
  }
265697
265709
  const name3 = choice.name ?? String(choice.value);
265698
- return {
265710
+ const normalizedChoice = {
265699
265711
  value: choice.value,
265700
265712
  name: name3,
265701
- description: choice.description,
265702
265713
  short: choice.short ?? name3,
265703
265714
  disabled: choice.disabled ?? false
265704
265715
  };
265716
+ if (choice.description) {
265717
+ normalizedChoice.description = choice.description;
265718
+ }
265719
+ return normalizedChoice;
265705
265720
  });
265706
265721
  }
265707
265722
  var esm_default3 = createPrompt((config3, done) => {
@@ -274090,4 +274105,4 @@ async function sdkCliCommand(argv = process.argv) {
274090
274105
  // src/cli.ts
274091
274106
  sdkCliCommand();
274092
274107
 
274093
- //# debugId=D94447B8213A62A764756E2164756E21
274108
+ //# debugId=0149C4F16EA58F6D64756E2164756E21