@bonginkan/maria 4.3.19 → 4.3.20

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/index.js CHANGED
@@ -14706,7 +14706,20 @@ var Logger = class {
14706
14706
  console[level](JSON.stringify(payload));
14707
14707
  return;
14708
14708
  }
14709
- console[level](tag, ...args);
14709
+ const debugMode = process.env.MARIA_DEBUG === "1";
14710
+ const isError = tag.includes("[ERROR]");
14711
+ let outArgs = args;
14712
+ if (isError && !debugMode) {
14713
+ const filtered = [];
14714
+ for (const a of args) {
14715
+ const t = typeof a;
14716
+ if (a == null || t === "string" || t === "number" || t === "boolean") {
14717
+ filtered.push(a);
14718
+ }
14719
+ }
14720
+ outArgs = filtered;
14721
+ }
14722
+ console[level](tag, ...outArgs);
14710
14723
  }
14711
14724
  debug(...args) {
14712
14725
  if (this.level <= 0 /* DEBUG */) {
@@ -16845,7 +16858,7 @@ ${formatted}`;
16845
16858
  const footer = `
16846
16859
  ---
16847
16860
 
16848
- *Generated by MARIA CODE v4.3.19 on ${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}*
16861
+ *Generated by MARIA CODE v4.3.20 on ${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}*
16849
16862
  `;
16850
16863
  formatted = `${formatted}${footer}`;
16851
16864
  return formatted;
@@ -16855,7 +16868,7 @@ function generateMetadata(docType) {
16855
16868
  return `---
16856
16869
  type: ${docType}
16857
16870
  created: ${now.toISOString()}
16858
- generator: MARIA CODE v4.3.19
16871
+ generator: MARIA CODE v4.3.20
16859
16872
  ---`;
16860
16873
  }
16861
16874
  async function saveDocumentToFile(content, docType, userHint) {