@base44-preview/cli 0.0.47-pr.439.fabf635 → 0.0.48-pr.443.3b7583c

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
@@ -243145,7 +243145,7 @@ import { join as join9 } from "node:path";
243145
243145
  // package.json
243146
243146
  var package_default = {
243147
243147
  name: "base44",
243148
- version: "0.0.47",
243148
+ version: "0.0.48",
243149
243149
  description: "Base44 CLI - Unified interface for managing Base44 applications",
243150
243150
  type: "module",
243151
243151
  bin: {
@@ -252877,22 +252877,37 @@ var $setGracefulCleanup = tmp.setGracefulCleanup;
252877
252877
  var colorByType = {
252878
252878
  error: theme.styles.error,
252879
252879
  warn: theme.styles.warn,
252880
- log: (text) => text
252880
+ log: (input) => input
252881
+ };
252882
+ var stringify = (item) => {
252883
+ if (typeof item === "string") {
252884
+ return item;
252885
+ }
252886
+ if (item instanceof Error) {
252887
+ return item.toString();
252888
+ }
252889
+ try {
252890
+ return JSON.stringify(item) ?? String(item);
252891
+ } catch {
252892
+ return String(item);
252893
+ }
252881
252894
  };
252882
252895
  function createDevLogger() {
252883
- const print = (type, msg) => {
252896
+ const print = (type, ...args) => {
252884
252897
  const colorize = colorByType[type];
252885
- console[type](colorize(msg));
252898
+ console[type](...args.map((item) => {
252899
+ return colorize(stringify(item));
252900
+ }));
252886
252901
  };
252887
252902
  return {
252888
- log: (msg) => print("log", msg),
252903
+ log: (...args) => print("log", ...args),
252889
252904
  error: (msg, err) => {
252890
252905
  print("error", msg);
252891
252906
  if (err) {
252892
- print("error", String(err));
252907
+ print("error", err);
252893
252908
  }
252894
252909
  },
252895
- warn: (msg) => print("warn", msg)
252910
+ warn: (...args) => print("warn", ...args)
252896
252911
  };
252897
252912
  }
252898
252913
 
@@ -260127,4 +260142,4 @@ export {
260127
260142
  CLIExitError
260128
260143
  };
260129
260144
 
260130
- //# debugId=AC4685974E26477764756E2164756E21
260145
+ //# debugId=0624B80C7FAF1ED764756E2164756E21