@settlemint/sdk-cli 2.3.5-prea6b8850 → 2.3.5-prf7f294ed

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
@@ -246161,7 +246161,7 @@ var isInteractive = (stream) => Boolean(stream.isTTY && process2.env.TERM !== "d
246161
246161
  var infoSymbol = exports_base.blue(isUnicodeSupported ? "ℹ" : "i");
246162
246162
  var successSymbol = exports_base.green(isUnicodeSupported ? "✔" : "√");
246163
246163
  var warningSymbol = exports_base.yellow(isUnicodeSupported ? "⚠" : "‼");
246164
- var errorSymbol = exports_base.red(isUnicodeSupported ? "✖️" : "×");
246164
+ var errorSymbol = exports_base.red(isUnicodeSupported ? "" : "×");
246165
246165
  var defaultSpinner = {
246166
246166
  frames: isUnicodeSupported ? [
246167
246167
  "⠋",
@@ -246195,6 +246195,7 @@ class YoctoSpinner {
246195
246195
  #exitHandlerBound;
246196
246196
  #isInteractive;
246197
246197
  #lastSpinnerFrameTime = 0;
246198
+ #isSpinning = false;
246198
246199
  constructor(options = {}) {
246199
246200
  const spinner = options.spinner ?? defaultSpinner;
246200
246201
  this.#frames = spinner.frames;
@@ -246212,20 +246213,26 @@ class YoctoSpinner {
246212
246213
  if (this.isSpinning) {
246213
246214
  return this;
246214
246215
  }
246216
+ this.#isSpinning = true;
246215
246217
  this.#hideCursor();
246216
246218
  this.#render();
246217
246219
  this.#subscribeToProcessEvents();
246218
- this.#timer = setInterval(() => {
246219
- this.#render();
246220
- }, this.#interval);
246220
+ if (this.#isInteractive) {
246221
+ this.#timer = setInterval(() => {
246222
+ this.#render();
246223
+ }, this.#interval);
246224
+ }
246221
246225
  return this;
246222
246226
  }
246223
246227
  stop(finalText) {
246224
246228
  if (!this.isSpinning) {
246225
246229
  return this;
246226
246230
  }
246227
- clearInterval(this.#timer);
246228
- this.#timer = undefined;
246231
+ this.#isSpinning = false;
246232
+ if (this.#timer) {
246233
+ clearInterval(this.#timer);
246234
+ this.#timer = undefined;
246235
+ }
246229
246236
  this.#showCursor();
246230
246237
  this.clear();
246231
246238
  this.#unsubscribeFromProcessEvents();
@@ -246251,7 +246258,7 @@ class YoctoSpinner {
246251
246258
  return this.#symbolStop(infoSymbol, text);
246252
246259
  }
246253
246260
  get isSpinning() {
246254
- return this.#timer !== undefined;
246261
+ return this.#isSpinning;
246255
246262
  }
246256
246263
  get text() {
246257
246264
  return this.#text;
@@ -263121,7 +263128,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263121
263128
  var package_default = {
263122
263129
  name: "@settlemint/sdk-cli",
263123
263130
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263124
- version: "2.3.5-prea6b8850",
263131
+ version: "2.3.5-prf7f294ed",
263125
263132
  type: "module",
263126
263133
  private: false,
263127
263134
  license: "FSL-1.1-MIT",
@@ -263170,8 +263177,8 @@ var package_default = {
263170
263177
  "@inquirer/input": "4.1.12",
263171
263178
  "@inquirer/password": "4.0.15",
263172
263179
  "@inquirer/select": "4.2.3",
263173
- "@settlemint/sdk-js": "2.3.5-prea6b8850",
263174
- "@settlemint/sdk-utils": "2.3.5-prea6b8850",
263180
+ "@settlemint/sdk-js": "2.3.5-prf7f294ed",
263181
+ "@settlemint/sdk-utils": "2.3.5-prf7f294ed",
263175
263182
  "@types/node": "22.15.29",
263176
263183
  "@types/semver": "7.7.0",
263177
263184
  "@types/which": "3.0.4",
@@ -263186,7 +263193,7 @@ var package_default = {
263186
263193
  yoctocolors: "2.1.1"
263187
263194
  },
263188
263195
  peerDependencies: {
263189
- hardhat: "2.24.1"
263196
+ hardhat: "2.24.2"
263190
263197
  },
263191
263198
  peerDependenciesMeta: {
263192
263199
  hardhat: {
@@ -327377,4 +327384,4 @@ async function sdkCliCommand(argv = process.argv) {
327377
327384
  // src/cli.ts
327378
327385
  sdkCliCommand();
327379
327386
 
327380
- //# debugId=AEF6747B273A936764756E2164756E21
327387
+ //# debugId=B167ACFA887097DC64756E2164756E21