@kubb/core 3.6.0 → 3.6.2
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/chunk-E2WLQU27.js +9 -13
- package/dist/chunk-E2WLQU27.js.map +1 -1
- package/dist/chunk-O5ASNFB7.js +14 -14
- package/dist/chunk-O5ASNFB7.js.map +1 -1
- package/dist/{chunk-CGWZQZJF.cjs → chunk-SD6UC23P.cjs} +4 -4
- package/dist/{chunk-CGWZQZJF.cjs.map → chunk-SD6UC23P.cjs.map} +1 -1
- package/dist/{chunk-OSNPTN3U.cjs → chunk-SG5E2M6I.cjs} +65 -65
- package/dist/{chunk-OSNPTN3U.cjs.map → chunk-SG5E2M6I.cjs.map} +1 -1
- package/dist/{chunk-WUEIS5RI.cjs → chunk-WSW653MY.cjs} +31 -31
- package/dist/{chunk-WUEIS5RI.cjs.map → chunk-WSW653MY.cjs.map} +1 -1
- package/dist/{chunk-GWUWH5FS.cjs → chunk-XV4UXIWI.cjs} +20 -24
- package/dist/chunk-XV4UXIWI.cjs.map +1 -0
- package/dist/chunk-YYMV5PIX.js +16 -16
- package/dist/chunk-YYMV5PIX.js.map +1 -1
- package/dist/index.cjs +47 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/logger.cjs +6 -6
- package/dist/mocks.cjs +11 -11
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.js +2 -2
- package/dist/mocks.js.map +1 -1
- package/dist/{prompt-YAN5XLN7.cjs → prompt-NUMBDLXI.cjs} +12 -12
- package/dist/{prompt-YAN5XLN7.cjs.map → prompt-NUMBDLXI.cjs.map} +1 -1
- package/dist/prompt-RQXXVSD5.js +8 -8
- package/dist/prompt-RQXXVSD5.js.map +1 -1
- package/dist/transformers.cjs +22 -22
- package/dist/utils.cjs +17 -17
- package/package.json +10 -10
- package/dist/chunk-GWUWH5FS.cjs.map +0 -1
package/dist/chunk-E2WLQU27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import seedrandom from 'seedrandom';
|
|
2
2
|
import { isatty } from 'tty';
|
|
3
3
|
import { EventEmitter as EventEmitter$1 } from 'node:events';
|
|
4
|
-
import {
|
|
4
|
+
import { sep, resolve } from 'node:path';
|
|
5
5
|
import { write } from '@kubb/fs';
|
|
6
6
|
import { formatWithOptions } from 'node:util';
|
|
7
7
|
import p$1 from 'node:process';
|
|
@@ -60,8 +60,8 @@ function a(n2) {
|
|
|
60
60
|
a.open = "";
|
|
61
61
|
a.close = "";
|
|
62
62
|
function C(n2 = false) {
|
|
63
|
-
let e = typeof process != "undefined" ? process :
|
|
64
|
-
return !("NO_COLOR" in i2 || g.includes("--no-color")) && ("FORCE_COLOR" in i2 || g.includes("--color") || (e == null ?
|
|
63
|
+
let e = typeof process != "undefined" ? process : void 0, i2 = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
|
|
64
|
+
return !("NO_COLOR" in i2 || g.includes("--no-color")) && ("FORCE_COLOR" in i2 || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n2 && i2.TERM !== "dumb" || "CI" in i2) || typeof window != "undefined" && !!window.chrome;
|
|
65
65
|
}
|
|
66
66
|
function p(n2 = false) {
|
|
67
67
|
let e = C(n2), i2 = (r3, t2, c2, o) => {
|
|
@@ -109,7 +109,6 @@ var EventEmitter = class {
|
|
|
109
109
|
|
|
110
110
|
// ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/core.mjs
|
|
111
111
|
var LogLevels = {
|
|
112
|
-
silent: Number.NEGATIVE_INFINITY,
|
|
113
112
|
fatal: 0,
|
|
114
113
|
error: 0,
|
|
115
114
|
warn: 1,
|
|
@@ -117,9 +116,6 @@ var LogLevels = {
|
|
|
117
116
|
info: 3,
|
|
118
117
|
success: 3,
|
|
119
118
|
fail: 3,
|
|
120
|
-
ready: 3,
|
|
121
|
-
start: 3,
|
|
122
|
-
box: 3,
|
|
123
119
|
debug: 4,
|
|
124
120
|
trace: 5,
|
|
125
121
|
verbose: Number.POSITIVE_INFINITY
|
|
@@ -202,7 +198,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
202
198
|
continue;
|
|
203
199
|
}
|
|
204
200
|
const value = baseObject[key];
|
|
205
|
-
if (value === null || value ===
|
|
201
|
+
if (value === null || value === void 0) {
|
|
206
202
|
continue;
|
|
207
203
|
}
|
|
208
204
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
@@ -588,13 +584,13 @@ var Consola = class _Consola {
|
|
|
588
584
|
}
|
|
589
585
|
};
|
|
590
586
|
function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
|
|
591
|
-
if (input ===
|
|
587
|
+
if (input === void 0) {
|
|
592
588
|
return defaultLevel;
|
|
593
589
|
}
|
|
594
590
|
if (typeof input === "number") {
|
|
595
591
|
return input;
|
|
596
592
|
}
|
|
597
|
-
if (types[input] && types[input].level !==
|
|
593
|
+
if (types[input] && types[input].level !== void 0) {
|
|
598
594
|
return types[input].level;
|
|
599
595
|
}
|
|
600
596
|
return defaultLevel;
|
|
@@ -693,7 +689,7 @@ function clearBleed(index, string, open, close, replace) {
|
|
|
693
689
|
return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
694
690
|
}
|
|
695
691
|
function filterEmpty(open, close, replace = open, at = open.length + 1) {
|
|
696
|
-
return (string) => string || !(string === "" || string ===
|
|
692
|
+
return (string) => string || !(string === "" || string === void 0) ? clearBleed(
|
|
697
693
|
("" + string).indexOf(close, at),
|
|
698
694
|
string,
|
|
699
695
|
open,
|
|
@@ -975,7 +971,7 @@ function ansiRegex2({ onlyFirst = false } = {}) {
|
|
|
975
971
|
`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
|
|
976
972
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
977
973
|
].join("|");
|
|
978
|
-
return new RegExp(pattern, onlyFirst ?
|
|
974
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
979
975
|
}
|
|
980
976
|
var regex = ansiRegex2();
|
|
981
977
|
function stripAnsi2(string) {
|
|
@@ -1124,7 +1120,7 @@ ${indent}`);
|
|
|
1124
1120
|
message + (additional.length > 0 ? "\n" + additional.join("\n") : "")
|
|
1125
1121
|
),
|
|
1126
1122
|
{
|
|
1127
|
-
title: logObj.title ? characterFormat(logObj.title) :
|
|
1123
|
+
title: logObj.title ? characterFormat(logObj.title) : void 0,
|
|
1128
1124
|
style: logObj.style
|
|
1129
1125
|
}
|
|
1130
1126
|
);
|