@storm-software/git-tools 2.124.68 → 2.124.70
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-GU6JHGME.cjs → chunk-2JUV6SZN.cjs} +96 -563
- package/bin/chunk-2JUV6SZN.cjs.map +1 -0
- package/bin/{chunk-SAG2FKFE.js → chunk-FD6LP4AO.js} +96 -563
- package/bin/chunk-FD6LP4AO.js.map +1 -0
- package/bin/git.cjs +82 -80
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +3 -1
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-56CSIOQW.cjs → chunk-EMYFDYKP.cjs} +95 -557
- package/dist/{chunk-JEIQJXD6.js → chunk-VVJA5N2W.js} +95 -557
- package/dist/commit/minimal.cjs +0 -1
- package/dist/commit/minimal.js +0 -1
- package/dist/commit/monorepo.cjs +0 -1
- package/dist/commit/monorepo.js +0 -1
- package/dist/commitlint/minimal.cjs +0 -1
- package/dist/commitlint/minimal.js +0 -1
- package/dist/commitlint/monorepo.cjs +0 -1
- package/dist/commitlint/monorepo.js +0 -1
- package/dist/index.cjs +8 -9
- package/dist/index.js +1 -2
- package/dist/release/config.cjs +8 -9
- package/dist/release/config.d.cts +1 -0
- package/dist/release/config.d.ts +1 -0
- package/dist/release/config.js +1 -2
- package/dist/types.cjs +0 -1
- package/dist/types.js +0 -1
- package/package.json +12 -12
- package/bin/chunk-GU6JHGME.cjs.map +0 -1
- package/bin/chunk-SAG2FKFE.js.map +0 -1
- package/dist/chunk-75ZPJI57.cjs +0 -9
- package/dist/chunk-MLKGABMK.js +0 -7
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkNY53WLGC_cjs = require('./chunk-NY53WLGC.cjs');
|
|
4
4
|
var chunk4VPJA7YJ_cjs = require('./chunk-4VPJA7YJ.cjs');
|
|
5
|
-
var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
|
|
6
5
|
var defu = require('defu');
|
|
7
6
|
var c12 = require('c12');
|
|
8
7
|
require('date-fns/formatDistanceToNow');
|
|
@@ -609,92 +608,12 @@ function config(newConfig) {
|
|
|
609
608
|
return globalConfig;
|
|
610
609
|
}
|
|
611
610
|
|
|
612
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
613
|
-
var util_exports = {};
|
|
614
|
-
chunk75ZPJI57_cjs.__export(util_exports, {
|
|
615
|
-
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
616
|
-
Class: () => Class,
|
|
617
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
618
|
-
aborted: () => aborted,
|
|
619
|
-
allowsEval: () => allowsEval,
|
|
620
|
-
assert: () => assert,
|
|
621
|
-
assertEqual: () => assertEqual,
|
|
622
|
-
assertIs: () => assertIs,
|
|
623
|
-
assertNever: () => assertNever,
|
|
624
|
-
assertNotEqual: () => assertNotEqual,
|
|
625
|
-
assignProp: () => assignProp,
|
|
626
|
-
base64ToUint8Array: () => base64ToUint8Array,
|
|
627
|
-
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
628
|
-
cached: () => cached,
|
|
629
|
-
captureStackTrace: () => captureStackTrace,
|
|
630
|
-
cleanEnum: () => cleanEnum,
|
|
631
|
-
cleanRegex: () => cleanRegex,
|
|
632
|
-
clone: () => clone,
|
|
633
|
-
cloneDef: () => cloneDef,
|
|
634
|
-
createTransparentProxy: () => createTransparentProxy,
|
|
635
|
-
defineLazy: () => defineLazy,
|
|
636
|
-
esc: () => esc,
|
|
637
|
-
escapeRegex: () => escapeRegex,
|
|
638
|
-
extend: () => extend,
|
|
639
|
-
finalizeIssue: () => finalizeIssue,
|
|
640
|
-
floatSafeRemainder: () => floatSafeRemainder,
|
|
641
|
-
getElementAtPath: () => getElementAtPath,
|
|
642
|
-
getEnumValues: () => getEnumValues,
|
|
643
|
-
getLengthableOrigin: () => getLengthableOrigin,
|
|
644
|
-
getParsedType: () => getParsedType,
|
|
645
|
-
getSizableOrigin: () => getSizableOrigin,
|
|
646
|
-
hexToUint8Array: () => hexToUint8Array,
|
|
647
|
-
isObject: () => isObject,
|
|
648
|
-
isPlainObject: () => isPlainObject,
|
|
649
|
-
issue: () => issue,
|
|
650
|
-
joinValues: () => joinValues,
|
|
651
|
-
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
652
|
-
merge: () => merge,
|
|
653
|
-
mergeDefs: () => mergeDefs,
|
|
654
|
-
normalizeParams: () => normalizeParams,
|
|
655
|
-
nullish: () => nullish,
|
|
656
|
-
numKeys: () => numKeys,
|
|
657
|
-
objectClone: () => objectClone,
|
|
658
|
-
omit: () => omit2,
|
|
659
|
-
optionalKeys: () => optionalKeys,
|
|
660
|
-
partial: () => partial,
|
|
661
|
-
pick: () => pick,
|
|
662
|
-
prefixIssues: () => prefixIssues,
|
|
663
|
-
primitiveTypes: () => primitiveTypes,
|
|
664
|
-
promiseAllObject: () => promiseAllObject,
|
|
665
|
-
propertyKeyTypes: () => propertyKeyTypes,
|
|
666
|
-
randomString: () => randomString,
|
|
667
|
-
required: () => required,
|
|
668
|
-
safeExtend: () => safeExtend,
|
|
669
|
-
shallowClone: () => shallowClone,
|
|
670
|
-
slugify: () => slugify,
|
|
671
|
-
stringifyPrimitive: () => stringifyPrimitive,
|
|
672
|
-
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
673
|
-
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
674
|
-
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
675
|
-
unwrapMessage: () => unwrapMessage
|
|
676
|
-
});
|
|
677
|
-
function assertEqual(val) {
|
|
678
|
-
return val;
|
|
679
|
-
}
|
|
680
|
-
function assertNotEqual(val) {
|
|
681
|
-
return val;
|
|
682
|
-
}
|
|
683
|
-
function assertIs(_arg) {
|
|
684
|
-
}
|
|
685
|
-
function assertNever(_x) {
|
|
686
|
-
throw new Error("Unexpected value in exhaustive check");
|
|
687
|
-
}
|
|
688
|
-
function assert(_) {
|
|
689
|
-
}
|
|
611
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
690
612
|
function getEnumValues(entries) {
|
|
691
613
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
692
614
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
693
615
|
return values;
|
|
694
616
|
}
|
|
695
|
-
function joinValues(array2, separator = "|") {
|
|
696
|
-
return array2.map((val) => stringifyPrimitive(val)).join(separator);
|
|
697
|
-
}
|
|
698
617
|
function jsonStringifyReplacer(_, value) {
|
|
699
618
|
if (typeof value === "bigint")
|
|
700
619
|
return value.toString();
|
|
@@ -719,21 +638,6 @@ function cleanRegex(source) {
|
|
|
719
638
|
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
720
639
|
return source.slice(start, end);
|
|
721
640
|
}
|
|
722
|
-
function floatSafeRemainder(val, step) {
|
|
723
|
-
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
724
|
-
const stepString = step.toString();
|
|
725
|
-
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
726
|
-
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
727
|
-
const match = stepString.match(/\d?e-(\d?)/);
|
|
728
|
-
if (match?.[1]) {
|
|
729
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
733
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
734
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
735
|
-
return valInt % stepInt / 10 ** decCount;
|
|
736
|
-
}
|
|
737
641
|
var EVALUATING = Symbol("evaluating");
|
|
738
642
|
function defineLazy(object2, key, getter) {
|
|
739
643
|
let value = void 0;
|
|
@@ -757,75 +661,11 @@ function defineLazy(object2, key, getter) {
|
|
|
757
661
|
configurable: true
|
|
758
662
|
});
|
|
759
663
|
}
|
|
760
|
-
function objectClone(obj) {
|
|
761
|
-
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
762
|
-
}
|
|
763
|
-
function assignProp(target, prop, value) {
|
|
764
|
-
Object.defineProperty(target, prop, {
|
|
765
|
-
value,
|
|
766
|
-
writable: true,
|
|
767
|
-
enumerable: true,
|
|
768
|
-
configurable: true
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
function mergeDefs(...defs) {
|
|
772
|
-
const mergedDescriptors = {};
|
|
773
|
-
for (const def of defs) {
|
|
774
|
-
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
775
|
-
Object.assign(mergedDescriptors, descriptors);
|
|
776
|
-
}
|
|
777
|
-
return Object.defineProperties({}, mergedDescriptors);
|
|
778
|
-
}
|
|
779
|
-
function cloneDef(schema) {
|
|
780
|
-
return mergeDefs(schema._zod.def);
|
|
781
|
-
}
|
|
782
|
-
function getElementAtPath(obj, path) {
|
|
783
|
-
if (!path)
|
|
784
|
-
return obj;
|
|
785
|
-
return path.reduce((acc, key) => acc?.[key], obj);
|
|
786
|
-
}
|
|
787
|
-
function promiseAllObject(promisesObj) {
|
|
788
|
-
const keys = Object.keys(promisesObj);
|
|
789
|
-
const promises = keys.map((key) => promisesObj[key]);
|
|
790
|
-
return Promise.all(promises).then((results) => {
|
|
791
|
-
const resolvedObj = {};
|
|
792
|
-
for (let i = 0; i < keys.length; i++) {
|
|
793
|
-
resolvedObj[keys[i]] = results[i];
|
|
794
|
-
}
|
|
795
|
-
return resolvedObj;
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
function randomString(length = 10) {
|
|
799
|
-
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
800
|
-
let str = "";
|
|
801
|
-
for (let i = 0; i < length; i++) {
|
|
802
|
-
str += chars[Math.floor(Math.random() * chars.length)];
|
|
803
|
-
}
|
|
804
|
-
return str;
|
|
805
|
-
}
|
|
806
|
-
function esc(str) {
|
|
807
|
-
return JSON.stringify(str);
|
|
808
|
-
}
|
|
809
|
-
function slugify(input) {
|
|
810
|
-
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
811
|
-
}
|
|
812
664
|
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
813
665
|
};
|
|
814
666
|
function isObject(data) {
|
|
815
667
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
816
668
|
}
|
|
817
|
-
var allowsEval = cached(() => {
|
|
818
|
-
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
819
|
-
return false;
|
|
820
|
-
}
|
|
821
|
-
try {
|
|
822
|
-
const F = Function;
|
|
823
|
-
new F("");
|
|
824
|
-
return true;
|
|
825
|
-
} catch (_) {
|
|
826
|
-
return false;
|
|
827
|
-
}
|
|
828
|
-
});
|
|
829
669
|
function isPlainObject(o) {
|
|
830
670
|
if (isObject(o) === false)
|
|
831
671
|
return false;
|
|
@@ -849,61 +689,7 @@ function shallowClone(o) {
|
|
|
849
689
|
return [...o];
|
|
850
690
|
return o;
|
|
851
691
|
}
|
|
852
|
-
function numKeys(data) {
|
|
853
|
-
let keyCount = 0;
|
|
854
|
-
for (const key in data) {
|
|
855
|
-
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
856
|
-
keyCount++;
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
return keyCount;
|
|
860
|
-
}
|
|
861
|
-
var getParsedType = (data) => {
|
|
862
|
-
const t = typeof data;
|
|
863
|
-
switch (t) {
|
|
864
|
-
case "undefined":
|
|
865
|
-
return "undefined";
|
|
866
|
-
case "string":
|
|
867
|
-
return "string";
|
|
868
|
-
case "number":
|
|
869
|
-
return Number.isNaN(data) ? "nan" : "number";
|
|
870
|
-
case "boolean":
|
|
871
|
-
return "boolean";
|
|
872
|
-
case "function":
|
|
873
|
-
return "function";
|
|
874
|
-
case "bigint":
|
|
875
|
-
return "bigint";
|
|
876
|
-
case "symbol":
|
|
877
|
-
return "symbol";
|
|
878
|
-
case "object":
|
|
879
|
-
if (Array.isArray(data)) {
|
|
880
|
-
return "array";
|
|
881
|
-
}
|
|
882
|
-
if (data === null) {
|
|
883
|
-
return "null";
|
|
884
|
-
}
|
|
885
|
-
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
886
|
-
return "promise";
|
|
887
|
-
}
|
|
888
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
889
|
-
return "map";
|
|
890
|
-
}
|
|
891
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
892
|
-
return "set";
|
|
893
|
-
}
|
|
894
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
895
|
-
return "date";
|
|
896
|
-
}
|
|
897
|
-
if (typeof File !== "undefined" && data instanceof File) {
|
|
898
|
-
return "file";
|
|
899
|
-
}
|
|
900
|
-
return "object";
|
|
901
|
-
default:
|
|
902
|
-
throw new Error(`Unknown data type: ${t}`);
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
692
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
906
|
-
var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
907
693
|
function escapeRegex(str) {
|
|
908
694
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
909
695
|
}
|
|
@@ -914,230 +700,13 @@ function clone(inst, def, params) {
|
|
|
914
700
|
return cl;
|
|
915
701
|
}
|
|
916
702
|
function normalizeParams(_params) {
|
|
917
|
-
|
|
918
|
-
if (!params)
|
|
919
|
-
return {};
|
|
920
|
-
if (typeof params === "string")
|
|
921
|
-
return { error: () => params };
|
|
922
|
-
if (params?.message !== void 0) {
|
|
923
|
-
if (params?.error !== void 0)
|
|
924
|
-
throw new Error("Cannot specify both `message` and `error` params");
|
|
925
|
-
params.error = params.message;
|
|
926
|
-
}
|
|
927
|
-
delete params.message;
|
|
928
|
-
if (typeof params.error === "string")
|
|
929
|
-
return { ...params, error: () => params.error };
|
|
930
|
-
return params;
|
|
931
|
-
}
|
|
932
|
-
function createTransparentProxy(getter) {
|
|
933
|
-
let target;
|
|
934
|
-
return new Proxy({}, {
|
|
935
|
-
get(_, prop, receiver) {
|
|
936
|
-
target ?? (target = getter());
|
|
937
|
-
return Reflect.get(target, prop, receiver);
|
|
938
|
-
},
|
|
939
|
-
set(_, prop, value, receiver) {
|
|
940
|
-
target ?? (target = getter());
|
|
941
|
-
return Reflect.set(target, prop, value, receiver);
|
|
942
|
-
},
|
|
943
|
-
has(_, prop) {
|
|
944
|
-
target ?? (target = getter());
|
|
945
|
-
return Reflect.has(target, prop);
|
|
946
|
-
},
|
|
947
|
-
deleteProperty(_, prop) {
|
|
948
|
-
target ?? (target = getter());
|
|
949
|
-
return Reflect.deleteProperty(target, prop);
|
|
950
|
-
},
|
|
951
|
-
ownKeys(_) {
|
|
952
|
-
target ?? (target = getter());
|
|
953
|
-
return Reflect.ownKeys(target);
|
|
954
|
-
},
|
|
955
|
-
getOwnPropertyDescriptor(_, prop) {
|
|
956
|
-
target ?? (target = getter());
|
|
957
|
-
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
958
|
-
},
|
|
959
|
-
defineProperty(_, prop, descriptor) {
|
|
960
|
-
target ?? (target = getter());
|
|
961
|
-
return Reflect.defineProperty(target, prop, descriptor);
|
|
962
|
-
}
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
function stringifyPrimitive(value) {
|
|
966
|
-
if (typeof value === "bigint")
|
|
967
|
-
return value.toString() + "n";
|
|
968
|
-
if (typeof value === "string")
|
|
969
|
-
return `"${value}"`;
|
|
970
|
-
return `${value}`;
|
|
703
|
+
return {};
|
|
971
704
|
}
|
|
972
705
|
function optionalKeys(shape) {
|
|
973
706
|
return Object.keys(shape).filter((k) => {
|
|
974
707
|
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
975
708
|
});
|
|
976
709
|
}
|
|
977
|
-
var NUMBER_FORMAT_RANGES = {
|
|
978
|
-
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
979
|
-
int32: [-2147483648, 2147483647],
|
|
980
|
-
uint32: [0, 4294967295],
|
|
981
|
-
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
982
|
-
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
983
|
-
};
|
|
984
|
-
var BIGINT_FORMAT_RANGES = {
|
|
985
|
-
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
986
|
-
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
987
|
-
};
|
|
988
|
-
function pick(schema, mask) {
|
|
989
|
-
const currDef = schema._zod.def;
|
|
990
|
-
const def = mergeDefs(schema._zod.def, {
|
|
991
|
-
get shape() {
|
|
992
|
-
const newShape = {};
|
|
993
|
-
for (const key in mask) {
|
|
994
|
-
if (!(key in currDef.shape)) {
|
|
995
|
-
throw new Error(`Unrecognized key: "${key}"`);
|
|
996
|
-
}
|
|
997
|
-
if (!mask[key])
|
|
998
|
-
continue;
|
|
999
|
-
newShape[key] = currDef.shape[key];
|
|
1000
|
-
}
|
|
1001
|
-
assignProp(this, "shape", newShape);
|
|
1002
|
-
return newShape;
|
|
1003
|
-
},
|
|
1004
|
-
checks: []
|
|
1005
|
-
});
|
|
1006
|
-
return clone(schema, def);
|
|
1007
|
-
}
|
|
1008
|
-
function omit2(schema, mask) {
|
|
1009
|
-
const currDef = schema._zod.def;
|
|
1010
|
-
const def = mergeDefs(schema._zod.def, {
|
|
1011
|
-
get shape() {
|
|
1012
|
-
const newShape = { ...schema._zod.def.shape };
|
|
1013
|
-
for (const key in mask) {
|
|
1014
|
-
if (!(key in currDef.shape)) {
|
|
1015
|
-
throw new Error(`Unrecognized key: "${key}"`);
|
|
1016
|
-
}
|
|
1017
|
-
if (!mask[key])
|
|
1018
|
-
continue;
|
|
1019
|
-
delete newShape[key];
|
|
1020
|
-
}
|
|
1021
|
-
assignProp(this, "shape", newShape);
|
|
1022
|
-
return newShape;
|
|
1023
|
-
},
|
|
1024
|
-
checks: []
|
|
1025
|
-
});
|
|
1026
|
-
return clone(schema, def);
|
|
1027
|
-
}
|
|
1028
|
-
function extend(schema, shape) {
|
|
1029
|
-
if (!isPlainObject(shape)) {
|
|
1030
|
-
throw new Error("Invalid input to extend: expected a plain object");
|
|
1031
|
-
}
|
|
1032
|
-
const checks = schema._zod.def.checks;
|
|
1033
|
-
const hasChecks = checks && checks.length > 0;
|
|
1034
|
-
if (hasChecks) {
|
|
1035
|
-
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
1036
|
-
}
|
|
1037
|
-
const def = mergeDefs(schema._zod.def, {
|
|
1038
|
-
get shape() {
|
|
1039
|
-
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
1040
|
-
assignProp(this, "shape", _shape);
|
|
1041
|
-
return _shape;
|
|
1042
|
-
},
|
|
1043
|
-
checks: []
|
|
1044
|
-
});
|
|
1045
|
-
return clone(schema, def);
|
|
1046
|
-
}
|
|
1047
|
-
function safeExtend(schema, shape) {
|
|
1048
|
-
if (!isPlainObject(shape)) {
|
|
1049
|
-
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
1050
|
-
}
|
|
1051
|
-
const def = {
|
|
1052
|
-
...schema._zod.def,
|
|
1053
|
-
get shape() {
|
|
1054
|
-
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
1055
|
-
assignProp(this, "shape", _shape);
|
|
1056
|
-
return _shape;
|
|
1057
|
-
},
|
|
1058
|
-
checks: schema._zod.def.checks
|
|
1059
|
-
};
|
|
1060
|
-
return clone(schema, def);
|
|
1061
|
-
}
|
|
1062
|
-
function merge(a, b) {
|
|
1063
|
-
const def = mergeDefs(a._zod.def, {
|
|
1064
|
-
get shape() {
|
|
1065
|
-
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
1066
|
-
assignProp(this, "shape", _shape);
|
|
1067
|
-
return _shape;
|
|
1068
|
-
},
|
|
1069
|
-
get catchall() {
|
|
1070
|
-
return b._zod.def.catchall;
|
|
1071
|
-
},
|
|
1072
|
-
checks: []
|
|
1073
|
-
// delete existing checks
|
|
1074
|
-
});
|
|
1075
|
-
return clone(a, def);
|
|
1076
|
-
}
|
|
1077
|
-
function partial(Class2, schema, mask) {
|
|
1078
|
-
const def = mergeDefs(schema._zod.def, {
|
|
1079
|
-
get shape() {
|
|
1080
|
-
const oldShape = schema._zod.def.shape;
|
|
1081
|
-
const shape = { ...oldShape };
|
|
1082
|
-
if (mask) {
|
|
1083
|
-
for (const key in mask) {
|
|
1084
|
-
if (!(key in oldShape)) {
|
|
1085
|
-
throw new Error(`Unrecognized key: "${key}"`);
|
|
1086
|
-
}
|
|
1087
|
-
if (!mask[key])
|
|
1088
|
-
continue;
|
|
1089
|
-
shape[key] = Class2 ? new Class2({
|
|
1090
|
-
type: "optional",
|
|
1091
|
-
innerType: oldShape[key]
|
|
1092
|
-
}) : oldShape[key];
|
|
1093
|
-
}
|
|
1094
|
-
} else {
|
|
1095
|
-
for (const key in oldShape) {
|
|
1096
|
-
shape[key] = Class2 ? new Class2({
|
|
1097
|
-
type: "optional",
|
|
1098
|
-
innerType: oldShape[key]
|
|
1099
|
-
}) : oldShape[key];
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
assignProp(this, "shape", shape);
|
|
1103
|
-
return shape;
|
|
1104
|
-
},
|
|
1105
|
-
checks: []
|
|
1106
|
-
});
|
|
1107
|
-
return clone(schema, def);
|
|
1108
|
-
}
|
|
1109
|
-
function required(Class2, schema, mask) {
|
|
1110
|
-
const def = mergeDefs(schema._zod.def, {
|
|
1111
|
-
get shape() {
|
|
1112
|
-
const oldShape = schema._zod.def.shape;
|
|
1113
|
-
const shape = { ...oldShape };
|
|
1114
|
-
if (mask) {
|
|
1115
|
-
for (const key in mask) {
|
|
1116
|
-
if (!(key in shape)) {
|
|
1117
|
-
throw new Error(`Unrecognized key: "${key}"`);
|
|
1118
|
-
}
|
|
1119
|
-
if (!mask[key])
|
|
1120
|
-
continue;
|
|
1121
|
-
shape[key] = new Class2({
|
|
1122
|
-
type: "nonoptional",
|
|
1123
|
-
innerType: oldShape[key]
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
} else {
|
|
1127
|
-
for (const key in oldShape) {
|
|
1128
|
-
shape[key] = new Class2({
|
|
1129
|
-
type: "nonoptional",
|
|
1130
|
-
innerType: oldShape[key]
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
assignProp(this, "shape", shape);
|
|
1135
|
-
return shape;
|
|
1136
|
-
},
|
|
1137
|
-
checks: []
|
|
1138
|
-
});
|
|
1139
|
-
return clone(schema, def);
|
|
1140
|
-
}
|
|
1141
710
|
function aborted(x, startIndex = 0) {
|
|
1142
711
|
if (x.aborted === true)
|
|
1143
712
|
return true;
|
|
@@ -1172,15 +741,6 @@ function finalizeIssue(iss, ctx, config2) {
|
|
|
1172
741
|
}
|
|
1173
742
|
return full;
|
|
1174
743
|
}
|
|
1175
|
-
function getSizableOrigin(input) {
|
|
1176
|
-
if (input instanceof Set)
|
|
1177
|
-
return "set";
|
|
1178
|
-
if (input instanceof Map)
|
|
1179
|
-
return "map";
|
|
1180
|
-
if (input instanceof File)
|
|
1181
|
-
return "file";
|
|
1182
|
-
return "unknown";
|
|
1183
|
-
}
|
|
1184
744
|
function getLengthableOrigin(input) {
|
|
1185
745
|
if (Array.isArray(input))
|
|
1186
746
|
return "array";
|
|
@@ -1188,66 +748,8 @@ function getLengthableOrigin(input) {
|
|
|
1188
748
|
return "string";
|
|
1189
749
|
return "unknown";
|
|
1190
750
|
}
|
|
1191
|
-
function issue(...args) {
|
|
1192
|
-
const [iss, input, inst] = args;
|
|
1193
|
-
if (typeof iss === "string") {
|
|
1194
|
-
return {
|
|
1195
|
-
message: iss,
|
|
1196
|
-
code: "custom",
|
|
1197
|
-
input,
|
|
1198
|
-
inst
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
return { ...iss };
|
|
1202
|
-
}
|
|
1203
|
-
function cleanEnum(obj) {
|
|
1204
|
-
return Object.entries(obj).filter(([k, _]) => {
|
|
1205
|
-
return Number.isNaN(Number.parseInt(k, 10));
|
|
1206
|
-
}).map((el) => el[1]);
|
|
1207
|
-
}
|
|
1208
|
-
function base64ToUint8Array(base642) {
|
|
1209
|
-
const binaryString = atob(base642);
|
|
1210
|
-
const bytes = new Uint8Array(binaryString.length);
|
|
1211
|
-
for (let i = 0; i < binaryString.length; i++) {
|
|
1212
|
-
bytes[i] = binaryString.charCodeAt(i);
|
|
1213
|
-
}
|
|
1214
|
-
return bytes;
|
|
1215
|
-
}
|
|
1216
|
-
function uint8ArrayToBase64(bytes) {
|
|
1217
|
-
let binaryString = "";
|
|
1218
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
1219
|
-
binaryString += String.fromCharCode(bytes[i]);
|
|
1220
|
-
}
|
|
1221
|
-
return btoa(binaryString);
|
|
1222
|
-
}
|
|
1223
|
-
function base64urlToUint8Array(base64url2) {
|
|
1224
|
-
const base642 = base64url2.replace(/-/g, "+").replace(/_/g, "/");
|
|
1225
|
-
const padding = "=".repeat((4 - base642.length % 4) % 4);
|
|
1226
|
-
return base64ToUint8Array(base642 + padding);
|
|
1227
|
-
}
|
|
1228
|
-
function uint8ArrayToBase64url(bytes) {
|
|
1229
|
-
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
1230
|
-
}
|
|
1231
|
-
function hexToUint8Array(hex) {
|
|
1232
|
-
const cleanHex = hex.replace(/^0x/, "");
|
|
1233
|
-
if (cleanHex.length % 2 !== 0) {
|
|
1234
|
-
throw new Error("Invalid hex string length");
|
|
1235
|
-
}
|
|
1236
|
-
const bytes = new Uint8Array(cleanHex.length / 2);
|
|
1237
|
-
for (let i = 0; i < cleanHex.length; i += 2) {
|
|
1238
|
-
bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
|
|
1239
|
-
}
|
|
1240
|
-
return bytes;
|
|
1241
|
-
}
|
|
1242
|
-
function uint8ArrayToHex(bytes) {
|
|
1243
|
-
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
1244
|
-
}
|
|
1245
|
-
var Class = class {
|
|
1246
|
-
constructor(..._args) {
|
|
1247
|
-
}
|
|
1248
|
-
};
|
|
1249
751
|
|
|
1250
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
752
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
1251
753
|
var initializer = (inst, def) => {
|
|
1252
754
|
inst.name = "$ZodError";
|
|
1253
755
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1267,7 +769,7 @@ var initializer = (inst, def) => {
|
|
|
1267
769
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1268
770
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1269
771
|
|
|
1270
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
772
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
1271
773
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1272
774
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1273
775
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1322,9 +824,10 @@ var string = (params) => {
|
|
|
1322
824
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
1323
825
|
return new RegExp(`^${regex}$`);
|
|
1324
826
|
};
|
|
827
|
+
var number = /^-?\d+(?:\.\d+)?$/;
|
|
1325
828
|
var boolean = /^(?:true|false)$/i;
|
|
1326
829
|
|
|
1327
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
830
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
1328
831
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1329
832
|
var _a2;
|
|
1330
833
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1416,14 +919,14 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1416
919
|
};
|
|
1417
920
|
});
|
|
1418
921
|
|
|
1419
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
922
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1420
923
|
var version = {
|
|
1421
924
|
major: 4,
|
|
1422
|
-
minor:
|
|
1423
|
-
patch:
|
|
925
|
+
minor: 3,
|
|
926
|
+
patch: 6
|
|
1424
927
|
};
|
|
1425
928
|
|
|
1426
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
929
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1427
930
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1428
931
|
var _a2;
|
|
1429
932
|
inst ?? (inst = {});
|
|
@@ -1520,7 +1023,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1520
1023
|
return runChecks(result, checks, ctx);
|
|
1521
1024
|
};
|
|
1522
1025
|
}
|
|
1523
|
-
inst
|
|
1026
|
+
defineLazy(inst, "~standard", () => ({
|
|
1524
1027
|
validate: (value) => {
|
|
1525
1028
|
try {
|
|
1526
1029
|
const r = safeParse(inst, value);
|
|
@@ -1531,7 +1034,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1531
1034
|
},
|
|
1532
1035
|
vendor: "zod",
|
|
1533
1036
|
version: 1
|
|
1534
|
-
};
|
|
1037
|
+
}));
|
|
1535
1038
|
});
|
|
1536
1039
|
var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
1537
1040
|
$ZodType.init(inst, def);
|
|
@@ -1672,8 +1175,11 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
1672
1175
|
return payload;
|
|
1673
1176
|
};
|
|
1674
1177
|
});
|
|
1675
|
-
function handlePropertyResult(result, final, key, input) {
|
|
1178
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
1676
1179
|
if (result.issues.length) {
|
|
1180
|
+
if (isOptionalOut && !(key in input)) {
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1677
1183
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
1678
1184
|
}
|
|
1679
1185
|
if (result.value === void 0) {
|
|
@@ -1705,6 +1211,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1705
1211
|
const keySet = def.keySet;
|
|
1706
1212
|
const _catchall = def.catchall._zod;
|
|
1707
1213
|
const t = _catchall.def.type;
|
|
1214
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
1708
1215
|
for (const key in input) {
|
|
1709
1216
|
if (keySet.has(key))
|
|
1710
1217
|
continue;
|
|
@@ -1714,9 +1221,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1714
1221
|
}
|
|
1715
1222
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
1716
1223
|
if (r instanceof Promise) {
|
|
1717
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
|
1224
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1718
1225
|
} else {
|
|
1719
|
-
handlePropertyResult(r, payload, key, input);
|
|
1226
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1720
1227
|
}
|
|
1721
1228
|
}
|
|
1722
1229
|
if (unrecognized.length) {
|
|
@@ -1782,11 +1289,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1782
1289
|
const shape = value.shape;
|
|
1783
1290
|
for (const key of value.keys) {
|
|
1784
1291
|
const el = shape[key];
|
|
1292
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
1785
1293
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1786
1294
|
if (r instanceof Promise) {
|
|
1787
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
|
1295
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1788
1296
|
} else {
|
|
1789
|
-
handlePropertyResult(r, payload, key, input);
|
|
1297
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1790
1298
|
}
|
|
1791
1299
|
}
|
|
1792
1300
|
if (!catchall) {
|
|
@@ -1918,10 +1426,20 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1918
1426
|
for (const key of Reflect.ownKeys(input)) {
|
|
1919
1427
|
if (key === "__proto__")
|
|
1920
1428
|
continue;
|
|
1921
|
-
|
|
1429
|
+
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1922
1430
|
if (keyResult instanceof Promise) {
|
|
1923
1431
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1924
1432
|
}
|
|
1433
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
1434
|
+
if (checkNumericKey) {
|
|
1435
|
+
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
1436
|
+
if (retryResult instanceof Promise) {
|
|
1437
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1438
|
+
}
|
|
1439
|
+
if (retryResult.issues.length === 0) {
|
|
1440
|
+
keyResult = retryResult;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1925
1443
|
if (keyResult.issues.length) {
|
|
1926
1444
|
if (def.mode === "loose") {
|
|
1927
1445
|
payload.value[key] = input[key];
|
|
@@ -2074,7 +1592,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2074
1592
|
return payload;
|
|
2075
1593
|
}
|
|
2076
1594
|
|
|
2077
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
1595
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
2078
1596
|
var _a;
|
|
2079
1597
|
var $ZodRegistry = class {
|
|
2080
1598
|
constructor() {
|
|
@@ -2085,9 +1603,6 @@ var $ZodRegistry = class {
|
|
|
2085
1603
|
const meta2 = _meta[0];
|
|
2086
1604
|
this._map.set(schema, meta2);
|
|
2087
1605
|
if (meta2 && typeof meta2 === "object" && "id" in meta2) {
|
|
2088
|
-
if (this._idmap.has(meta2.id)) {
|
|
2089
|
-
throw new Error(`ID ${meta2.id} already exists in the registry`);
|
|
2090
|
-
}
|
|
2091
1606
|
this._idmap.set(meta2.id, schema);
|
|
2092
1607
|
}
|
|
2093
1608
|
return this;
|
|
@@ -2124,62 +1639,71 @@ function registry() {
|
|
|
2124
1639
|
}
|
|
2125
1640
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2126
1641
|
|
|
2127
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2128
|
-
|
|
2129
|
-
|
|
1642
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
1643
|
+
// @__NO_SIDE_EFFECTS__
|
|
1644
|
+
function _string(Class, params) {
|
|
1645
|
+
return new Class({
|
|
2130
1646
|
type: "string",
|
|
2131
|
-
...normalizeParams(
|
|
1647
|
+
...normalizeParams()
|
|
2132
1648
|
});
|
|
2133
1649
|
}
|
|
2134
|
-
|
|
2135
|
-
|
|
1650
|
+
// @__NO_SIDE_EFFECTS__
|
|
1651
|
+
function _url(Class, params) {
|
|
1652
|
+
return new Class({
|
|
2136
1653
|
type: "string",
|
|
2137
1654
|
format: "url",
|
|
2138
1655
|
check: "string_format",
|
|
2139
1656
|
abort: false,
|
|
2140
|
-
...normalizeParams(
|
|
1657
|
+
...normalizeParams()
|
|
2141
1658
|
});
|
|
2142
1659
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
1660
|
+
// @__NO_SIDE_EFFECTS__
|
|
1661
|
+
function _boolean(Class, params) {
|
|
1662
|
+
return new Class({
|
|
2145
1663
|
type: "boolean",
|
|
2146
|
-
...normalizeParams(
|
|
1664
|
+
...normalizeParams()
|
|
2147
1665
|
});
|
|
2148
1666
|
}
|
|
2149
|
-
|
|
2150
|
-
|
|
1667
|
+
// @__NO_SIDE_EFFECTS__
|
|
1668
|
+
function _any(Class) {
|
|
1669
|
+
return new Class({
|
|
2151
1670
|
type: "any"
|
|
2152
1671
|
});
|
|
2153
1672
|
}
|
|
1673
|
+
// @__NO_SIDE_EFFECTS__
|
|
2154
1674
|
function _length(length, params) {
|
|
2155
1675
|
return new $ZodCheckLengthEquals({
|
|
2156
1676
|
check: "length_equals",
|
|
2157
|
-
...normalizeParams(
|
|
1677
|
+
...normalizeParams(),
|
|
2158
1678
|
length
|
|
2159
1679
|
});
|
|
2160
1680
|
}
|
|
1681
|
+
// @__NO_SIDE_EFFECTS__
|
|
2161
1682
|
function _regex(pattern, params) {
|
|
2162
1683
|
return new $ZodCheckRegex({
|
|
2163
1684
|
check: "string_format",
|
|
2164
1685
|
format: "regex",
|
|
2165
|
-
...normalizeParams(
|
|
1686
|
+
...normalizeParams(),
|
|
2166
1687
|
pattern
|
|
2167
1688
|
});
|
|
2168
1689
|
}
|
|
1690
|
+
// @__NO_SIDE_EFFECTS__
|
|
2169
1691
|
function _overwrite(tx) {
|
|
2170
1692
|
return new $ZodCheckOverwrite({
|
|
2171
1693
|
check: "overwrite",
|
|
2172
1694
|
tx
|
|
2173
1695
|
});
|
|
2174
1696
|
}
|
|
1697
|
+
// @__NO_SIDE_EFFECTS__
|
|
2175
1698
|
function _trim() {
|
|
2176
|
-
return _overwrite((input) => input.trim());
|
|
1699
|
+
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2177
1700
|
}
|
|
1701
|
+
// @__NO_SIDE_EFFECTS__
|
|
2178
1702
|
function _toLowerCase() {
|
|
2179
|
-
return _overwrite((input) => input.toLowerCase());
|
|
1703
|
+
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2180
1704
|
}
|
|
2181
1705
|
|
|
2182
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
1706
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
|
|
2183
1707
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
2184
1708
|
if (!inst._zod)
|
|
2185
1709
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -2191,30 +1715,30 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
2191
1715
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
2192
1716
|
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
2193
1717
|
inst.check = (...checks) => {
|
|
2194
|
-
return inst.clone(
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
checks
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
}
|
|
2202
|
-
// { parent: true }
|
|
2203
|
-
);
|
|
1718
|
+
return inst.clone({
|
|
1719
|
+
...def,
|
|
1720
|
+
checks: [
|
|
1721
|
+
...def.checks ?? [],
|
|
1722
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
1723
|
+
]
|
|
1724
|
+
}, { parent: true });
|
|
2204
1725
|
};
|
|
1726
|
+
inst.with = inst.check;
|
|
2205
1727
|
inst.clone = (_def, params) => clone(inst, _def, params);
|
|
2206
1728
|
inst.brand = () => inst;
|
|
2207
1729
|
inst.register = ((reg, meta2) => {
|
|
2208
1730
|
reg.add(inst, meta2);
|
|
2209
1731
|
return inst;
|
|
2210
1732
|
});
|
|
1733
|
+
inst.apply = (fn) => fn(inst);
|
|
2211
1734
|
});
|
|
2212
1735
|
var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
|
|
2213
1736
|
$ZodString.init(inst, def);
|
|
2214
1737
|
ZodMiniType.init(inst, def);
|
|
2215
1738
|
});
|
|
1739
|
+
// @__NO_SIDE_EFFECTS__
|
|
2216
1740
|
function string2(params) {
|
|
2217
|
-
return _string(ZodMiniString
|
|
1741
|
+
return _string(ZodMiniString);
|
|
2218
1742
|
}
|
|
2219
1743
|
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
2220
1744
|
$ZodStringFormat.init(inst, def);
|
|
@@ -2224,20 +1748,23 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
|
2224
1748
|
$ZodURL.init(inst, def);
|
|
2225
1749
|
ZodMiniStringFormat.init(inst, def);
|
|
2226
1750
|
});
|
|
1751
|
+
// @__NO_SIDE_EFFECTS__
|
|
2227
1752
|
function url(params) {
|
|
2228
|
-
return _url(ZodMiniURL
|
|
1753
|
+
return _url(ZodMiniURL);
|
|
2229
1754
|
}
|
|
2230
1755
|
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
2231
1756
|
$ZodBoolean.init(inst, def);
|
|
2232
1757
|
ZodMiniType.init(inst, def);
|
|
2233
1758
|
});
|
|
1759
|
+
// @__NO_SIDE_EFFECTS__
|
|
2234
1760
|
function boolean2(params) {
|
|
2235
|
-
return _boolean(ZodMiniBoolean
|
|
1761
|
+
return _boolean(ZodMiniBoolean);
|
|
2236
1762
|
}
|
|
2237
1763
|
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
2238
1764
|
$ZodAny.init(inst, def);
|
|
2239
1765
|
ZodMiniType.init(inst, def);
|
|
2240
1766
|
});
|
|
1767
|
+
// @__NO_SIDE_EFFECTS__
|
|
2241
1768
|
function any() {
|
|
2242
1769
|
return _any(ZodMiniAny);
|
|
2243
1770
|
}
|
|
@@ -2245,23 +1772,25 @@ var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
|
|
|
2245
1772
|
$ZodArray.init(inst, def);
|
|
2246
1773
|
ZodMiniType.init(inst, def);
|
|
2247
1774
|
});
|
|
1775
|
+
// @__NO_SIDE_EFFECTS__
|
|
2248
1776
|
function array(element, params) {
|
|
2249
1777
|
return new ZodMiniArray({
|
|
2250
1778
|
type: "array",
|
|
2251
1779
|
element,
|
|
2252
|
-
...
|
|
1780
|
+
...normalizeParams()
|
|
2253
1781
|
});
|
|
2254
1782
|
}
|
|
2255
1783
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
2256
1784
|
$ZodObject.init(inst, def);
|
|
2257
1785
|
ZodMiniType.init(inst, def);
|
|
2258
|
-
|
|
1786
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
2259
1787
|
});
|
|
1788
|
+
// @__NO_SIDE_EFFECTS__
|
|
2260
1789
|
function object(shape, params) {
|
|
2261
1790
|
const def = {
|
|
2262
1791
|
type: "object",
|
|
2263
1792
|
shape: shape ?? {},
|
|
2264
|
-
...
|
|
1793
|
+
...normalizeParams()
|
|
2265
1794
|
};
|
|
2266
1795
|
return new ZodMiniObject(def);
|
|
2267
1796
|
}
|
|
@@ -2269,23 +1798,25 @@ var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
|
|
|
2269
1798
|
$ZodUnion.init(inst, def);
|
|
2270
1799
|
ZodMiniType.init(inst, def);
|
|
2271
1800
|
});
|
|
1801
|
+
// @__NO_SIDE_EFFECTS__
|
|
2272
1802
|
function union(options, params) {
|
|
2273
1803
|
return new ZodMiniUnion({
|
|
2274
1804
|
type: "union",
|
|
2275
1805
|
options,
|
|
2276
|
-
...
|
|
1806
|
+
...normalizeParams()
|
|
2277
1807
|
});
|
|
2278
1808
|
}
|
|
2279
1809
|
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
2280
1810
|
$ZodRecord.init(inst, def);
|
|
2281
1811
|
ZodMiniType.init(inst, def);
|
|
2282
1812
|
});
|
|
1813
|
+
// @__NO_SIDE_EFFECTS__
|
|
2283
1814
|
function record(keyType, valueType, params) {
|
|
2284
1815
|
return new ZodMiniRecord({
|
|
2285
1816
|
type: "record",
|
|
2286
1817
|
keyType,
|
|
2287
1818
|
valueType,
|
|
2288
|
-
...
|
|
1819
|
+
...normalizeParams()
|
|
2289
1820
|
});
|
|
2290
1821
|
}
|
|
2291
1822
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
@@ -2293,29 +1824,32 @@ var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
|
2293
1824
|
ZodMiniType.init(inst, def);
|
|
2294
1825
|
inst.options = Object.values(def.entries);
|
|
2295
1826
|
});
|
|
1827
|
+
// @__NO_SIDE_EFFECTS__
|
|
2296
1828
|
function _enum(values, params) {
|
|
2297
1829
|
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
2298
1830
|
return new ZodMiniEnum({
|
|
2299
1831
|
type: "enum",
|
|
2300
1832
|
entries,
|
|
2301
|
-
...
|
|
1833
|
+
...normalizeParams()
|
|
2302
1834
|
});
|
|
2303
1835
|
}
|
|
2304
1836
|
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
2305
1837
|
$ZodLiteral.init(inst, def);
|
|
2306
1838
|
ZodMiniType.init(inst, def);
|
|
2307
1839
|
});
|
|
1840
|
+
// @__NO_SIDE_EFFECTS__
|
|
2308
1841
|
function literal(value, params) {
|
|
2309
1842
|
return new ZodMiniLiteral({
|
|
2310
1843
|
type: "literal",
|
|
2311
1844
|
values: Array.isArray(value) ? value : [value],
|
|
2312
|
-
...
|
|
1845
|
+
...normalizeParams()
|
|
2313
1846
|
});
|
|
2314
1847
|
}
|
|
2315
1848
|
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|
|
2316
1849
|
$ZodOptional.init(inst, def);
|
|
2317
1850
|
ZodMiniType.init(inst, def);
|
|
2318
1851
|
});
|
|
1852
|
+
// @__NO_SIDE_EFFECTS__
|
|
2319
1853
|
function optional(innerType) {
|
|
2320
1854
|
return new ZodMiniOptional({
|
|
2321
1855
|
type: "optional",
|
|
@@ -2326,6 +1860,7 @@ var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def
|
|
|
2326
1860
|
$ZodNullable.init(inst, def);
|
|
2327
1861
|
ZodMiniType.init(inst, def);
|
|
2328
1862
|
});
|
|
1863
|
+
// @__NO_SIDE_EFFECTS__
|
|
2329
1864
|
function nullable(innerType) {
|
|
2330
1865
|
return new ZodMiniNullable({
|
|
2331
1866
|
type: "nullable",
|
|
@@ -2336,12 +1871,13 @@ var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def)
|
|
|
2336
1871
|
$ZodDefault.init(inst, def);
|
|
2337
1872
|
ZodMiniType.init(inst, def);
|
|
2338
1873
|
});
|
|
1874
|
+
// @__NO_SIDE_EFFECTS__
|
|
2339
1875
|
function _default(innerType, defaultValue) {
|
|
2340
1876
|
return new ZodMiniDefault({
|
|
2341
1877
|
type: "default",
|
|
2342
1878
|
innerType,
|
|
2343
1879
|
get defaultValue() {
|
|
2344
|
-
return typeof defaultValue === "function" ? defaultValue() :
|
|
1880
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
2345
1881
|
}
|
|
2346
1882
|
});
|
|
2347
1883
|
}
|
|
@@ -4010,6 +3546,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
4010
3546
|
}
|
|
4011
3547
|
if (this.isVersionPlans) {
|
|
4012
3548
|
this.conventionalCommitsConfig = {
|
|
3549
|
+
useCommitScope: this.workspaceConfig?.variant === "monorepo",
|
|
4013
3550
|
types: {
|
|
4014
3551
|
feat: conventionalCommits.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.feat,
|
|
4015
3552
|
fix: conventionalCommits.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.fix
|
|
@@ -4166,6 +3703,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
4166
3703
|
|
|
4167
3704
|
// src/release/config.ts
|
|
4168
3705
|
var DEFAULT_CONVENTIONAL_COMMITS_CONFIG2 = {
|
|
3706
|
+
useCommitScope: true,
|
|
4169
3707
|
questions: chunkNY53WLGC_cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
4170
3708
|
types: chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES
|
|
4171
3709
|
};
|