@storm-software/git-tools 2.130.38 → 2.130.40
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/README.md +1 -1
- package/bin/{chunk-LOG3DPPQ.cjs → chunk-27LFN4VQ.cjs} +4 -4
- package/bin/{chunk-LOG3DPPQ.cjs.map → chunk-27LFN4VQ.cjs.map} +1 -1
- package/bin/{chunk-WBM5EHOT.js → chunk-3RY4CGUX.js} +3 -3
- package/bin/{chunk-WBM5EHOT.js.map → chunk-3RY4CGUX.js.map} +1 -1
- package/bin/{chunk-CW2LOJGK.js → chunk-6V4HD3QJ.js} +3 -3
- package/bin/{chunk-CW2LOJGK.js.map → chunk-6V4HD3QJ.js.map} +1 -1
- package/bin/{chunk-5VMV7N3G.js → chunk-BHWWH5OI.js} +163 -73
- package/bin/chunk-BHWWH5OI.js.map +1 -0
- package/bin/{chunk-2RGP4ACE.js → chunk-DNLVUV64.js} +3 -3
- package/bin/{chunk-2RGP4ACE.js.map → chunk-DNLVUV64.js.map} +1 -1
- package/bin/{chunk-ZSLNAQQG.js → chunk-GU7L3IBA.js} +3 -3
- package/bin/{chunk-ZSLNAQQG.js.map → chunk-GU7L3IBA.js.map} +1 -1
- package/bin/{chunk-2QLTCKJS.js → chunk-IEGXPTOH.js} +3 -3
- package/bin/{chunk-2QLTCKJS.js.map → chunk-IEGXPTOH.js.map} +1 -1
- package/bin/{chunk-5Z6RONLO.cjs → chunk-LR2WNL25.cjs} +4 -4
- package/bin/{chunk-5Z6RONLO.cjs.map → chunk-LR2WNL25.cjs.map} +1 -1
- package/bin/{chunk-OVGMWXXJ.cjs → chunk-MY767YV7.cjs} +6 -6
- package/bin/chunk-MY767YV7.cjs.map +1 -0
- package/bin/{chunk-HVR76UIF.cjs → chunk-PTYTYIPG.cjs} +163 -73
- package/bin/chunk-PTYTYIPG.cjs.map +1 -0
- package/bin/{chunk-PRWPYXMH.cjs → chunk-ROM64JTJ.cjs} +4 -4
- package/bin/{chunk-PRWPYXMH.cjs.map → chunk-ROM64JTJ.cjs.map} +1 -1
- package/bin/{chunk-NZCON5HN.cjs → chunk-THX6DU6T.cjs} +4 -4
- package/bin/{chunk-NZCON5HN.cjs.map → chunk-THX6DU6T.cjs.map} +1 -1
- package/bin/{chunk-L5CIC5RM.cjs → chunk-UIGOGTUM.cjs} +4 -4
- package/bin/{chunk-L5CIC5RM.cjs.map → chunk-UIGOGTUM.cjs.map} +1 -1
- package/bin/{chunk-HIBBA263.cjs → chunk-USGU6ZVC.cjs} +5 -5
- package/bin/{chunk-HIBBA263.cjs.map → chunk-USGU6ZVC.cjs.map} +1 -1
- package/bin/{chunk-GULFJC7R.js → chunk-V6PBXXP5.js} +3 -3
- package/bin/{chunk-GULFJC7R.js.map → chunk-V6PBXXP5.js.map} +1 -1
- package/bin/{chunk-NBAUOCB4.js → chunk-Y6YU46VF.js} +5 -5
- package/bin/chunk-Y6YU46VF.js.map +1 -0
- package/bin/git.cjs +118 -118
- package/bin/git.js +8 -8
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-O56OC5QZ.cjs → chunk-2R2374NN.cjs} +2 -2
- package/dist/{chunk-7YZQR2LH.js → chunk-4RAEKSGE.js} +2 -2
- package/dist/{chunk-AH2722GG.cjs → chunk-GTHIKJY7.cjs} +162 -72
- package/dist/{chunk-LXOOPN74.js → chunk-VBTXRYZY.js} +162 -72
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/release/config.cjs +8 -8
- package/dist/release/config.js +1 -1
- package/package.json +9 -9
- package/bin/chunk-5VMV7N3G.js.map +0 -1
- package/bin/chunk-HVR76UIF.cjs.map +0 -1
- package/bin/chunk-NBAUOCB4.js.map +0 -1
- package/bin/chunk-OVGMWXXJ.cjs.map +0 -1
|
@@ -263,6 +263,9 @@ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
|
263
263
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
264
264
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
265
265
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
266
|
+
|
|
267
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
268
|
+
var _a;
|
|
266
269
|
// @__NO_SIDE_EFFECTS__
|
|
267
270
|
function $constructor(name, initializer2, params) {
|
|
268
271
|
function init(inst, def) {
|
|
@@ -295,10 +298,10 @@ function $constructor(name, initializer2, params) {
|
|
|
295
298
|
}
|
|
296
299
|
Object.defineProperty(Definition, "name", { value: name });
|
|
297
300
|
function _(def) {
|
|
298
|
-
var
|
|
301
|
+
var _a3;
|
|
299
302
|
const inst = params?.Parent ? new Definition() : this;
|
|
300
303
|
init(inst, def);
|
|
301
|
-
(
|
|
304
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
302
305
|
for (const fn of inst._zod.deferred) {
|
|
303
306
|
fn();
|
|
304
307
|
}
|
|
@@ -320,12 +323,13 @@ var $ZodAsyncError = class extends Error {
|
|
|
320
323
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
321
324
|
}
|
|
322
325
|
};
|
|
323
|
-
|
|
326
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
327
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
324
328
|
function config(newConfig) {
|
|
325
329
|
return globalConfig;
|
|
326
330
|
}
|
|
327
331
|
|
|
328
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
332
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
329
333
|
function getEnumValues(entries) {
|
|
330
334
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
331
335
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -355,7 +359,7 @@ function cleanRegex(source) {
|
|
|
355
359
|
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
356
360
|
return source.slice(start, end);
|
|
357
361
|
}
|
|
358
|
-
var EVALUATING = Symbol("evaluating");
|
|
362
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
359
363
|
function defineLazy(object2, key, getter) {
|
|
360
364
|
let value = void 0;
|
|
361
365
|
Object.defineProperty(object2, key, {
|
|
@@ -404,6 +408,10 @@ function shallowClone(o) {
|
|
|
404
408
|
return { ...o };
|
|
405
409
|
if (Array.isArray(o))
|
|
406
410
|
return [...o];
|
|
411
|
+
if (o instanceof Map)
|
|
412
|
+
return new Map(o);
|
|
413
|
+
if (o instanceof Set)
|
|
414
|
+
return new Set(o);
|
|
407
415
|
return o;
|
|
408
416
|
}
|
|
409
417
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
@@ -417,7 +425,20 @@ function clone(inst, def, params) {
|
|
|
417
425
|
return cl;
|
|
418
426
|
}
|
|
419
427
|
function normalizeParams(_params) {
|
|
420
|
-
|
|
428
|
+
const params = _params;
|
|
429
|
+
if (!params)
|
|
430
|
+
return {};
|
|
431
|
+
if (typeof params === "string")
|
|
432
|
+
return { error: () => params };
|
|
433
|
+
if (params?.message !== void 0) {
|
|
434
|
+
if (params?.error !== void 0)
|
|
435
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
436
|
+
params.error = params.message;
|
|
437
|
+
}
|
|
438
|
+
delete params.message;
|
|
439
|
+
if (typeof params.error === "string")
|
|
440
|
+
return { ...params, error: () => params.error };
|
|
441
|
+
return params;
|
|
421
442
|
}
|
|
422
443
|
function optionalKeys(shape) {
|
|
423
444
|
return Object.keys(shape).filter((k) => {
|
|
@@ -434,10 +455,20 @@ function aborted(x, startIndex = 0) {
|
|
|
434
455
|
}
|
|
435
456
|
return false;
|
|
436
457
|
}
|
|
458
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
459
|
+
if (x.aborted === true)
|
|
460
|
+
return true;
|
|
461
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
462
|
+
if (x.issues[i]?.continue === false) {
|
|
463
|
+
return true;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return false;
|
|
467
|
+
}
|
|
437
468
|
function prefixIssues(path, issues) {
|
|
438
469
|
return issues.map((iss) => {
|
|
439
|
-
var
|
|
440
|
-
(
|
|
470
|
+
var _a3;
|
|
471
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
441
472
|
iss.path.unshift(path);
|
|
442
473
|
return iss;
|
|
443
474
|
});
|
|
@@ -446,17 +477,14 @@ function unwrapMessage(message) {
|
|
|
446
477
|
return typeof message === "string" ? message : message?.message;
|
|
447
478
|
}
|
|
448
479
|
function finalizeIssue(iss, ctx, config2) {
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
delete full.input;
|
|
458
|
-
}
|
|
459
|
-
return full;
|
|
480
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
481
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
482
|
+
rest.path ?? (rest.path = []);
|
|
483
|
+
rest.message = message;
|
|
484
|
+
if (ctx?.reportInput) {
|
|
485
|
+
rest.input = _input;
|
|
486
|
+
}
|
|
487
|
+
return rest;
|
|
460
488
|
}
|
|
461
489
|
function getLengthableOrigin(input) {
|
|
462
490
|
if (Array.isArray(input))
|
|
@@ -466,7 +494,7 @@ function getLengthableOrigin(input) {
|
|
|
466
494
|
return "unknown";
|
|
467
495
|
}
|
|
468
496
|
|
|
469
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
497
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
470
498
|
var initializer = (inst, def) => {
|
|
471
499
|
inst.name = "$ZodError";
|
|
472
500
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -486,9 +514,9 @@ var initializer = (inst, def) => {
|
|
|
486
514
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
487
515
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
488
516
|
|
|
489
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
517
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
490
518
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
491
|
-
const ctx = _ctx ?
|
|
519
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
492
520
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
493
521
|
if (result instanceof Promise) {
|
|
494
522
|
throw new $ZodAsyncError();
|
|
@@ -502,7 +530,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
502
530
|
};
|
|
503
531
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
504
532
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
505
|
-
const ctx = _ctx ?
|
|
533
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
506
534
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
507
535
|
if (result instanceof Promise)
|
|
508
536
|
result = await result;
|
|
@@ -527,7 +555,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
527
555
|
};
|
|
528
556
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
529
557
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
530
|
-
const ctx = _ctx ?
|
|
558
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
531
559
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
532
560
|
if (result instanceof Promise)
|
|
533
561
|
result = await result;
|
|
@@ -537,6 +565,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
537
565
|
} : { success: true, data: result.value };
|
|
538
566
|
};
|
|
539
567
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
568
|
+
|
|
569
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
570
|
+
var httpProtocol = /^https?$/;
|
|
540
571
|
var string = (params) => {
|
|
541
572
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
542
573
|
return new RegExp(`^${regex}$`);
|
|
@@ -544,17 +575,17 @@ var string = (params) => {
|
|
|
544
575
|
var number = /^-?\d+(?:\.\d+)?$/;
|
|
545
576
|
var boolean = /^(?:true|false)$/i;
|
|
546
577
|
|
|
547
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
578
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
548
579
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
549
|
-
var
|
|
580
|
+
var _a3;
|
|
550
581
|
inst._zod ?? (inst._zod = {});
|
|
551
582
|
inst._zod.def = def;
|
|
552
|
-
(
|
|
583
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
553
584
|
});
|
|
554
585
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
555
|
-
var
|
|
586
|
+
var _a3;
|
|
556
587
|
$ZodCheck.init(inst, def);
|
|
557
|
-
(
|
|
588
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
558
589
|
const val = payload.value;
|
|
559
590
|
return !nullish(val) && val.length !== void 0;
|
|
560
591
|
});
|
|
@@ -583,7 +614,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
583
614
|
};
|
|
584
615
|
});
|
|
585
616
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
586
|
-
var
|
|
617
|
+
var _a3, _b;
|
|
587
618
|
$ZodCheck.init(inst, def);
|
|
588
619
|
inst._zod.onattach.push((inst2) => {
|
|
589
620
|
const bag = inst2._zod.bag;
|
|
@@ -594,7 +625,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
594
625
|
}
|
|
595
626
|
});
|
|
596
627
|
if (def.pattern)
|
|
597
|
-
(
|
|
628
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
598
629
|
def.pattern.lastIndex = 0;
|
|
599
630
|
if (def.pattern.test(payload.value))
|
|
600
631
|
return;
|
|
@@ -636,16 +667,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
636
667
|
};
|
|
637
668
|
});
|
|
638
669
|
|
|
639
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
670
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
640
671
|
var version = {
|
|
641
672
|
major: 4,
|
|
642
|
-
minor:
|
|
643
|
-
patch:
|
|
673
|
+
minor: 4,
|
|
674
|
+
patch: 3
|
|
644
675
|
};
|
|
645
676
|
|
|
646
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
677
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
647
678
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
648
|
-
var
|
|
679
|
+
var _a3;
|
|
649
680
|
inst ?? (inst = {});
|
|
650
681
|
inst._zod.def = def;
|
|
651
682
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -660,7 +691,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
660
691
|
}
|
|
661
692
|
}
|
|
662
693
|
if (checks.length === 0) {
|
|
663
|
-
(
|
|
694
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
664
695
|
inst._zod.deferred?.push(() => {
|
|
665
696
|
inst._zod.run = inst._zod.parse;
|
|
666
697
|
});
|
|
@@ -670,6 +701,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
670
701
|
let asyncResult;
|
|
671
702
|
for (const ch of checks2) {
|
|
672
703
|
if (ch._zod.def.when) {
|
|
704
|
+
if (explicitlyAborted(payload))
|
|
705
|
+
continue;
|
|
673
706
|
const shouldRun = ch._zod.def.when(payload);
|
|
674
707
|
if (!shouldRun)
|
|
675
708
|
continue;
|
|
@@ -782,6 +815,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
782
815
|
inst._zod.check = (payload) => {
|
|
783
816
|
try {
|
|
784
817
|
const trimmed = payload.value.trim();
|
|
818
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
819
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
820
|
+
payload.issues.push({
|
|
821
|
+
code: "invalid_format",
|
|
822
|
+
format: "url",
|
|
823
|
+
note: "Invalid URL format",
|
|
824
|
+
input: payload.value,
|
|
825
|
+
inst,
|
|
826
|
+
continue: !def.abort
|
|
827
|
+
});
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
785
831
|
const url2 = new URL(trimmed);
|
|
786
832
|
if (def.hostname) {
|
|
787
833
|
def.hostname.lastIndex = 0;
|
|
@@ -892,15 +938,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
892
938
|
return payload;
|
|
893
939
|
};
|
|
894
940
|
});
|
|
895
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
941
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
942
|
+
const isPresent = key in input;
|
|
896
943
|
if (result.issues.length) {
|
|
897
|
-
if (isOptionalOut && !
|
|
944
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
898
945
|
return;
|
|
899
946
|
}
|
|
900
947
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
901
948
|
}
|
|
949
|
+
if (!isPresent && !isOptionalIn) {
|
|
950
|
+
if (!result.issues.length) {
|
|
951
|
+
final.issues.push({
|
|
952
|
+
code: "invalid_type",
|
|
953
|
+
expected: "nonoptional",
|
|
954
|
+
input: void 0,
|
|
955
|
+
path: [key]
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
902
960
|
if (result.value === void 0) {
|
|
903
|
-
if (
|
|
961
|
+
if (isPresent) {
|
|
904
962
|
final.value[key] = void 0;
|
|
905
963
|
}
|
|
906
964
|
} else {
|
|
@@ -928,8 +986,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
928
986
|
const keySet = def.keySet;
|
|
929
987
|
const _catchall = def.catchall._zod;
|
|
930
988
|
const t = _catchall.def.type;
|
|
989
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
931
990
|
const isOptionalOut = _catchall.optout === "optional";
|
|
932
991
|
for (const key in input) {
|
|
992
|
+
if (key === "__proto__")
|
|
993
|
+
continue;
|
|
933
994
|
if (keySet.has(key))
|
|
934
995
|
continue;
|
|
935
996
|
if (t === "never") {
|
|
@@ -938,9 +999,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
938
999
|
}
|
|
939
1000
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
940
1001
|
if (r instanceof Promise) {
|
|
941
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1002
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
942
1003
|
} else {
|
|
943
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1004
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
944
1005
|
}
|
|
945
1006
|
}
|
|
946
1007
|
if (unrecognized.length) {
|
|
@@ -1006,12 +1067,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1006
1067
|
const shape = value.shape;
|
|
1007
1068
|
for (const key of value.keys) {
|
|
1008
1069
|
const el = shape[key];
|
|
1070
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
1009
1071
|
const isOptionalOut = el._zod.optout === "optional";
|
|
1010
1072
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1011
1073
|
if (r instanceof Promise) {
|
|
1012
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1074
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1013
1075
|
} else {
|
|
1014
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1076
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1015
1077
|
}
|
|
1016
1078
|
}
|
|
1017
1079
|
if (!catchall) {
|
|
@@ -1057,10 +1119,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1057
1119
|
}
|
|
1058
1120
|
return void 0;
|
|
1059
1121
|
});
|
|
1060
|
-
const
|
|
1061
|
-
const first = def.options[0]._zod.run;
|
|
1122
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1062
1123
|
inst._zod.parse = (payload, ctx) => {
|
|
1063
|
-
if (
|
|
1124
|
+
if (first) {
|
|
1064
1125
|
return first(payload, ctx);
|
|
1065
1126
|
}
|
|
1066
1127
|
let async = false;
|
|
@@ -1107,19 +1168,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1107
1168
|
for (const key of values) {
|
|
1108
1169
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1109
1170
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1171
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1172
|
+
if (keyResult instanceof Promise) {
|
|
1173
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1174
|
+
}
|
|
1175
|
+
if (keyResult.issues.length) {
|
|
1176
|
+
payload.issues.push({
|
|
1177
|
+
code: "invalid_key",
|
|
1178
|
+
origin: "record",
|
|
1179
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
1180
|
+
input: key,
|
|
1181
|
+
path: [key],
|
|
1182
|
+
inst
|
|
1183
|
+
});
|
|
1184
|
+
continue;
|
|
1185
|
+
}
|
|
1186
|
+
const outKey = keyResult.value;
|
|
1110
1187
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1111
1188
|
if (result instanceof Promise) {
|
|
1112
1189
|
proms.push(result.then((result2) => {
|
|
1113
1190
|
if (result2.issues.length) {
|
|
1114
1191
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
1115
1192
|
}
|
|
1116
|
-
payload.value[
|
|
1193
|
+
payload.value[outKey] = result2.value;
|
|
1117
1194
|
}));
|
|
1118
1195
|
} else {
|
|
1119
1196
|
if (result.issues.length) {
|
|
1120
1197
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
1121
1198
|
}
|
|
1122
|
-
payload.value[
|
|
1199
|
+
payload.value[outKey] = result.value;
|
|
1123
1200
|
}
|
|
1124
1201
|
}
|
|
1125
1202
|
}
|
|
@@ -1143,6 +1220,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1143
1220
|
for (const key of Reflect.ownKeys(input)) {
|
|
1144
1221
|
if (key === "__proto__")
|
|
1145
1222
|
continue;
|
|
1223
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
1224
|
+
continue;
|
|
1146
1225
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1147
1226
|
if (keyResult instanceof Promise) {
|
|
1148
1227
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -1237,7 +1316,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
1237
1316
|
};
|
|
1238
1317
|
});
|
|
1239
1318
|
function handleOptionalResult(result, input) {
|
|
1240
|
-
if (result.issues.length
|
|
1319
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
1241
1320
|
return { issues: [], value: void 0 };
|
|
1242
1321
|
}
|
|
1243
1322
|
return result;
|
|
@@ -1255,10 +1334,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
1255
1334
|
});
|
|
1256
1335
|
inst._zod.parse = (payload, ctx) => {
|
|
1257
1336
|
if (def.innerType._zod.optin === "optional") {
|
|
1337
|
+
const input = payload.value;
|
|
1258
1338
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1259
1339
|
if (result instanceof Promise)
|
|
1260
|
-
return result.then((r) => handleOptionalResult(r,
|
|
1261
|
-
return handleOptionalResult(result,
|
|
1340
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
1341
|
+
return handleOptionalResult(result, input);
|
|
1262
1342
|
}
|
|
1263
1343
|
if (payload.value === void 0) {
|
|
1264
1344
|
return payload;
|
|
@@ -1309,8 +1389,8 @@ function handleDefaultResult(payload, def) {
|
|
|
1309
1389
|
return payload;
|
|
1310
1390
|
}
|
|
1311
1391
|
|
|
1312
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1313
|
-
var
|
|
1392
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
1393
|
+
var _a2;
|
|
1314
1394
|
var $ZodRegistry = class {
|
|
1315
1395
|
constructor() {
|
|
1316
1396
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -1354,14 +1434,14 @@ var $ZodRegistry = class {
|
|
|
1354
1434
|
function registry() {
|
|
1355
1435
|
return new $ZodRegistry();
|
|
1356
1436
|
}
|
|
1357
|
-
(
|
|
1437
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
1358
1438
|
|
|
1359
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1439
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
1360
1440
|
// @__NO_SIDE_EFFECTS__
|
|
1361
1441
|
function _string(Class, params) {
|
|
1362
1442
|
return new Class({
|
|
1363
1443
|
type: "string",
|
|
1364
|
-
...normalizeParams()
|
|
1444
|
+
...normalizeParams(params)
|
|
1365
1445
|
});
|
|
1366
1446
|
}
|
|
1367
1447
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1371,14 +1451,14 @@ function _url(Class, params) {
|
|
|
1371
1451
|
format: "url",
|
|
1372
1452
|
check: "string_format",
|
|
1373
1453
|
abort: false,
|
|
1374
|
-
...normalizeParams()
|
|
1454
|
+
...normalizeParams(params)
|
|
1375
1455
|
});
|
|
1376
1456
|
}
|
|
1377
1457
|
// @__NO_SIDE_EFFECTS__
|
|
1378
1458
|
function _boolean(Class, params) {
|
|
1379
1459
|
return new Class({
|
|
1380
1460
|
type: "boolean",
|
|
1381
|
-
...normalizeParams()
|
|
1461
|
+
...normalizeParams(params)
|
|
1382
1462
|
});
|
|
1383
1463
|
}
|
|
1384
1464
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1391,7 +1471,7 @@ function _any(Class) {
|
|
|
1391
1471
|
function _length(length, params) {
|
|
1392
1472
|
return new $ZodCheckLengthEquals({
|
|
1393
1473
|
check: "length_equals",
|
|
1394
|
-
...normalizeParams(),
|
|
1474
|
+
...normalizeParams(params),
|
|
1395
1475
|
length
|
|
1396
1476
|
});
|
|
1397
1477
|
}
|
|
@@ -1400,7 +1480,7 @@ function _regex(pattern, params) {
|
|
|
1400
1480
|
return new $ZodCheckRegex({
|
|
1401
1481
|
check: "string_format",
|
|
1402
1482
|
format: "regex",
|
|
1403
|
-
...normalizeParams(),
|
|
1483
|
+
...normalizeParams(params),
|
|
1404
1484
|
pattern
|
|
1405
1485
|
});
|
|
1406
1486
|
}
|
|
@@ -1420,7 +1500,7 @@ function _toLowerCase() {
|
|
|
1420
1500
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
1421
1501
|
}
|
|
1422
1502
|
|
|
1423
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1503
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
1424
1504
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
1425
1505
|
if (!inst._zod)
|
|
1426
1506
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -1436,7 +1516,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
1436
1516
|
...def,
|
|
1437
1517
|
checks: [
|
|
1438
1518
|
...def.checks ?? [],
|
|
1439
|
-
...checks.map((ch) => typeof ch === "function" ? {
|
|
1519
|
+
...checks.map((ch) => typeof ch === "function" ? {
|
|
1520
|
+
_zod: { check: ch, def: { check: "custom" }, onattach: [] }
|
|
1521
|
+
} : ch)
|
|
1440
1522
|
]
|
|
1441
1523
|
}, { parent: true });
|
|
1442
1524
|
};
|
|
@@ -1455,7 +1537,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
|
|
|
1455
1537
|
});
|
|
1456
1538
|
// @__NO_SIDE_EFFECTS__
|
|
1457
1539
|
function string2(params) {
|
|
1458
|
-
return _string(ZodMiniString);
|
|
1540
|
+
return _string(ZodMiniString, params);
|
|
1459
1541
|
}
|
|
1460
1542
|
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
1461
1543
|
$ZodStringFormat.init(inst, def);
|
|
@@ -1467,7 +1549,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
|
1467
1549
|
});
|
|
1468
1550
|
// @__NO_SIDE_EFFECTS__
|
|
1469
1551
|
function url(params) {
|
|
1470
|
-
return _url(ZodMiniURL);
|
|
1552
|
+
return _url(ZodMiniURL, params);
|
|
1471
1553
|
}
|
|
1472
1554
|
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
1473
1555
|
$ZodBoolean.init(inst, def);
|
|
@@ -1475,7 +1557,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
|
|
|
1475
1557
|
});
|
|
1476
1558
|
// @__NO_SIDE_EFFECTS__
|
|
1477
1559
|
function boolean2(params) {
|
|
1478
|
-
return _boolean(ZodMiniBoolean);
|
|
1560
|
+
return _boolean(ZodMiniBoolean, params);
|
|
1479
1561
|
}
|
|
1480
1562
|
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
1481
1563
|
$ZodAny.init(inst, def);
|
|
@@ -1494,7 +1576,7 @@ function array(element, params) {
|
|
|
1494
1576
|
return new ZodMiniArray({
|
|
1495
1577
|
type: "array",
|
|
1496
1578
|
element,
|
|
1497
|
-
...normalizeParams()
|
|
1579
|
+
...normalizeParams(params)
|
|
1498
1580
|
});
|
|
1499
1581
|
}
|
|
1500
1582
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
@@ -1507,7 +1589,7 @@ function object(shape, params) {
|
|
|
1507
1589
|
const def = {
|
|
1508
1590
|
type: "object",
|
|
1509
1591
|
shape: shape ?? {},
|
|
1510
|
-
...normalizeParams()
|
|
1592
|
+
...normalizeParams(params)
|
|
1511
1593
|
};
|
|
1512
1594
|
return new ZodMiniObject(def);
|
|
1513
1595
|
}
|
|
@@ -1520,7 +1602,7 @@ function union(options, params) {
|
|
|
1520
1602
|
return new ZodMiniUnion({
|
|
1521
1603
|
type: "union",
|
|
1522
1604
|
options,
|
|
1523
|
-
...normalizeParams()
|
|
1605
|
+
...normalizeParams(params)
|
|
1524
1606
|
});
|
|
1525
1607
|
}
|
|
1526
1608
|
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
@@ -1529,11 +1611,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
|
|
|
1529
1611
|
});
|
|
1530
1612
|
// @__NO_SIDE_EFFECTS__
|
|
1531
1613
|
function record(keyType, valueType, params) {
|
|
1614
|
+
if (!valueType || !valueType._zod) {
|
|
1615
|
+
return new ZodMiniRecord({
|
|
1616
|
+
type: "record",
|
|
1617
|
+
keyType: /* @__PURE__ */ string2(),
|
|
1618
|
+
valueType: keyType,
|
|
1619
|
+
...normalizeParams(valueType)
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1532
1622
|
return new ZodMiniRecord({
|
|
1533
1623
|
type: "record",
|
|
1534
1624
|
keyType,
|
|
1535
1625
|
valueType,
|
|
1536
|
-
...normalizeParams()
|
|
1626
|
+
...normalizeParams(params)
|
|
1537
1627
|
});
|
|
1538
1628
|
}
|
|
1539
1629
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
@@ -1547,7 +1637,7 @@ function _enum(values, params) {
|
|
|
1547
1637
|
return new ZodMiniEnum({
|
|
1548
1638
|
type: "enum",
|
|
1549
1639
|
entries,
|
|
1550
|
-
...normalizeParams()
|
|
1640
|
+
...normalizeParams(params)
|
|
1551
1641
|
});
|
|
1552
1642
|
}
|
|
1553
1643
|
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
@@ -1559,7 +1649,7 @@ function literal(value, params) {
|
|
|
1559
1649
|
return new ZodMiniLiteral({
|
|
1560
1650
|
type: "literal",
|
|
1561
1651
|
values: Array.isArray(value) ? value : [value],
|
|
1562
|
-
...normalizeParams()
|
|
1652
|
+
...normalizeParams(params)
|
|
1563
1653
|
});
|
|
1564
1654
|
}
|
|
1565
1655
|
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|