@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 +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/mocks.cjs +1 -1
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.js +1 -1
- package/dist/{usingCtx-BYOZEkiy.cjs → usingCtx-BojKaby2.cjs} +3 -3
- package/dist/usingCtx-BojKaby2.cjs.map +1 -0
- package/dist/{usingCtx-C24YU3KM.js → usingCtx-Dor0Mj1s.js} +2 -2
- package/dist/{usingCtx-C24YU3KM.js.map → usingCtx-Dor0Mj1s.js.map} +1 -1
- package/package.json +2 -2
- package/dist/usingCtx-BYOZEkiy.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { a as clean, c as toPosixPath, d as getErrorMessage, f as toError, i as Hookable, l as write, n as createNodeCache, o as isPathInside, p as camelCase, r as FileManager, s as toFilePath, t as _usingCtx, u as BuildError } from "./usingCtx-
|
|
2
|
+
import { a as clean, c as toPosixPath, d as getErrorMessage, f as toError, i as Hookable, l as write, n as createNodeCache, o as isPathInside, p as camelCase, r as FileManager, s as toFilePath, t as _usingCtx, u as BuildError } from "./usingCtx-Dor0Mj1s.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
5
5
|
import { hash } from "node:crypto";
|
|
@@ -145,11 +145,12 @@ const randomColors = [
|
|
|
145
145
|
function randomCliColor(text) {
|
|
146
146
|
if (!text) return "";
|
|
147
147
|
const index = hash("sha256", text, "buffer").readUInt32BE(0) % randomColors.length;
|
|
148
|
-
|
|
148
|
+
const color = randomColors[index] ?? "white";
|
|
149
|
+
return styleText(color, text);
|
|
149
150
|
}
|
|
150
151
|
//#endregion
|
|
151
152
|
//#region package.json
|
|
152
|
-
var version = "5.0.0-beta.
|
|
153
|
+
var version = "5.0.0-beta.106";
|
|
153
154
|
//#endregion
|
|
154
155
|
//#region src/constants.ts
|
|
155
156
|
/**
|
|
@@ -2459,11 +2460,13 @@ const fileReporter = createReporter({
|
|
|
2459
2460
|
const { diagnostics, config } = result;
|
|
2460
2461
|
if (diagnostics.length === 0) return;
|
|
2461
2462
|
const report = buildReport(result);
|
|
2462
|
-
const
|
|
2463
|
+
const header = config.name ? `# ${config.name} — ${(/* @__PURE__ */ new Date()).toISOString()}` : `# ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
2464
|
+
const sections = [
|
|
2463
2465
|
buildSummarySection(report),
|
|
2464
2466
|
buildProblemSection(diagnostics),
|
|
2465
2467
|
buildTimingSection(report)
|
|
2466
|
-
].filter((section) => section.length > 0)
|
|
2468
|
+
].filter((section) => section.length > 0);
|
|
2469
|
+
const content = stripVTControlCharacters([header, ...sections.map((section) => section.join("\n"))].join("\n\n"));
|
|
2467
2470
|
const baseName = `${[
|
|
2468
2471
|
"kubb",
|
|
2469
2472
|
config.name,
|