@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.
@@ -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 { resolve, sep } from 'node:path';
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 : undefined, i2 = (e == null ? undefined : e.env) || {}, g = (e == null ? undefined : e.argv) || [];
64
- return !("NO_COLOR" in i2 || g.includes("--no-color")) && ("FORCE_COLOR" in i2 || g.includes("--color") || (e == null ? undefined : e.platform) === "win32" || n2 && i2.TERM !== "dumb" || "CI" in i2) || typeof window != "undefined" && !!window.chrome;
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 === undefined) {
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 === undefined) {
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 !== undefined) {
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 === undefined) ? clearBleed(
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 ? undefined : "g");
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) : undefined,
1123
+ title: logObj.title ? characterFormat(logObj.title) : void 0,
1128
1124
  style: logObj.style
1129
1125
  }
1130
1126
  );