@kubb/core 5.0.0-beta.104 → 5.0.0-beta.106

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.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_usingCtx = require("./usingCtx-BYOZEkiy.cjs");
2
+ const require_usingCtx = require("./usingCtx-BojKaby2.cjs");
3
3
  let node_async_hooks = require("node:async_hooks");
4
4
  let node_util = require("node:util");
5
5
  let node_crypto = require("node:crypto");
@@ -147,11 +147,12 @@ const randomColors = [
147
147
  function randomCliColor(text) {
148
148
  if (!text) return "";
149
149
  const index = (0, node_crypto.hash)("sha256", text, "buffer").readUInt32BE(0) % randomColors.length;
150
- return (0, node_util.styleText)(randomColors[index] ?? "white", text);
150
+ const color = randomColors[index] ?? "white";
151
+ return (0, node_util.styleText)(color, text);
151
152
  }
152
153
  //#endregion
153
154
  //#region package.json
154
- var version = "5.0.0-beta.104";
155
+ var version = "5.0.0-beta.106";
155
156
  //#endregion
156
157
  //#region src/constants.ts
157
158
  /**
@@ -2461,11 +2462,13 @@ const fileReporter = createReporter({
2461
2462
  const { diagnostics, config } = result;
2462
2463
  if (diagnostics.length === 0) return;
2463
2464
  const report = buildReport(result);
2464
- const content = (0, node_util.stripVTControlCharacters)([config.name ? `# ${config.name} — ${(/* @__PURE__ */ new Date()).toISOString()}` : `# ${(/* @__PURE__ */ new Date()).toISOString()}`, ...[
2465
+ const header = config.name ? `# ${config.name} — ${(/* @__PURE__ */ new Date()).toISOString()}` : `# ${(/* @__PURE__ */ new Date()).toISOString()}`;
2466
+ const sections = [
2465
2467
  buildSummarySection(report),
2466
2468
  buildProblemSection(diagnostics),
2467
2469
  buildTimingSection(report)
2468
- ].filter((section) => section.length > 0).map((section) => section.join("\n"))].join("\n\n"));
2470
+ ].filter((section) => section.length > 0);
2471
+ const content = (0, node_util.stripVTControlCharacters)([header, ...sections.map((section) => section.join("\n"))].join("\n\n"));
2469
2472
  const baseName = `${[
2470
2473
  "kubb",
2471
2474
  config.name,