@base44-preview/cli 0.1.32-pr.663.d2e3c0d → 0.1.32-pr.663.dc1ede1

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/index.js CHANGED
@@ -249612,8 +249612,11 @@ function parseLimit(value) {
249612
249612
  }
249613
249613
  var READ_ONLY_FILTER_HELP = "Only read-only operations";
249614
249614
  var REFRESH_OPTION_HELP = "Fetch the API spec again instead of using the cached copy (kept 1 hour)";
249615
- function loadSpecTask({ runTask }, refresh) {
249616
- return runTask("Loading the API spec", () => loadSpec({ refresh }), {
249615
+ function quietTask({ runTask, isNonInteractive }, label, operation, messages) {
249616
+ return isNonInteractive ? operation() : runTask(label, operation, messages);
249617
+ }
249618
+ function loadSpecTask(ctx, refresh) {
249619
+ return quietTask(ctx, "Loading the API spec", () => loadSpec({ refresh }), {
249617
249620
  successMessage: "Loaded the API spec"
249618
249621
  });
249619
249622
  }
@@ -249759,7 +249762,7 @@ async function fetchAction(ctx, methodArg, path, options, command) {
249759
249762
  });
249760
249763
  await ensureAuth(ctx);
249761
249764
  const body = await readRequestBody(options.body, ctx.log);
249762
- const response = await ctx.runTask(`Calling ${method} ${path}`, () => sendApiRequest(method, path, body), {
249765
+ const response = await quietTask(ctx, `Calling ${method} ${path}`, () => sendApiRequest(method, path, body), {
249763
249766
  successMessage: `Called ${method} ${path}`,
249764
249767
  errorMessage: "Request failed"
249765
249768
  });
@@ -273365,4 +273368,4 @@ export {
273365
273368
  runCLI
273366
273369
  };
273367
273370
 
273368
- //# debugId=34B2FE9173AAC44664756E2164756E21
273371
+ //# debugId=426C741A046A975D64756E2164756E21