@skuba-lib/api 1.1.0-replace-global-vars-20251121010036 → 2.0.0-esbuild-bundle-support-20260101041935
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/buildkite/package.json +2 -2
- package/git/package.json +2 -2
- package/github/package.json +2 -2
- package/lib/buildkite/index.cjs +3 -3
- package/lib/buildkite/index.d.cts +1 -1
- package/lib/buildkite/{index.d.ts → index.d.mts} +1 -1
- package/lib/buildkite/index.mjs +5 -0
- package/lib/{buildkite-1CRYVvZP.js → buildkite-DYEmlPsk.mjs} +4 -4
- package/lib/{buildkite-RN2jSKgM.cjs → buildkite-LAIGLOBs.cjs} +3 -3
- package/lib/{chunk-K8W512Wg.js → chunk-CwYMPI_t.mjs} +22 -15
- package/lib/{error-Dtw3Bme0.js → error-CyYI05iP.mjs} +102 -74
- package/lib/{error-DyX--B0G.cjs → error-r4ZSt5Ag.cjs} +127 -94
- package/lib/{exec-CerwAtJ4.cjs → exec-Bw40ID4u.cjs} +3120 -3123
- package/lib/{exec-Bsfu09Vc.js → exec-DlNU-Xkx.mjs} +3124 -3127
- package/lib/git/index.cjs +2 -2
- package/lib/git/index.d.cts +1 -1
- package/lib/git/{index.d.ts → index.d.mts} +1 -1
- package/lib/git/{index.js → index.mjs} +2 -2
- package/lib/{git-D1DL37pj.js → git-BXsbRhLT.mjs} +4 -4
- package/lib/{git-1r8n0Ql_.cjs → git-DpIxcywT.cjs} +7 -7
- package/lib/github/index.cjs +3 -3
- package/lib/github/index.d.cts +1 -2
- package/lib/github/{index.d.ts → index.d.mts} +1 -2
- package/lib/github/{index.js → index.mjs} +3 -3
- package/lib/{github-BDfQbJ9r.js → github-D00T8vzj.mjs} +4 -4
- package/lib/{github-Cvxu23H7.cjs → github-DQxNkeZF.cjs} +3 -3
- package/lib/{index-CG1o9ZNO.d.ts → index-4aCFuPgQ.d.mts} +1 -1
- package/lib/{index-BEHpk3ux.d.cts → index-DfhDLrNc.d.cts} +2 -2
- package/lib/index.cjs +6 -6
- package/lib/index.d.cts +4 -4
- package/lib/index.d.mts +5 -0
- package/lib/index.mjs +8 -0
- package/lib/net/index.cjs +3 -3
- package/lib/net/index.d.cts +1 -1
- package/lib/net/index.d.mts +2 -0
- package/lib/net/index.mjs +5 -0
- package/lib/{net-C51MWaxZ.cjs → net-BWaaW4mf.cjs} +3 -3
- package/lib/{net-BA5LFLyH.js → net-C4QI0aiC.mjs} +3 -3
- package/net/package.json +2 -2
- package/package.json +17 -15
- package/lib/buildkite/index.js +0 -5
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -8
- package/lib/net/index.d.ts +0 -2
- package/lib/net/index.js +0 -5
- /package/lib/{index-D9KFwvR0.d.cts → index-B8rqBqBj.d.cts} +0 -0
- /package/lib/{index-Ca4pAFAX.d.ts → index-BOr919w6.d.cts} +0 -0
- /package/lib/{index--0RIE51B.d.ts → index-BqiB0-6w.d.mts} +0 -0
- /package/lib/{index-CpIDOjaR.d.cts → index-CW8ZTeZU.d.mts} +0 -0
- /package/lib/{index-gmwX6rJ_.d.ts → index-CZi-UcD_.d.mts} +0 -0
- /package/lib/{index-CdA0rEdI.d.cts → index-Dl0KmK1O.d.cts} +0 -0
package/buildkite/package.json
CHANGED
package/git/package.json
CHANGED
package/github/package.json
CHANGED
package/lib/buildkite/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('../error-
|
|
2
|
-
require('../exec-
|
|
3
|
-
const require_buildkite = require('../buildkite-
|
|
1
|
+
require('../error-r4ZSt5Ag.cjs');
|
|
2
|
+
require('../exec-Bw40ID4u.cjs');
|
|
3
|
+
const require_buildkite = require('../buildkite-LAIGLOBs.cjs');
|
|
4
4
|
|
|
5
5
|
exports.annotate = require_buildkite.annotate;
|
|
6
6
|
exports.md = require_buildkite.md;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as annotate, n as md, r as AnnotationStyle } from "../index-
|
|
1
|
+
import { i as annotate, n as md, r as AnnotationStyle } from "../index-BOr919w6.cjs";
|
|
2
2
|
export { AnnotationStyle, annotate, md };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as annotate, n as md, r as AnnotationStyle } from "../index-
|
|
1
|
+
import { i as annotate, n as md, r as AnnotationStyle } from "../index-CW8ZTeZU.mjs";
|
|
2
2
|
export { AnnotationStyle, annotate, md };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { n as exec, r as hasCommand } from "./exec-
|
|
3
|
-
import { n as log } from "./error-
|
|
1
|
+
import { n as __exportAll } from "./chunk-CwYMPI_t.mjs";
|
|
2
|
+
import { n as exec, r as hasCommand } from "./exec-DlNU-Xkx.mjs";
|
|
3
|
+
import { n as log } from "./error-CyYI05iP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/buildkite/annotate.ts
|
|
6
6
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await hasCommand("buildkite-agent"));
|
|
@@ -40,7 +40,7 @@ const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`"
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/buildkite/index.ts
|
|
43
|
-
var buildkite_exports = /* @__PURE__ */
|
|
43
|
+
var buildkite_exports = /* @__PURE__ */ __exportAll({
|
|
44
44
|
annotate: () => annotate,
|
|
45
45
|
md: () => md
|
|
46
46
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_error = require('./error-
|
|
2
|
-
const require_exec = require('./exec-
|
|
1
|
+
const require_error = require('./error-r4ZSt5Ag.cjs');
|
|
2
|
+
const require_exec = require('./exec-Bw40ID4u.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/buildkite/annotate.ts
|
|
5
5
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await require_exec.hasCommand("buildkite-agent"));
|
|
@@ -39,7 +39,7 @@ const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`"
|
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/buildkite/index.ts
|
|
42
|
-
var buildkite_exports = /* @__PURE__ */ require_error.
|
|
42
|
+
var buildkite_exports = /* @__PURE__ */ require_error.__exportAll({
|
|
43
43
|
annotate: () => annotate,
|
|
44
44
|
md: () => md
|
|
45
45
|
});
|
|
@@ -7,24 +7,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
7
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
var __export = (all) => {
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
|
+
var __exportAll = (all, symbols) => {
|
|
14
12
|
let target = {};
|
|
15
|
-
for (var name in all)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
for (var name in all) {
|
|
14
|
+
__defProp(target, name, {
|
|
15
|
+
get: all[name],
|
|
16
|
+
enumerable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (symbols) {
|
|
20
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
21
|
+
}
|
|
19
22
|
return target;
|
|
20
23
|
};
|
|
21
24
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
+
key = keys[i];
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
29
|
+
__defProp(to, key, {
|
|
30
|
+
get: ((k) => from[k]).bind(null, key),
|
|
31
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
return to;
|
|
30
37
|
};
|
|
@@ -36,4 +43,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
43
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
37
44
|
|
|
38
45
|
//#endregion
|
|
39
|
-
export { __toESM as a, __require as i,
|
|
46
|
+
export { __toESM as a, __require as i, __exportAll as n, __reExport as r, __commonJSMin as t };
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
import { styleText } from "node:util";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
3
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js
|
|
4
4
|
/** A special constant with type `never` */
|
|
5
5
|
const NEVER = Object.freeze({ status: "aborted" });
|
|
6
6
|
function $constructor(name, initializer$2, params) {
|
|
7
7
|
function init(inst, def) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
9
|
+
value: {
|
|
10
|
+
def,
|
|
11
|
+
constr: _,
|
|
12
|
+
traits: /* @__PURE__ */ new Set()
|
|
13
|
+
},
|
|
11
14
|
enumerable: false
|
|
12
15
|
});
|
|
13
|
-
(
|
|
16
|
+
if (inst._zod.traits.has(name)) return;
|
|
14
17
|
inst._zod.traits.add(name);
|
|
15
18
|
initializer$2(inst, def);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
const proto = _.prototype;
|
|
20
|
+
const keys = Object.keys(proto);
|
|
21
|
+
for (let i = 0; i < keys.length; i++) {
|
|
22
|
+
const k = keys[i];
|
|
23
|
+
if (!(k in inst)) inst[k] = proto[k].bind(inst);
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
const Parent = params?.Parent ?? Object;
|
|
21
27
|
class Definition extends Parent {}
|
|
22
28
|
Object.defineProperty(Definition, "name", { value: name });
|
|
23
29
|
function _(def) {
|
|
24
|
-
var _a;
|
|
30
|
+
var _a$1;
|
|
25
31
|
const inst = params?.Parent ? new Definition() : this;
|
|
26
32
|
init(inst, def);
|
|
27
|
-
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
33
|
+
(_a$1 = inst._zod).deferred ?? (_a$1.deferred = []);
|
|
28
34
|
for (const fn of inst._zod.deferred) fn();
|
|
29
35
|
return inst;
|
|
30
36
|
}
|
|
@@ -36,7 +42,6 @@ function $constructor(name, initializer$2, params) {
|
|
|
36
42
|
Object.defineProperty(_, "name", { value: name });
|
|
37
43
|
return _;
|
|
38
44
|
}
|
|
39
|
-
const $brand = Symbol("zod_brand");
|
|
40
45
|
var $ZodAsyncError = class extends Error {
|
|
41
46
|
constructor() {
|
|
42
47
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
@@ -55,7 +60,7 @@ function config(newConfig) {
|
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
63
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
|
|
59
64
|
function getEnumValues(entries) {
|
|
60
65
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
61
66
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -130,6 +135,9 @@ function mergeDefs(...defs) {
|
|
|
130
135
|
function esc(str) {
|
|
131
136
|
return JSON.stringify(str);
|
|
132
137
|
}
|
|
138
|
+
function slugify(input) {
|
|
139
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
140
|
+
}
|
|
133
141
|
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
134
142
|
function isObject$1(data) {
|
|
135
143
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
@@ -147,6 +155,7 @@ function isPlainObject(o) {
|
|
|
147
155
|
if (isObject$1(o) === false) return false;
|
|
148
156
|
const ctor = o.constructor;
|
|
149
157
|
if (ctor === void 0) return true;
|
|
158
|
+
if (typeof ctor !== "function") return true;
|
|
150
159
|
const prot = ctor.prototype;
|
|
151
160
|
if (isObject$1(prot) === false) return false;
|
|
152
161
|
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
|
|
@@ -329,8 +338,8 @@ function aborted(x, startIndex = 0) {
|
|
|
329
338
|
}
|
|
330
339
|
function prefixIssues(path, issues) {
|
|
331
340
|
return issues.map((iss) => {
|
|
332
|
-
var _a;
|
|
333
|
-
(_a = iss).path ?? (_a.path = []);
|
|
341
|
+
var _a$1;
|
|
342
|
+
(_a$1 = iss).path ?? (_a$1.path = []);
|
|
334
343
|
iss.path.unshift(path);
|
|
335
344
|
return iss;
|
|
336
345
|
});
|
|
@@ -366,7 +375,7 @@ function issue(...args) {
|
|
|
366
375
|
}
|
|
367
376
|
|
|
368
377
|
//#endregion
|
|
369
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
378
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
|
|
370
379
|
const initializer$1 = (inst, def) => {
|
|
371
380
|
inst.name = "$ZodError";
|
|
372
381
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -424,7 +433,7 @@ function formatError(error, mapper = (issue$1) => issue$1.message) {
|
|
|
424
433
|
}
|
|
425
434
|
|
|
426
435
|
//#endregion
|
|
427
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
436
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
|
|
428
437
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
429
438
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
430
439
|
const result = schema._zod.run({
|
|
@@ -528,7 +537,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
528
537
|
const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
529
538
|
|
|
530
539
|
//#endregion
|
|
531
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
540
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js
|
|
532
541
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
533
542
|
const cuid2 = /^[0-9a-z]+$/;
|
|
534
543
|
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -558,7 +567,6 @@ const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-
|
|
|
558
567
|
const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
559
568
|
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
560
569
|
const base64url = /^[A-Za-z0-9_-]*$/;
|
|
561
|
-
const hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
562
570
|
const e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
563
571
|
const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
564
572
|
const date$1 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -587,12 +595,12 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
587
595
|
const uppercase = /^[^a-z]*$/;
|
|
588
596
|
|
|
589
597
|
//#endregion
|
|
590
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
598
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
591
599
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
592
|
-
var _a;
|
|
600
|
+
var _a$1;
|
|
593
601
|
inst._zod ?? (inst._zod = {});
|
|
594
602
|
inst._zod.def = def;
|
|
595
|
-
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
603
|
+
(_a$1 = inst._zod).onattach ?? (_a$1.onattach = []);
|
|
596
604
|
});
|
|
597
605
|
const numericOriginMap = {
|
|
598
606
|
number: "number",
|
|
@@ -646,8 +654,8 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
646
654
|
const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
647
655
|
$ZodCheck.init(inst, def);
|
|
648
656
|
inst._zod.onattach.push((inst$1) => {
|
|
649
|
-
var _a;
|
|
650
|
-
(_a = inst$1._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
657
|
+
var _a$1;
|
|
658
|
+
(_a$1 = inst$1._zod.bag).multipleOf ?? (_a$1.multipleOf = def.value);
|
|
651
659
|
});
|
|
652
660
|
inst._zod.check = (payload) => {
|
|
653
661
|
if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
@@ -730,9 +738,9 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
730
738
|
};
|
|
731
739
|
});
|
|
732
740
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
733
|
-
var _a;
|
|
741
|
+
var _a$1;
|
|
734
742
|
$ZodCheck.init(inst, def);
|
|
735
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
743
|
+
(_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
|
|
736
744
|
const val = payload.value;
|
|
737
745
|
return !nullish(val) && val.length !== void 0;
|
|
738
746
|
});
|
|
@@ -756,9 +764,9 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
756
764
|
};
|
|
757
765
|
});
|
|
758
766
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
759
|
-
var _a;
|
|
767
|
+
var _a$1;
|
|
760
768
|
$ZodCheck.init(inst, def);
|
|
761
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
769
|
+
(_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
|
|
762
770
|
const val = payload.value;
|
|
763
771
|
return !nullish(val) && val.length !== void 0;
|
|
764
772
|
});
|
|
@@ -782,9 +790,9 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
782
790
|
};
|
|
783
791
|
});
|
|
784
792
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
785
|
-
var _a;
|
|
793
|
+
var _a$1;
|
|
786
794
|
$ZodCheck.init(inst, def);
|
|
787
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
795
|
+
(_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
|
|
788
796
|
const val = payload.value;
|
|
789
797
|
return !nullish(val) && val.length !== void 0;
|
|
790
798
|
});
|
|
@@ -818,7 +826,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
818
826
|
};
|
|
819
827
|
});
|
|
820
828
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
821
|
-
var _a, _b;
|
|
829
|
+
var _a$1, _b;
|
|
822
830
|
$ZodCheck.init(inst, def);
|
|
823
831
|
inst._zod.onattach.push((inst$1) => {
|
|
824
832
|
const bag = inst$1._zod.bag;
|
|
@@ -828,7 +836,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
828
836
|
bag.patterns.add(def.pattern);
|
|
829
837
|
}
|
|
830
838
|
});
|
|
831
|
-
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
839
|
+
if (def.pattern) (_a$1 = inst._zod).check ?? (_a$1.check = (payload) => {
|
|
832
840
|
def.pattern.lastIndex = 0;
|
|
833
841
|
if (def.pattern.test(payload.value)) return;
|
|
834
842
|
payload.issues.push({
|
|
@@ -942,7 +950,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
942
950
|
});
|
|
943
951
|
|
|
944
952
|
//#endregion
|
|
945
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
953
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js
|
|
946
954
|
var Doc = class {
|
|
947
955
|
constructor(args = []) {
|
|
948
956
|
this.content = [];
|
|
@@ -974,17 +982,17 @@ var Doc = class {
|
|
|
974
982
|
};
|
|
975
983
|
|
|
976
984
|
//#endregion
|
|
977
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
985
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
|
|
978
986
|
const version = {
|
|
979
987
|
major: 4,
|
|
980
988
|
minor: 1,
|
|
981
|
-
patch:
|
|
989
|
+
patch: 13
|
|
982
990
|
};
|
|
983
991
|
|
|
984
992
|
//#endregion
|
|
985
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
993
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
986
994
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
987
|
-
var _a;
|
|
995
|
+
var _a$1;
|
|
988
996
|
inst ?? (inst = {});
|
|
989
997
|
inst._zod.def = def;
|
|
990
998
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -993,7 +1001,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
993
1001
|
if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
|
|
994
1002
|
for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
|
|
995
1003
|
if (checks.length === 0) {
|
|
996
|
-
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
1004
|
+
(_a$1 = inst._zod).deferred ?? (_a$1.deferred = []);
|
|
997
1005
|
inst._zod.deferred?.push(() => {
|
|
998
1006
|
inst._zod.run = inst._zod.parse;
|
|
999
1007
|
});
|
|
@@ -1129,7 +1137,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1129
1137
|
code: "invalid_format",
|
|
1130
1138
|
format: "url",
|
|
1131
1139
|
note: "Invalid hostname",
|
|
1132
|
-
pattern: hostname.source,
|
|
1140
|
+
pattern: def.hostname.source,
|
|
1133
1141
|
input: payload.value,
|
|
1134
1142
|
inst,
|
|
1135
1143
|
continue: !def.abort
|
|
@@ -1208,18 +1216,12 @@ const $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, d
|
|
|
1208
1216
|
const $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
1209
1217
|
def.pattern ?? (def.pattern = ipv4);
|
|
1210
1218
|
$ZodStringFormat.init(inst, def);
|
|
1211
|
-
inst._zod.
|
|
1212
|
-
const bag = inst$1._zod.bag;
|
|
1213
|
-
bag.format = `ipv4`;
|
|
1214
|
-
});
|
|
1219
|
+
inst._zod.bag.format = `ipv4`;
|
|
1215
1220
|
});
|
|
1216
1221
|
const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
1217
1222
|
def.pattern ?? (def.pattern = ipv6);
|
|
1218
1223
|
$ZodStringFormat.init(inst, def);
|
|
1219
|
-
inst._zod.
|
|
1220
|
-
const bag = inst$1._zod.bag;
|
|
1221
|
-
bag.format = `ipv6`;
|
|
1222
|
-
});
|
|
1224
|
+
inst._zod.bag.format = `ipv6`;
|
|
1223
1225
|
inst._zod.check = (payload) => {
|
|
1224
1226
|
try {
|
|
1225
1227
|
new URL(`http://[${payload.value}]`);
|
|
@@ -1275,9 +1277,7 @@ function isValidBase64(data) {
|
|
|
1275
1277
|
const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
1276
1278
|
def.pattern ?? (def.pattern = base64);
|
|
1277
1279
|
$ZodStringFormat.init(inst, def);
|
|
1278
|
-
inst._zod.
|
|
1279
|
-
inst$1._zod.bag.contentEncoding = "base64";
|
|
1280
|
-
});
|
|
1280
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
1281
1281
|
inst._zod.check = (payload) => {
|
|
1282
1282
|
if (isValidBase64(payload.value)) return;
|
|
1283
1283
|
payload.issues.push({
|
|
@@ -1297,9 +1297,7 @@ function isValidBase64URL(data) {
|
|
|
1297
1297
|
const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1298
1298
|
def.pattern ?? (def.pattern = base64url);
|
|
1299
1299
|
$ZodStringFormat.init(inst, def);
|
|
1300
|
-
inst._zod.
|
|
1301
|
-
inst$1._zod.bag.contentEncoding = "base64url";
|
|
1302
|
-
});
|
|
1300
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
1303
1301
|
inst._zod.check = (payload) => {
|
|
1304
1302
|
if (isValidBase64URL(payload.value)) return;
|
|
1305
1303
|
payload.issues.push({
|
|
@@ -1363,7 +1361,7 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
1363
1361
|
return payload;
|
|
1364
1362
|
};
|
|
1365
1363
|
});
|
|
1366
|
-
const $ZodNumberFormat = /* @__PURE__ */ $constructor("$
|
|
1364
|
+
const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1367
1365
|
$ZodCheckNumberFormat.init(inst, def);
|
|
1368
1366
|
$ZodNumber.init(inst, def);
|
|
1369
1367
|
});
|
|
@@ -1438,7 +1436,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1438
1436
|
const keySet = def.keySet;
|
|
1439
1437
|
const _catchall = def.catchall._zod;
|
|
1440
1438
|
const t = _catchall.def.type;
|
|
1441
|
-
for (const key
|
|
1439
|
+
for (const key in input) {
|
|
1442
1440
|
if (keySet.has(key)) continue;
|
|
1443
1441
|
if (t === "never") {
|
|
1444
1442
|
unrecognized.push(key);
|
|
@@ -1921,8 +1919,8 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
|
|
|
1921
1919
|
$ZodType.init(inst, def);
|
|
1922
1920
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1923
1921
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1924
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
1925
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
1922
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
1923
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
1926
1924
|
inst._zod.parse = (payload, ctx) => {
|
|
1927
1925
|
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
1928
1926
|
const result = def.innerType._zod.run(payload, ctx);
|
|
@@ -1962,20 +1960,19 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
1962
1960
|
}
|
|
1963
1961
|
|
|
1964
1962
|
//#endregion
|
|
1965
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
1966
|
-
|
|
1967
|
-
const $input = Symbol("ZodInput");
|
|
1963
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
|
|
1964
|
+
var _a;
|
|
1968
1965
|
var $ZodRegistry = class {
|
|
1969
1966
|
constructor() {
|
|
1970
1967
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
1971
1968
|
this._idmap = /* @__PURE__ */ new Map();
|
|
1972
1969
|
}
|
|
1973
1970
|
add(schema, ..._meta) {
|
|
1974
|
-
const meta = _meta[0];
|
|
1975
|
-
this._map.set(schema, meta);
|
|
1976
|
-
if (meta && typeof meta === "object" && "id" in meta) {
|
|
1977
|
-
if (this._idmap.has(meta.id)) throw new Error(`ID ${meta.id} already exists in the registry`);
|
|
1978
|
-
this._idmap.set(meta.id, schema);
|
|
1971
|
+
const meta$2 = _meta[0];
|
|
1972
|
+
this._map.set(schema, meta$2);
|
|
1973
|
+
if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) {
|
|
1974
|
+
if (this._idmap.has(meta$2.id)) throw new Error(`ID ${meta$2.id} already exists in the registry`);
|
|
1975
|
+
this._idmap.set(meta$2.id, schema);
|
|
1979
1976
|
}
|
|
1980
1977
|
return this;
|
|
1981
1978
|
}
|
|
@@ -1985,8 +1982,8 @@ var $ZodRegistry = class {
|
|
|
1985
1982
|
return this;
|
|
1986
1983
|
}
|
|
1987
1984
|
remove(schema) {
|
|
1988
|
-
const meta = this._map.get(schema);
|
|
1989
|
-
if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
|
|
1985
|
+
const meta$2 = this._map.get(schema);
|
|
1986
|
+
if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.delete(meta$2.id);
|
|
1990
1987
|
this._map.delete(schema);
|
|
1991
1988
|
return this;
|
|
1992
1989
|
}
|
|
@@ -2010,10 +2007,11 @@ var $ZodRegistry = class {
|
|
|
2010
2007
|
function registry() {
|
|
2011
2008
|
return new $ZodRegistry();
|
|
2012
2009
|
}
|
|
2013
|
-
|
|
2010
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2011
|
+
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2014
2012
|
|
|
2015
2013
|
//#endregion
|
|
2016
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
2014
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
|
|
2017
2015
|
function _string(Class, params) {
|
|
2018
2016
|
return new Class({
|
|
2019
2017
|
type: "string",
|
|
@@ -2406,6 +2404,9 @@ function _toLowerCase() {
|
|
|
2406
2404
|
function _toUpperCase() {
|
|
2407
2405
|
return _overwrite((input) => input.toUpperCase());
|
|
2408
2406
|
}
|
|
2407
|
+
function _slugify() {
|
|
2408
|
+
return _overwrite((input) => slugify(input));
|
|
2409
|
+
}
|
|
2409
2410
|
function _array(Class, element, params) {
|
|
2410
2411
|
return new Class({
|
|
2411
2412
|
type: "array",
|
|
@@ -2447,9 +2448,33 @@ function _check(fn, params) {
|
|
|
2447
2448
|
ch._zod.check = fn;
|
|
2448
2449
|
return ch;
|
|
2449
2450
|
}
|
|
2451
|
+
function describe$1(description) {
|
|
2452
|
+
const ch = new $ZodCheck({ check: "describe" });
|
|
2453
|
+
ch._zod.onattach = [(inst) => {
|
|
2454
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
2455
|
+
globalRegistry.add(inst, {
|
|
2456
|
+
...existing,
|
|
2457
|
+
description
|
|
2458
|
+
});
|
|
2459
|
+
}];
|
|
2460
|
+
ch._zod.check = () => {};
|
|
2461
|
+
return ch;
|
|
2462
|
+
}
|
|
2463
|
+
function meta$1(metadata) {
|
|
2464
|
+
const ch = new $ZodCheck({ check: "meta" });
|
|
2465
|
+
ch._zod.onattach = [(inst) => {
|
|
2466
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
2467
|
+
globalRegistry.add(inst, {
|
|
2468
|
+
...existing,
|
|
2469
|
+
...metadata
|
|
2470
|
+
});
|
|
2471
|
+
}];
|
|
2472
|
+
ch._zod.check = () => {};
|
|
2473
|
+
return ch;
|
|
2474
|
+
}
|
|
2450
2475
|
|
|
2451
2476
|
//#endregion
|
|
2452
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
2477
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js
|
|
2453
2478
|
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
2454
2479
|
$ZodISODateTime.init(inst, def);
|
|
2455
2480
|
ZodStringFormat.init(inst, def);
|
|
@@ -2480,7 +2505,7 @@ function duration(params) {
|
|
|
2480
2505
|
}
|
|
2481
2506
|
|
|
2482
2507
|
//#endregion
|
|
2483
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
2508
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js
|
|
2484
2509
|
const initializer = (inst, issues) => {
|
|
2485
2510
|
$ZodError.init(inst, issues);
|
|
2486
2511
|
inst.name = "ZodError";
|
|
@@ -2504,7 +2529,7 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
2504
2529
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
2505
2530
|
|
|
2506
2531
|
//#endregion
|
|
2507
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
2532
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js
|
|
2508
2533
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
2509
2534
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
2510
2535
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -2519,7 +2544,7 @@ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
2519
2544
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
2520
2545
|
|
|
2521
2546
|
//#endregion
|
|
2522
|
-
//#region ../../node_modules/.pnpm/zod@4.1.
|
|
2547
|
+
//#region ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js
|
|
2523
2548
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
2524
2549
|
$ZodType.init(inst, def);
|
|
2525
2550
|
inst.def = def;
|
|
@@ -2534,8 +2559,8 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
2534
2559
|
};
|
|
2535
2560
|
inst.clone = (def$1, params) => clone(inst, def$1, params);
|
|
2536
2561
|
inst.brand = () => inst;
|
|
2537
|
-
inst.register = ((reg, meta) => {
|
|
2538
|
-
reg.add(inst, meta);
|
|
2562
|
+
inst.register = ((reg, meta$2) => {
|
|
2563
|
+
reg.add(inst, meta$2);
|
|
2539
2564
|
return inst;
|
|
2540
2565
|
});
|
|
2541
2566
|
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
@@ -2610,6 +2635,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
2610
2635
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
2611
2636
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
2612
2637
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
2638
|
+
inst.slugify = () => inst.check(_slugify());
|
|
2613
2639
|
});
|
|
2614
2640
|
const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
2615
2641
|
$ZodString.init(inst, def);
|
|
@@ -3033,6 +3059,8 @@ function refine(fn, _params = {}) {
|
|
|
3033
3059
|
function superRefine(fn) {
|
|
3034
3060
|
return _superRefine(fn);
|
|
3035
3061
|
}
|
|
3062
|
+
const describe = describe$1;
|
|
3063
|
+
const meta = meta$1;
|
|
3036
3064
|
|
|
3037
3065
|
//#endregion
|
|
3038
3066
|
//#region ../../src/utils/logging.ts
|