@storm-software/git-tools 2.130.39 → 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-WYYIBLO2.cjs → chunk-MY767YV7.cjs} +6 -6
- package/bin/{chunk-WYYIBLO2.cjs.map → chunk-MY767YV7.cjs.map} +1 -1
- 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-XY4WATTM.js → chunk-Y6YU46VF.js} +3 -3
- package/bin/{chunk-XY4WATTM.js.map → chunk-Y6YU46VF.js.map} +1 -1
- 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-AH2722GG.cjs → chunk-GTHIKJY7.cjs} +162 -72
- package/dist/{chunk-LXOOPN74.js → chunk-VBTXRYZY.js} +162 -72
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- 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
|
@@ -409,6 +409,9 @@ Stacktrace: ${error.stack}`,
|
|
|
409
409
|
exitWithError(config2);
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
+
|
|
413
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
414
|
+
var _a;
|
|
412
415
|
// @__NO_SIDE_EFFECTS__
|
|
413
416
|
function $constructor(name, initializer2, params) {
|
|
414
417
|
function init(inst, def) {
|
|
@@ -441,10 +444,10 @@ function $constructor(name, initializer2, params) {
|
|
|
441
444
|
}
|
|
442
445
|
Object.defineProperty(Definition, "name", { value: name });
|
|
443
446
|
function _(def) {
|
|
444
|
-
var
|
|
447
|
+
var _a3;
|
|
445
448
|
const inst = params?.Parent ? new Definition() : this;
|
|
446
449
|
init(inst, def);
|
|
447
|
-
(
|
|
450
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
448
451
|
for (const fn of inst._zod.deferred) {
|
|
449
452
|
fn();
|
|
450
453
|
}
|
|
@@ -466,12 +469,13 @@ var $ZodAsyncError = class extends Error {
|
|
|
466
469
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
467
470
|
}
|
|
468
471
|
};
|
|
469
|
-
|
|
472
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
473
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
470
474
|
function config(newConfig) {
|
|
471
475
|
return globalConfig;
|
|
472
476
|
}
|
|
473
477
|
|
|
474
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
478
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
475
479
|
function getEnumValues(entries) {
|
|
476
480
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
477
481
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -501,7 +505,7 @@ function cleanRegex(source) {
|
|
|
501
505
|
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
502
506
|
return source.slice(start, end);
|
|
503
507
|
}
|
|
504
|
-
var EVALUATING = Symbol("evaluating");
|
|
508
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
505
509
|
function defineLazy(object2, key, getter) {
|
|
506
510
|
let value = void 0;
|
|
507
511
|
Object.defineProperty(object2, key, {
|
|
@@ -550,6 +554,10 @@ function shallowClone(o) {
|
|
|
550
554
|
return { ...o };
|
|
551
555
|
if (Array.isArray(o))
|
|
552
556
|
return [...o];
|
|
557
|
+
if (o instanceof Map)
|
|
558
|
+
return new Map(o);
|
|
559
|
+
if (o instanceof Set)
|
|
560
|
+
return new Set(o);
|
|
553
561
|
return o;
|
|
554
562
|
}
|
|
555
563
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
@@ -563,7 +571,20 @@ function clone(inst, def, params) {
|
|
|
563
571
|
return cl;
|
|
564
572
|
}
|
|
565
573
|
function normalizeParams(_params) {
|
|
566
|
-
|
|
574
|
+
const params = _params;
|
|
575
|
+
if (!params)
|
|
576
|
+
return {};
|
|
577
|
+
if (typeof params === "string")
|
|
578
|
+
return { error: () => params };
|
|
579
|
+
if (params?.message !== void 0) {
|
|
580
|
+
if (params?.error !== void 0)
|
|
581
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
582
|
+
params.error = params.message;
|
|
583
|
+
}
|
|
584
|
+
delete params.message;
|
|
585
|
+
if (typeof params.error === "string")
|
|
586
|
+
return { ...params, error: () => params.error };
|
|
587
|
+
return params;
|
|
567
588
|
}
|
|
568
589
|
function optionalKeys(shape) {
|
|
569
590
|
return Object.keys(shape).filter((k) => {
|
|
@@ -580,10 +601,20 @@ function aborted(x, startIndex = 0) {
|
|
|
580
601
|
}
|
|
581
602
|
return false;
|
|
582
603
|
}
|
|
604
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
605
|
+
if (x.aborted === true)
|
|
606
|
+
return true;
|
|
607
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
608
|
+
if (x.issues[i]?.continue === false) {
|
|
609
|
+
return true;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
583
614
|
function prefixIssues(path, issues) {
|
|
584
615
|
return issues.map((iss) => {
|
|
585
|
-
var
|
|
586
|
-
(
|
|
616
|
+
var _a3;
|
|
617
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
587
618
|
iss.path.unshift(path);
|
|
588
619
|
return iss;
|
|
589
620
|
});
|
|
@@ -592,17 +623,14 @@ function unwrapMessage(message) {
|
|
|
592
623
|
return typeof message === "string" ? message : message?.message;
|
|
593
624
|
}
|
|
594
625
|
function finalizeIssue(iss, ctx, config2) {
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
delete full.continue;
|
|
602
|
-
if (!ctx?.reportInput) {
|
|
603
|
-
delete full.input;
|
|
626
|
+
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";
|
|
627
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
628
|
+
rest.path ?? (rest.path = []);
|
|
629
|
+
rest.message = message;
|
|
630
|
+
if (ctx?.reportInput) {
|
|
631
|
+
rest.input = _input;
|
|
604
632
|
}
|
|
605
|
-
return
|
|
633
|
+
return rest;
|
|
606
634
|
}
|
|
607
635
|
function getLengthableOrigin(input) {
|
|
608
636
|
if (Array.isArray(input))
|
|
@@ -612,7 +640,7 @@ function getLengthableOrigin(input) {
|
|
|
612
640
|
return "unknown";
|
|
613
641
|
}
|
|
614
642
|
|
|
615
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
643
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
616
644
|
var initializer = (inst, def) => {
|
|
617
645
|
inst.name = "$ZodError";
|
|
618
646
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -632,9 +660,9 @@ var initializer = (inst, def) => {
|
|
|
632
660
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
633
661
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
634
662
|
|
|
635
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
663
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
636
664
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
637
|
-
const ctx = _ctx ?
|
|
665
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
638
666
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
639
667
|
if (result instanceof Promise) {
|
|
640
668
|
throw new $ZodAsyncError();
|
|
@@ -648,7 +676,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
648
676
|
};
|
|
649
677
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
650
678
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
651
|
-
const ctx = _ctx ?
|
|
679
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
652
680
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
653
681
|
if (result instanceof Promise)
|
|
654
682
|
result = await result;
|
|
@@ -673,7 +701,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
673
701
|
};
|
|
674
702
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
675
703
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
676
|
-
const ctx = _ctx ?
|
|
704
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
677
705
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
678
706
|
if (result instanceof Promise)
|
|
679
707
|
result = await result;
|
|
@@ -683,6 +711,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
683
711
|
} : { success: true, data: result.value };
|
|
684
712
|
};
|
|
685
713
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
714
|
+
|
|
715
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
716
|
+
var httpProtocol = /^https?$/;
|
|
686
717
|
var string = (params) => {
|
|
687
718
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
688
719
|
return new RegExp(`^${regex}$`);
|
|
@@ -690,17 +721,17 @@ var string = (params) => {
|
|
|
690
721
|
var number = /^-?\d+(?:\.\d+)?$/;
|
|
691
722
|
var boolean = /^(?:true|false)$/i;
|
|
692
723
|
|
|
693
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
724
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
694
725
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
695
|
-
var
|
|
726
|
+
var _a3;
|
|
696
727
|
inst._zod ?? (inst._zod = {});
|
|
697
728
|
inst._zod.def = def;
|
|
698
|
-
(
|
|
729
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
699
730
|
});
|
|
700
731
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
701
|
-
var
|
|
732
|
+
var _a3;
|
|
702
733
|
$ZodCheck.init(inst, def);
|
|
703
|
-
(
|
|
734
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
704
735
|
const val = payload.value;
|
|
705
736
|
return !nullish(val) && val.length !== void 0;
|
|
706
737
|
});
|
|
@@ -729,7 +760,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
729
760
|
};
|
|
730
761
|
});
|
|
731
762
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
732
|
-
var
|
|
763
|
+
var _a3, _b;
|
|
733
764
|
$ZodCheck.init(inst, def);
|
|
734
765
|
inst._zod.onattach.push((inst2) => {
|
|
735
766
|
const bag = inst2._zod.bag;
|
|
@@ -740,7 +771,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
740
771
|
}
|
|
741
772
|
});
|
|
742
773
|
if (def.pattern)
|
|
743
|
-
(
|
|
774
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
744
775
|
def.pattern.lastIndex = 0;
|
|
745
776
|
if (def.pattern.test(payload.value))
|
|
746
777
|
return;
|
|
@@ -782,16 +813,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
782
813
|
};
|
|
783
814
|
});
|
|
784
815
|
|
|
785
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
816
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
786
817
|
var version = {
|
|
787
818
|
major: 4,
|
|
788
|
-
minor:
|
|
789
|
-
patch:
|
|
819
|
+
minor: 4,
|
|
820
|
+
patch: 3
|
|
790
821
|
};
|
|
791
822
|
|
|
792
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
823
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
793
824
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
794
|
-
var
|
|
825
|
+
var _a3;
|
|
795
826
|
inst ?? (inst = {});
|
|
796
827
|
inst._zod.def = def;
|
|
797
828
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -806,7 +837,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
806
837
|
}
|
|
807
838
|
}
|
|
808
839
|
if (checks.length === 0) {
|
|
809
|
-
(
|
|
840
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
810
841
|
inst._zod.deferred?.push(() => {
|
|
811
842
|
inst._zod.run = inst._zod.parse;
|
|
812
843
|
});
|
|
@@ -816,6 +847,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
816
847
|
let asyncResult;
|
|
817
848
|
for (const ch of checks2) {
|
|
818
849
|
if (ch._zod.def.when) {
|
|
850
|
+
if (explicitlyAborted(payload))
|
|
851
|
+
continue;
|
|
819
852
|
const shouldRun = ch._zod.def.when(payload);
|
|
820
853
|
if (!shouldRun)
|
|
821
854
|
continue;
|
|
@@ -928,6 +961,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
928
961
|
inst._zod.check = (payload) => {
|
|
929
962
|
try {
|
|
930
963
|
const trimmed = payload.value.trim();
|
|
964
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
965
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
966
|
+
payload.issues.push({
|
|
967
|
+
code: "invalid_format",
|
|
968
|
+
format: "url",
|
|
969
|
+
note: "Invalid URL format",
|
|
970
|
+
input: payload.value,
|
|
971
|
+
inst,
|
|
972
|
+
continue: !def.abort
|
|
973
|
+
});
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
931
977
|
const url2 = new URL(trimmed);
|
|
932
978
|
if (def.hostname) {
|
|
933
979
|
def.hostname.lastIndex = 0;
|
|
@@ -1038,15 +1084,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
1038
1084
|
return payload;
|
|
1039
1085
|
};
|
|
1040
1086
|
});
|
|
1041
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
1087
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
1088
|
+
const isPresent = key in input;
|
|
1042
1089
|
if (result.issues.length) {
|
|
1043
|
-
if (isOptionalOut && !
|
|
1090
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
1044
1091
|
return;
|
|
1045
1092
|
}
|
|
1046
1093
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
1047
1094
|
}
|
|
1095
|
+
if (!isPresent && !isOptionalIn) {
|
|
1096
|
+
if (!result.issues.length) {
|
|
1097
|
+
final.issues.push({
|
|
1098
|
+
code: "invalid_type",
|
|
1099
|
+
expected: "nonoptional",
|
|
1100
|
+
input: void 0,
|
|
1101
|
+
path: [key]
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1048
1106
|
if (result.value === void 0) {
|
|
1049
|
-
if (
|
|
1107
|
+
if (isPresent) {
|
|
1050
1108
|
final.value[key] = void 0;
|
|
1051
1109
|
}
|
|
1052
1110
|
} else {
|
|
@@ -1074,8 +1132,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1074
1132
|
const keySet = def.keySet;
|
|
1075
1133
|
const _catchall = def.catchall._zod;
|
|
1076
1134
|
const t = _catchall.def.type;
|
|
1135
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
1077
1136
|
const isOptionalOut = _catchall.optout === "optional";
|
|
1078
1137
|
for (const key in input) {
|
|
1138
|
+
if (key === "__proto__")
|
|
1139
|
+
continue;
|
|
1079
1140
|
if (keySet.has(key))
|
|
1080
1141
|
continue;
|
|
1081
1142
|
if (t === "never") {
|
|
@@ -1084,9 +1145,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1084
1145
|
}
|
|
1085
1146
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
1086
1147
|
if (r instanceof Promise) {
|
|
1087
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1148
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1088
1149
|
} else {
|
|
1089
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1150
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1090
1151
|
}
|
|
1091
1152
|
}
|
|
1092
1153
|
if (unrecognized.length) {
|
|
@@ -1152,12 +1213,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1152
1213
|
const shape = value.shape;
|
|
1153
1214
|
for (const key of value.keys) {
|
|
1154
1215
|
const el = shape[key];
|
|
1216
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
1155
1217
|
const isOptionalOut = el._zod.optout === "optional";
|
|
1156
1218
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1157
1219
|
if (r instanceof Promise) {
|
|
1158
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1220
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1159
1221
|
} else {
|
|
1160
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1222
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1161
1223
|
}
|
|
1162
1224
|
}
|
|
1163
1225
|
if (!catchall) {
|
|
@@ -1203,10 +1265,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1203
1265
|
}
|
|
1204
1266
|
return void 0;
|
|
1205
1267
|
});
|
|
1206
|
-
const
|
|
1207
|
-
const first = def.options[0]._zod.run;
|
|
1268
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1208
1269
|
inst._zod.parse = (payload, ctx) => {
|
|
1209
|
-
if (
|
|
1270
|
+
if (first) {
|
|
1210
1271
|
return first(payload, ctx);
|
|
1211
1272
|
}
|
|
1212
1273
|
let async = false;
|
|
@@ -1253,19 +1314,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1253
1314
|
for (const key of values) {
|
|
1254
1315
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1255
1316
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1317
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1318
|
+
if (keyResult instanceof Promise) {
|
|
1319
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1320
|
+
}
|
|
1321
|
+
if (keyResult.issues.length) {
|
|
1322
|
+
payload.issues.push({
|
|
1323
|
+
code: "invalid_key",
|
|
1324
|
+
origin: "record",
|
|
1325
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
1326
|
+
input: key,
|
|
1327
|
+
path: [key],
|
|
1328
|
+
inst
|
|
1329
|
+
});
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
const outKey = keyResult.value;
|
|
1256
1333
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1257
1334
|
if (result instanceof Promise) {
|
|
1258
1335
|
proms.push(result.then((result2) => {
|
|
1259
1336
|
if (result2.issues.length) {
|
|
1260
1337
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
1261
1338
|
}
|
|
1262
|
-
payload.value[
|
|
1339
|
+
payload.value[outKey] = result2.value;
|
|
1263
1340
|
}));
|
|
1264
1341
|
} else {
|
|
1265
1342
|
if (result.issues.length) {
|
|
1266
1343
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
1267
1344
|
}
|
|
1268
|
-
payload.value[
|
|
1345
|
+
payload.value[outKey] = result.value;
|
|
1269
1346
|
}
|
|
1270
1347
|
}
|
|
1271
1348
|
}
|
|
@@ -1289,6 +1366,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1289
1366
|
for (const key of Reflect.ownKeys(input)) {
|
|
1290
1367
|
if (key === "__proto__")
|
|
1291
1368
|
continue;
|
|
1369
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
1370
|
+
continue;
|
|
1292
1371
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1293
1372
|
if (keyResult instanceof Promise) {
|
|
1294
1373
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -1383,7 +1462,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
1383
1462
|
};
|
|
1384
1463
|
});
|
|
1385
1464
|
function handleOptionalResult(result, input) {
|
|
1386
|
-
if (result.issues.length
|
|
1465
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
1387
1466
|
return { issues: [], value: void 0 };
|
|
1388
1467
|
}
|
|
1389
1468
|
return result;
|
|
@@ -1401,10 +1480,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
1401
1480
|
});
|
|
1402
1481
|
inst._zod.parse = (payload, ctx) => {
|
|
1403
1482
|
if (def.innerType._zod.optin === "optional") {
|
|
1483
|
+
const input = payload.value;
|
|
1404
1484
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1405
1485
|
if (result instanceof Promise)
|
|
1406
|
-
return result.then((r) => handleOptionalResult(r,
|
|
1407
|
-
return handleOptionalResult(result,
|
|
1486
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
1487
|
+
return handleOptionalResult(result, input);
|
|
1408
1488
|
}
|
|
1409
1489
|
if (payload.value === void 0) {
|
|
1410
1490
|
return payload;
|
|
@@ -1455,8 +1535,8 @@ function handleDefaultResult(payload, def) {
|
|
|
1455
1535
|
return payload;
|
|
1456
1536
|
}
|
|
1457
1537
|
|
|
1458
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1459
|
-
var
|
|
1538
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
1539
|
+
var _a2;
|
|
1460
1540
|
var $ZodRegistry = class {
|
|
1461
1541
|
constructor() {
|
|
1462
1542
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -1500,14 +1580,14 @@ var $ZodRegistry = class {
|
|
|
1500
1580
|
function registry() {
|
|
1501
1581
|
return new $ZodRegistry();
|
|
1502
1582
|
}
|
|
1503
|
-
(
|
|
1583
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
1504
1584
|
|
|
1505
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1585
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
1506
1586
|
// @__NO_SIDE_EFFECTS__
|
|
1507
1587
|
function _string(Class, params) {
|
|
1508
1588
|
return new Class({
|
|
1509
1589
|
type: "string",
|
|
1510
|
-
...normalizeParams()
|
|
1590
|
+
...normalizeParams(params)
|
|
1511
1591
|
});
|
|
1512
1592
|
}
|
|
1513
1593
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1517,14 +1597,14 @@ function _url(Class, params) {
|
|
|
1517
1597
|
format: "url",
|
|
1518
1598
|
check: "string_format",
|
|
1519
1599
|
abort: false,
|
|
1520
|
-
...normalizeParams()
|
|
1600
|
+
...normalizeParams(params)
|
|
1521
1601
|
});
|
|
1522
1602
|
}
|
|
1523
1603
|
// @__NO_SIDE_EFFECTS__
|
|
1524
1604
|
function _boolean(Class, params) {
|
|
1525
1605
|
return new Class({
|
|
1526
1606
|
type: "boolean",
|
|
1527
|
-
...normalizeParams()
|
|
1607
|
+
...normalizeParams(params)
|
|
1528
1608
|
});
|
|
1529
1609
|
}
|
|
1530
1610
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1537,7 +1617,7 @@ function _any(Class) {
|
|
|
1537
1617
|
function _length(length, params) {
|
|
1538
1618
|
return new $ZodCheckLengthEquals({
|
|
1539
1619
|
check: "length_equals",
|
|
1540
|
-
...normalizeParams(),
|
|
1620
|
+
...normalizeParams(params),
|
|
1541
1621
|
length
|
|
1542
1622
|
});
|
|
1543
1623
|
}
|
|
@@ -1546,7 +1626,7 @@ function _regex(pattern, params) {
|
|
|
1546
1626
|
return new $ZodCheckRegex({
|
|
1547
1627
|
check: "string_format",
|
|
1548
1628
|
format: "regex",
|
|
1549
|
-
...normalizeParams(),
|
|
1629
|
+
...normalizeParams(params),
|
|
1550
1630
|
pattern
|
|
1551
1631
|
});
|
|
1552
1632
|
}
|
|
@@ -1566,7 +1646,7 @@ function _toLowerCase() {
|
|
|
1566
1646
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
1567
1647
|
}
|
|
1568
1648
|
|
|
1569
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1649
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
1570
1650
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
1571
1651
|
if (!inst._zod)
|
|
1572
1652
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -1582,7 +1662,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
1582
1662
|
...def,
|
|
1583
1663
|
checks: [
|
|
1584
1664
|
...def.checks ?? [],
|
|
1585
|
-
...checks.map((ch) => typeof ch === "function" ? {
|
|
1665
|
+
...checks.map((ch) => typeof ch === "function" ? {
|
|
1666
|
+
_zod: { check: ch, def: { check: "custom" }, onattach: [] }
|
|
1667
|
+
} : ch)
|
|
1586
1668
|
]
|
|
1587
1669
|
}, { parent: true });
|
|
1588
1670
|
};
|
|
@@ -1601,7 +1683,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
|
|
|
1601
1683
|
});
|
|
1602
1684
|
// @__NO_SIDE_EFFECTS__
|
|
1603
1685
|
function string2(params) {
|
|
1604
|
-
return _string(ZodMiniString);
|
|
1686
|
+
return _string(ZodMiniString, params);
|
|
1605
1687
|
}
|
|
1606
1688
|
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
1607
1689
|
$ZodStringFormat.init(inst, def);
|
|
@@ -1613,7 +1695,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
|
1613
1695
|
});
|
|
1614
1696
|
// @__NO_SIDE_EFFECTS__
|
|
1615
1697
|
function url(params) {
|
|
1616
|
-
return _url(ZodMiniURL);
|
|
1698
|
+
return _url(ZodMiniURL, params);
|
|
1617
1699
|
}
|
|
1618
1700
|
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
1619
1701
|
$ZodBoolean.init(inst, def);
|
|
@@ -1621,7 +1703,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
|
|
|
1621
1703
|
});
|
|
1622
1704
|
// @__NO_SIDE_EFFECTS__
|
|
1623
1705
|
function boolean2(params) {
|
|
1624
|
-
return _boolean(ZodMiniBoolean);
|
|
1706
|
+
return _boolean(ZodMiniBoolean, params);
|
|
1625
1707
|
}
|
|
1626
1708
|
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
1627
1709
|
$ZodAny.init(inst, def);
|
|
@@ -1640,7 +1722,7 @@ function array(element, params) {
|
|
|
1640
1722
|
return new ZodMiniArray({
|
|
1641
1723
|
type: "array",
|
|
1642
1724
|
element,
|
|
1643
|
-
...normalizeParams()
|
|
1725
|
+
...normalizeParams(params)
|
|
1644
1726
|
});
|
|
1645
1727
|
}
|
|
1646
1728
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
@@ -1653,7 +1735,7 @@ function object(shape, params) {
|
|
|
1653
1735
|
const def = {
|
|
1654
1736
|
type: "object",
|
|
1655
1737
|
shape: shape ?? {},
|
|
1656
|
-
...normalizeParams()
|
|
1738
|
+
...normalizeParams(params)
|
|
1657
1739
|
};
|
|
1658
1740
|
return new ZodMiniObject(def);
|
|
1659
1741
|
}
|
|
@@ -1666,7 +1748,7 @@ function union(options, params) {
|
|
|
1666
1748
|
return new ZodMiniUnion({
|
|
1667
1749
|
type: "union",
|
|
1668
1750
|
options,
|
|
1669
|
-
...normalizeParams()
|
|
1751
|
+
...normalizeParams(params)
|
|
1670
1752
|
});
|
|
1671
1753
|
}
|
|
1672
1754
|
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
@@ -1675,11 +1757,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
|
|
|
1675
1757
|
});
|
|
1676
1758
|
// @__NO_SIDE_EFFECTS__
|
|
1677
1759
|
function record(keyType, valueType, params) {
|
|
1760
|
+
if (!valueType || !valueType._zod) {
|
|
1761
|
+
return new ZodMiniRecord({
|
|
1762
|
+
type: "record",
|
|
1763
|
+
keyType: /* @__PURE__ */ string2(),
|
|
1764
|
+
valueType: keyType,
|
|
1765
|
+
...normalizeParams(valueType)
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1678
1768
|
return new ZodMiniRecord({
|
|
1679
1769
|
type: "record",
|
|
1680
1770
|
keyType,
|
|
1681
1771
|
valueType,
|
|
1682
|
-
...normalizeParams()
|
|
1772
|
+
...normalizeParams(params)
|
|
1683
1773
|
});
|
|
1684
1774
|
}
|
|
1685
1775
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
@@ -1693,7 +1783,7 @@ function _enum(values, params) {
|
|
|
1693
1783
|
return new ZodMiniEnum({
|
|
1694
1784
|
type: "enum",
|
|
1695
1785
|
entries,
|
|
1696
|
-
...normalizeParams()
|
|
1786
|
+
...normalizeParams(params)
|
|
1697
1787
|
});
|
|
1698
1788
|
}
|
|
1699
1789
|
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
@@ -1705,7 +1795,7 @@ function literal(value, params) {
|
|
|
1705
1795
|
return new ZodMiniLiteral({
|
|
1706
1796
|
type: "literal",
|
|
1707
1797
|
values: Array.isArray(value) ? value : [value],
|
|
1708
|
-
...normalizeParams()
|
|
1798
|
+
...normalizeParams(params)
|
|
1709
1799
|
});
|
|
1710
1800
|
}
|
|
1711
1801
|
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|
|
@@ -3459,5 +3549,5 @@ exports.writeInfo = writeInfo;
|
|
|
3459
3549
|
exports.writeSuccess = writeSuccess;
|
|
3460
3550
|
exports.writeTrace = writeTrace;
|
|
3461
3551
|
exports.writeWarning = writeWarning;
|
|
3462
|
-
//# sourceMappingURL=chunk-
|
|
3463
|
-
//# sourceMappingURL=chunk-
|
|
3552
|
+
//# sourceMappingURL=chunk-PTYTYIPG.cjs.map
|
|
3553
|
+
//# sourceMappingURL=chunk-PTYTYIPG.cjs.map
|