@xyo-network/hash 5.5.1 → 5.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+platform@5.
|
|
3
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+platform@5.1.1/node_modules/@xylabs/platform/dist/browser/index-browser.mjs
|
|
4
4
|
var subtle = globalThis.crypto.subtle;
|
|
5
5
|
|
|
6
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+threads@5.
|
|
6
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+threads@5.1.1_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
|
|
7
7
|
var DefaultErrorSerializer = {
|
|
8
8
|
deserialize(message) {
|
|
9
9
|
return Object.assign(new Error(message.message), {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+typeof@5.
|
|
9
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+typeof@5.1.1/node_modules/@xylabs/typeof/dist/neutral/index.mjs
|
|
10
10
|
function isUndefined(value) {
|
|
11
11
|
return value === void 0;
|
|
12
12
|
}
|
|
@@ -17,10 +17,8 @@
|
|
|
17
17
|
return typeof value === "number";
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
21
|
-
var
|
|
22
|
-
status: "aborted"
|
|
23
|
-
});
|
|
20
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
21
|
+
var _a;
|
|
24
22
|
// @__NO_SIDE_EFFECTS__
|
|
25
23
|
function $constructor(name, initializer3, params) {
|
|
26
24
|
function init(inst, def) {
|
|
@@ -53,10 +51,10 @@
|
|
|
53
51
|
}
|
|
54
52
|
Object.defineProperty(Definition, "name", { value: name });
|
|
55
53
|
function _(def) {
|
|
56
|
-
var
|
|
54
|
+
var _a4;
|
|
57
55
|
const inst = params?.Parent ? new Definition() : this;
|
|
58
56
|
init(inst, def);
|
|
59
|
-
(
|
|
57
|
+
(_a4 = inst._zod).deferred ?? (_a4.deferred = []);
|
|
60
58
|
for (const fn of inst._zod.deferred) {
|
|
61
59
|
fn();
|
|
62
60
|
}
|
|
@@ -84,14 +82,15 @@
|
|
|
84
82
|
this.name = "ZodEncodeError";
|
|
85
83
|
}
|
|
86
84
|
};
|
|
87
|
-
|
|
85
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
86
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
88
87
|
function config(newConfig) {
|
|
89
88
|
if (newConfig)
|
|
90
89
|
Object.assign(globalConfig, newConfig);
|
|
91
90
|
return globalConfig;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
93
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
95
94
|
var util_exports = {};
|
|
96
95
|
__export(util_exports, {
|
|
97
96
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -117,6 +116,7 @@
|
|
|
117
116
|
defineLazy: () => defineLazy,
|
|
118
117
|
esc: () => esc,
|
|
119
118
|
escapeRegex: () => escapeRegex,
|
|
119
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
120
120
|
extend: () => extend,
|
|
121
121
|
finalizeIssue: () => finalizeIssue,
|
|
122
122
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -205,19 +205,12 @@
|
|
|
205
205
|
return source.slice(start, end);
|
|
206
206
|
}
|
|
207
207
|
function floatSafeRemainder(val, step) {
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
218
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
219
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
220
|
-
return valInt % stepInt / 10 ** decCount;
|
|
208
|
+
const ratio = val / step;
|
|
209
|
+
const roundedRatio = Math.round(ratio);
|
|
210
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
211
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
212
|
+
return 0;
|
|
213
|
+
return ratio - roundedRatio;
|
|
221
214
|
}
|
|
222
215
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
223
216
|
function defineLazy(object, key, getter) {
|
|
@@ -299,7 +292,10 @@
|
|
|
299
292
|
function isObject(data) {
|
|
300
293
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
301
294
|
}
|
|
302
|
-
var allowsEval = cached(() => {
|
|
295
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
296
|
+
if (globalConfig.jitless) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
303
299
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
304
300
|
return false;
|
|
305
301
|
}
|
|
@@ -332,6 +328,10 @@
|
|
|
332
328
|
return { ...o };
|
|
333
329
|
if (Array.isArray(o))
|
|
334
330
|
return [...o];
|
|
331
|
+
if (o instanceof Map)
|
|
332
|
+
return new Map(o);
|
|
333
|
+
if (o instanceof Set)
|
|
334
|
+
return new Set(o);
|
|
335
335
|
return o;
|
|
336
336
|
}
|
|
337
337
|
function numKeys(data) {
|
|
@@ -388,7 +388,14 @@
|
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
391
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
391
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
392
|
+
"string",
|
|
393
|
+
"number",
|
|
394
|
+
"bigint",
|
|
395
|
+
"boolean",
|
|
396
|
+
"symbol",
|
|
397
|
+
"undefined"
|
|
398
|
+
]);
|
|
392
399
|
function escapeRegex(str) {
|
|
393
400
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
394
401
|
}
|
|
@@ -557,6 +564,9 @@
|
|
|
557
564
|
return clone(schema, def);
|
|
558
565
|
}
|
|
559
566
|
function merge(a, b) {
|
|
567
|
+
if (a._zod.def.checks?.length) {
|
|
568
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
569
|
+
}
|
|
560
570
|
const def = mergeDefs(a._zod.def, {
|
|
561
571
|
get shape() {
|
|
562
572
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -566,8 +576,7 @@
|
|
|
566
576
|
get catchall() {
|
|
567
577
|
return b._zod.def.catchall;
|
|
568
578
|
},
|
|
569
|
-
checks: []
|
|
570
|
-
// delete existing checks
|
|
579
|
+
checks: b._zod.def.checks ?? []
|
|
571
580
|
});
|
|
572
581
|
return clone(a, def);
|
|
573
582
|
}
|
|
@@ -650,10 +659,20 @@
|
|
|
650
659
|
}
|
|
651
660
|
return false;
|
|
652
661
|
}
|
|
662
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
663
|
+
if (x.aborted === true)
|
|
664
|
+
return true;
|
|
665
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
666
|
+
if (x.issues[i]?.continue === false) {
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
653
672
|
function prefixIssues(path, issues) {
|
|
654
673
|
return issues.map((iss) => {
|
|
655
|
-
var
|
|
656
|
-
(
|
|
674
|
+
var _a4;
|
|
675
|
+
(_a4 = iss).path ?? (_a4.path = []);
|
|
657
676
|
iss.path.unshift(path);
|
|
658
677
|
return iss;
|
|
659
678
|
});
|
|
@@ -662,17 +681,14 @@
|
|
|
662
681
|
return typeof message === "string" ? message : message?.message;
|
|
663
682
|
}
|
|
664
683
|
function finalizeIssue(iss, ctx, config2) {
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
684
|
+
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";
|
|
685
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
686
|
+
rest.path ?? (rest.path = []);
|
|
687
|
+
rest.message = message;
|
|
688
|
+
if (ctx?.reportInput) {
|
|
689
|
+
rest.input = _input;
|
|
669
690
|
}
|
|
670
|
-
|
|
671
|
-
delete full.continue;
|
|
672
|
-
if (!ctx?.reportInput) {
|
|
673
|
-
delete full.input;
|
|
674
|
-
}
|
|
675
|
-
return full;
|
|
691
|
+
return rest;
|
|
676
692
|
}
|
|
677
693
|
function getSizableOrigin(input) {
|
|
678
694
|
if (input instanceof Set)
|
|
@@ -770,7 +786,7 @@
|
|
|
770
786
|
}
|
|
771
787
|
};
|
|
772
788
|
|
|
773
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
789
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
774
790
|
var initializer = (inst, def) => {
|
|
775
791
|
inst.name = "$ZodError";
|
|
776
792
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -804,30 +820,33 @@
|
|
|
804
820
|
}
|
|
805
821
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
806
822
|
const fieldErrors = { _errors: [] };
|
|
807
|
-
const processError = (error2) => {
|
|
823
|
+
const processError = (error2, path = []) => {
|
|
808
824
|
for (const issue2 of error2.issues) {
|
|
809
825
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
810
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
826
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
811
827
|
} else if (issue2.code === "invalid_key") {
|
|
812
|
-
processError({ issues: issue2.issues });
|
|
828
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
813
829
|
} else if (issue2.code === "invalid_element") {
|
|
814
|
-
processError({ issues: issue2.issues });
|
|
815
|
-
} else if (issue2.path.length === 0) {
|
|
816
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
830
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
817
831
|
} else {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
832
|
+
const fullpath = [...path, ...issue2.path];
|
|
833
|
+
if (fullpath.length === 0) {
|
|
834
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
835
|
+
} else {
|
|
836
|
+
let curr = fieldErrors;
|
|
837
|
+
let i = 0;
|
|
838
|
+
while (i < fullpath.length) {
|
|
839
|
+
const el = fullpath[i];
|
|
840
|
+
const terminal = i === fullpath.length - 1;
|
|
841
|
+
if (!terminal) {
|
|
842
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
843
|
+
} else {
|
|
844
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
845
|
+
curr[el]._errors.push(mapper(issue2));
|
|
846
|
+
}
|
|
847
|
+
curr = curr[el];
|
|
848
|
+
i++;
|
|
828
849
|
}
|
|
829
|
-
curr = curr[el];
|
|
830
|
-
i++;
|
|
831
850
|
}
|
|
832
851
|
}
|
|
833
852
|
}
|
|
@@ -836,9 +855,9 @@
|
|
|
836
855
|
return fieldErrors;
|
|
837
856
|
}
|
|
838
857
|
|
|
839
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
858
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
840
859
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
841
|
-
const ctx = _ctx ?
|
|
860
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
842
861
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
843
862
|
if (result instanceof Promise) {
|
|
844
863
|
throw new $ZodAsyncError();
|
|
@@ -851,7 +870,7 @@
|
|
|
851
870
|
return result.value;
|
|
852
871
|
};
|
|
853
872
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
854
|
-
const ctx = _ctx ?
|
|
873
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
855
874
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
856
875
|
if (result instanceof Promise)
|
|
857
876
|
result = await result;
|
|
@@ -875,7 +894,7 @@
|
|
|
875
894
|
};
|
|
876
895
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
877
896
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
878
|
-
const ctx = _ctx ?
|
|
897
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
879
898
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
880
899
|
if (result instanceof Promise)
|
|
881
900
|
result = await result;
|
|
@@ -886,36 +905,36 @@
|
|
|
886
905
|
};
|
|
887
906
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
888
907
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
889
|
-
const ctx = _ctx ?
|
|
908
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
890
909
|
return _parse(_Err)(schema, value, ctx);
|
|
891
910
|
};
|
|
892
911
|
var _decode = (_Err) => (schema, value, _ctx) => {
|
|
893
912
|
return _parse(_Err)(schema, value, _ctx);
|
|
894
913
|
};
|
|
895
914
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
896
|
-
const ctx = _ctx ?
|
|
915
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
897
916
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
898
917
|
};
|
|
899
918
|
var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
900
919
|
return _parseAsync(_Err)(schema, value, _ctx);
|
|
901
920
|
};
|
|
902
921
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
903
|
-
const ctx = _ctx ?
|
|
922
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
904
923
|
return _safeParse(_Err)(schema, value, ctx);
|
|
905
924
|
};
|
|
906
925
|
var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
907
926
|
return _safeParse(_Err)(schema, value, _ctx);
|
|
908
927
|
};
|
|
909
928
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
910
|
-
const ctx = _ctx ?
|
|
929
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
911
930
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
912
931
|
};
|
|
913
932
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
914
933
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
915
934
|
};
|
|
916
935
|
|
|
917
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
918
|
-
var cuid = /^[cC][
|
|
936
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
937
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
919
938
|
var cuid2 = /^[0-9a-z]+$/;
|
|
920
939
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
921
940
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -939,6 +958,7 @@
|
|
|
939
958
|
var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
940
959
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
941
960
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
961
|
+
var httpProtocol = /^https?$/;
|
|
942
962
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
943
963
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
944
964
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -970,12 +990,12 @@
|
|
|
970
990
|
var lowercase = /^[^A-Z]*$/;
|
|
971
991
|
var uppercase = /^[^a-z]*$/;
|
|
972
992
|
|
|
973
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
993
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
974
994
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
975
|
-
var
|
|
995
|
+
var _a4;
|
|
976
996
|
inst._zod ?? (inst._zod = {});
|
|
977
997
|
inst._zod.def = def;
|
|
978
|
-
(
|
|
998
|
+
(_a4 = inst._zod).onattach ?? (_a4.onattach = []);
|
|
979
999
|
});
|
|
980
1000
|
var numericOriginMap = {
|
|
981
1001
|
number: "number",
|
|
@@ -1041,8 +1061,8 @@
|
|
|
1041
1061
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1042
1062
|
$ZodCheck.init(inst, def);
|
|
1043
1063
|
inst._zod.onattach.push((inst2) => {
|
|
1044
|
-
var
|
|
1045
|
-
(
|
|
1064
|
+
var _a4;
|
|
1065
|
+
(_a4 = inst2._zod.bag).multipleOf ?? (_a4.multipleOf = def.value);
|
|
1046
1066
|
});
|
|
1047
1067
|
inst._zod.check = (payload) => {
|
|
1048
1068
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1140,9 +1160,9 @@
|
|
|
1140
1160
|
};
|
|
1141
1161
|
});
|
|
1142
1162
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1143
|
-
var
|
|
1163
|
+
var _a4;
|
|
1144
1164
|
$ZodCheck.init(inst, def);
|
|
1145
|
-
(
|
|
1165
|
+
(_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
|
|
1146
1166
|
const val = payload.value;
|
|
1147
1167
|
return !nullish(val) && val.length !== void 0;
|
|
1148
1168
|
});
|
|
@@ -1169,9 +1189,9 @@
|
|
|
1169
1189
|
};
|
|
1170
1190
|
});
|
|
1171
1191
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1172
|
-
var
|
|
1192
|
+
var _a4;
|
|
1173
1193
|
$ZodCheck.init(inst, def);
|
|
1174
|
-
(
|
|
1194
|
+
(_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
|
|
1175
1195
|
const val = payload.value;
|
|
1176
1196
|
return !nullish(val) && val.length !== void 0;
|
|
1177
1197
|
});
|
|
@@ -1198,9 +1218,9 @@
|
|
|
1198
1218
|
};
|
|
1199
1219
|
});
|
|
1200
1220
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1201
|
-
var
|
|
1221
|
+
var _a4;
|
|
1202
1222
|
$ZodCheck.init(inst, def);
|
|
1203
|
-
(
|
|
1223
|
+
(_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
|
|
1204
1224
|
const val = payload.value;
|
|
1205
1225
|
return !nullish(val) && val.length !== void 0;
|
|
1206
1226
|
});
|
|
@@ -1229,7 +1249,7 @@
|
|
|
1229
1249
|
};
|
|
1230
1250
|
});
|
|
1231
1251
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1232
|
-
var
|
|
1252
|
+
var _a4, _b;
|
|
1233
1253
|
$ZodCheck.init(inst, def);
|
|
1234
1254
|
inst._zod.onattach.push((inst2) => {
|
|
1235
1255
|
const bag = inst2._zod.bag;
|
|
@@ -1240,7 +1260,7 @@
|
|
|
1240
1260
|
}
|
|
1241
1261
|
});
|
|
1242
1262
|
if (def.pattern)
|
|
1243
|
-
(
|
|
1263
|
+
(_a4 = inst._zod).check ?? (_a4.check = (payload) => {
|
|
1244
1264
|
def.pattern.lastIndex = 0;
|
|
1245
1265
|
if (def.pattern.test(payload.value))
|
|
1246
1266
|
return;
|
|
@@ -1360,16 +1380,16 @@
|
|
|
1360
1380
|
};
|
|
1361
1381
|
});
|
|
1362
1382
|
|
|
1363
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
1383
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1364
1384
|
var version = {
|
|
1365
1385
|
major: 4,
|
|
1366
|
-
minor:
|
|
1367
|
-
patch:
|
|
1386
|
+
minor: 4,
|
|
1387
|
+
patch: 3
|
|
1368
1388
|
};
|
|
1369
1389
|
|
|
1370
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
1390
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1371
1391
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1372
|
-
var
|
|
1392
|
+
var _a4;
|
|
1373
1393
|
inst ?? (inst = {});
|
|
1374
1394
|
inst._zod.def = def;
|
|
1375
1395
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -1384,7 +1404,7 @@
|
|
|
1384
1404
|
}
|
|
1385
1405
|
}
|
|
1386
1406
|
if (checks.length === 0) {
|
|
1387
|
-
(
|
|
1407
|
+
(_a4 = inst._zod).deferred ?? (_a4.deferred = []);
|
|
1388
1408
|
inst._zod.deferred?.push(() => {
|
|
1389
1409
|
inst._zod.run = inst._zod.parse;
|
|
1390
1410
|
});
|
|
@@ -1394,6 +1414,8 @@
|
|
|
1394
1414
|
let asyncResult;
|
|
1395
1415
|
for (const ch of checks2) {
|
|
1396
1416
|
if (ch._zod.def.when) {
|
|
1417
|
+
if (explicitlyAborted(payload))
|
|
1418
|
+
continue;
|
|
1397
1419
|
const shouldRun = ch._zod.def.when(payload);
|
|
1398
1420
|
if (!shouldRun)
|
|
1399
1421
|
continue;
|
|
@@ -1534,6 +1556,19 @@
|
|
|
1534
1556
|
inst._zod.check = (payload) => {
|
|
1535
1557
|
try {
|
|
1536
1558
|
const trimmed = payload.value.trim();
|
|
1559
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
1560
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
1561
|
+
payload.issues.push({
|
|
1562
|
+
code: "invalid_format",
|
|
1563
|
+
format: "url",
|
|
1564
|
+
note: "Invalid URL format",
|
|
1565
|
+
input: payload.value,
|
|
1566
|
+
inst,
|
|
1567
|
+
continue: !def.abort
|
|
1568
|
+
});
|
|
1569
|
+
return;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1537
1572
|
const url = new URL(trimmed);
|
|
1538
1573
|
if (def.hostname) {
|
|
1539
1574
|
def.hostname.lastIndex = 0;
|
|
@@ -1682,6 +1717,8 @@
|
|
|
1682
1717
|
function isValidBase64(data) {
|
|
1683
1718
|
if (data === "")
|
|
1684
1719
|
return true;
|
|
1720
|
+
if (/\s/.test(data))
|
|
1721
|
+
return false;
|
|
1685
1722
|
if (data.length % 4 !== 0)
|
|
1686
1723
|
return false;
|
|
1687
1724
|
try {
|
|
@@ -1892,10 +1929,9 @@
|
|
|
1892
1929
|
}
|
|
1893
1930
|
return void 0;
|
|
1894
1931
|
});
|
|
1895
|
-
const
|
|
1896
|
-
const first = def.options[0]._zod.run;
|
|
1932
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1897
1933
|
inst._zod.parse = (payload, ctx) => {
|
|
1898
|
-
if (
|
|
1934
|
+
if (first) {
|
|
1899
1935
|
return first(payload, ctx);
|
|
1900
1936
|
}
|
|
1901
1937
|
let async = false;
|
|
@@ -2021,6 +2057,7 @@
|
|
|
2021
2057
|
}
|
|
2022
2058
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
2023
2059
|
$ZodType.init(inst, def);
|
|
2060
|
+
inst._zod.optin = "optional";
|
|
2024
2061
|
inst._zod.parse = (payload, ctx) => {
|
|
2025
2062
|
if (ctx.direction === "backward") {
|
|
2026
2063
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -2030,6 +2067,7 @@
|
|
|
2030
2067
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
2031
2068
|
return output.then((output2) => {
|
|
2032
2069
|
payload.value = output2;
|
|
2070
|
+
payload.fallback = true;
|
|
2033
2071
|
return payload;
|
|
2034
2072
|
});
|
|
2035
2073
|
}
|
|
@@ -2037,11 +2075,12 @@
|
|
|
2037
2075
|
throw new $ZodAsyncError();
|
|
2038
2076
|
}
|
|
2039
2077
|
payload.value = _out;
|
|
2078
|
+
payload.fallback = true;
|
|
2040
2079
|
return payload;
|
|
2041
2080
|
};
|
|
2042
2081
|
});
|
|
2043
2082
|
function handleOptionalResult(result, input) {
|
|
2044
|
-
if (result.issues.length
|
|
2083
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
2045
2084
|
return { issues: [], value: void 0 };
|
|
2046
2085
|
}
|
|
2047
2086
|
return result;
|
|
@@ -2059,10 +2098,11 @@
|
|
|
2059
2098
|
});
|
|
2060
2099
|
inst._zod.parse = (payload, ctx) => {
|
|
2061
2100
|
if (def.innerType._zod.optin === "optional") {
|
|
2101
|
+
const input = payload.value;
|
|
2062
2102
|
const result = def.innerType._zod.run(payload, ctx);
|
|
2063
2103
|
if (result instanceof Promise)
|
|
2064
|
-
return result.then((r) => handleOptionalResult(r,
|
|
2065
|
-
return handleOptionalResult(result,
|
|
2104
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
2105
|
+
return handleOptionalResult(result, input);
|
|
2066
2106
|
}
|
|
2067
2107
|
if (payload.value === void 0) {
|
|
2068
2108
|
return payload;
|
|
@@ -2161,7 +2201,7 @@
|
|
|
2161
2201
|
}
|
|
2162
2202
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2163
2203
|
$ZodType.init(inst, def);
|
|
2164
|
-
|
|
2204
|
+
inst._zod.optin = "optional";
|
|
2165
2205
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2166
2206
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2167
2207
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2181,6 +2221,7 @@
|
|
|
2181
2221
|
input: payload.value
|
|
2182
2222
|
});
|
|
2183
2223
|
payload.issues = [];
|
|
2224
|
+
payload.fallback = true;
|
|
2184
2225
|
}
|
|
2185
2226
|
return payload;
|
|
2186
2227
|
});
|
|
@@ -2195,6 +2236,7 @@
|
|
|
2195
2236
|
input: payload.value
|
|
2196
2237
|
});
|
|
2197
2238
|
payload.issues = [];
|
|
2239
|
+
payload.fallback = true;
|
|
2198
2240
|
}
|
|
2199
2241
|
return payload;
|
|
2200
2242
|
};
|
|
@@ -2225,7 +2267,7 @@
|
|
|
2225
2267
|
left.aborted = true;
|
|
2226
2268
|
return left;
|
|
2227
2269
|
}
|
|
2228
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
2270
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
2229
2271
|
}
|
|
2230
2272
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
2231
2273
|
$ZodType.init(inst, def);
|
|
@@ -2282,8 +2324,8 @@
|
|
|
2282
2324
|
}
|
|
2283
2325
|
}
|
|
2284
2326
|
|
|
2285
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
2286
|
-
var
|
|
2327
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2328
|
+
var _a2;
|
|
2287
2329
|
var $ZodRegistry = class {
|
|
2288
2330
|
constructor() {
|
|
2289
2331
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -2327,10 +2369,10 @@
|
|
|
2327
2369
|
function registry() {
|
|
2328
2370
|
return new $ZodRegistry();
|
|
2329
2371
|
}
|
|
2330
|
-
(
|
|
2372
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
2331
2373
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
2332
2374
|
|
|
2333
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
2375
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2334
2376
|
// @__NO_SIDE_EFFECTS__
|
|
2335
2377
|
function _string(Class2, params) {
|
|
2336
2378
|
return new Class2({
|
|
@@ -2796,7 +2838,7 @@
|
|
|
2796
2838
|
return schema;
|
|
2797
2839
|
}
|
|
2798
2840
|
// @__NO_SIDE_EFFECTS__
|
|
2799
|
-
function _superRefine(fn) {
|
|
2841
|
+
function _superRefine(fn, params) {
|
|
2800
2842
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2801
2843
|
payload.addIssue = (issue2) => {
|
|
2802
2844
|
if (typeof issue2 === "string") {
|
|
@@ -2813,7 +2855,7 @@
|
|
|
2813
2855
|
}
|
|
2814
2856
|
};
|
|
2815
2857
|
return fn(payload.value, payload);
|
|
2816
|
-
});
|
|
2858
|
+
}, params);
|
|
2817
2859
|
return ch;
|
|
2818
2860
|
}
|
|
2819
2861
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2826,7 +2868,7 @@
|
|
|
2826
2868
|
return ch;
|
|
2827
2869
|
}
|
|
2828
2870
|
|
|
2829
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
2871
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2830
2872
|
function initializeContext(params) {
|
|
2831
2873
|
let target = params?.target ?? "draft-2020-12";
|
|
2832
2874
|
if (target === "draft-4")
|
|
@@ -2849,7 +2891,7 @@
|
|
|
2849
2891
|
};
|
|
2850
2892
|
}
|
|
2851
2893
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
2852
|
-
var
|
|
2894
|
+
var _a4;
|
|
2853
2895
|
const def = schema._zod.def;
|
|
2854
2896
|
const seen = ctx.seen.get(schema);
|
|
2855
2897
|
if (seen) {
|
|
@@ -2896,8 +2938,8 @@
|
|
|
2896
2938
|
delete result.schema.examples;
|
|
2897
2939
|
delete result.schema.default;
|
|
2898
2940
|
}
|
|
2899
|
-
if (ctx.io === "input" && result.schema
|
|
2900
|
-
(
|
|
2941
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
2942
|
+
(_a4 = result.schema).default ?? (_a4.default = result.schema._prefault);
|
|
2901
2943
|
delete result.schema._prefault;
|
|
2902
2944
|
const _result = ctx.seen.get(schema);
|
|
2903
2945
|
return _result.schema;
|
|
@@ -3078,10 +3120,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3078
3120
|
result.$id = ctx.external.uri(id);
|
|
3079
3121
|
}
|
|
3080
3122
|
Object.assign(result, root.def ?? root.schema);
|
|
3123
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
3124
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
3125
|
+
delete result.id;
|
|
3081
3126
|
const defs = ctx.external?.defs ?? {};
|
|
3082
3127
|
for (const entry of ctx.seen.entries()) {
|
|
3083
3128
|
const seen = entry[1];
|
|
3084
3129
|
if (seen.def && seen.defId) {
|
|
3130
|
+
if (seen.def.id === seen.defId)
|
|
3131
|
+
delete seen.def.id;
|
|
3085
3132
|
defs[seen.defId] = seen.def;
|
|
3086
3133
|
}
|
|
3087
3134
|
}
|
|
@@ -3137,6 +3184,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3137
3184
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
3138
3185
|
}
|
|
3139
3186
|
if (def.type === "pipe") {
|
|
3187
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
3188
|
+
return true;
|
|
3140
3189
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
3141
3190
|
}
|
|
3142
3191
|
if (def.type === "object") {
|
|
@@ -3178,7 +3227,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3178
3227
|
return finalize(ctx, schema);
|
|
3179
3228
|
};
|
|
3180
3229
|
|
|
3181
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
3230
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
3182
3231
|
var formatMap = {
|
|
3183
3232
|
guid: "uuid",
|
|
3184
3233
|
url: "uri",
|
|
@@ -3226,39 +3275,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3226
3275
|
json.type = "integer";
|
|
3227
3276
|
else
|
|
3228
3277
|
json.type = "number";
|
|
3229
|
-
|
|
3230
|
-
|
|
3278
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
3279
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
3280
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
3281
|
+
if (exMin) {
|
|
3282
|
+
if (legacy) {
|
|
3231
3283
|
json.minimum = exclusiveMinimum;
|
|
3232
3284
|
json.exclusiveMinimum = true;
|
|
3233
3285
|
} else {
|
|
3234
3286
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
3235
3287
|
}
|
|
3236
|
-
}
|
|
3237
|
-
if (typeof minimum === "number") {
|
|
3288
|
+
} else if (typeof minimum === "number") {
|
|
3238
3289
|
json.minimum = minimum;
|
|
3239
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
3240
|
-
if (exclusiveMinimum >= minimum)
|
|
3241
|
-
delete json.minimum;
|
|
3242
|
-
else
|
|
3243
|
-
delete json.exclusiveMinimum;
|
|
3244
|
-
}
|
|
3245
3290
|
}
|
|
3246
|
-
if (
|
|
3247
|
-
if (
|
|
3291
|
+
if (exMax) {
|
|
3292
|
+
if (legacy) {
|
|
3248
3293
|
json.maximum = exclusiveMaximum;
|
|
3249
3294
|
json.exclusiveMaximum = true;
|
|
3250
3295
|
} else {
|
|
3251
3296
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
3252
3297
|
}
|
|
3253
|
-
}
|
|
3254
|
-
if (typeof maximum === "number") {
|
|
3298
|
+
} else if (typeof maximum === "number") {
|
|
3255
3299
|
json.maximum = maximum;
|
|
3256
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
3257
|
-
if (exclusiveMaximum <= maximum)
|
|
3258
|
-
delete json.maximum;
|
|
3259
|
-
else
|
|
3260
|
-
delete json.exclusiveMaximum;
|
|
3261
|
-
}
|
|
3262
3300
|
}
|
|
3263
3301
|
if (typeof multipleOf === "number")
|
|
3264
3302
|
json.multipleOf = multipleOf;
|
|
@@ -3287,7 +3325,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3287
3325
|
if (typeof maximum === "number")
|
|
3288
3326
|
json.maxItems = maximum;
|
|
3289
3327
|
json.type = "array";
|
|
3290
|
-
json.items = process2(def.element, ctx, {
|
|
3328
|
+
json.items = process2(def.element, ctx, {
|
|
3329
|
+
...params,
|
|
3330
|
+
path: [...params.path, "items"]
|
|
3331
|
+
});
|
|
3291
3332
|
};
|
|
3292
3333
|
var unionProcessor = (schema, ctx, json, params) => {
|
|
3293
3334
|
const def = schema._zod.def;
|
|
@@ -3366,7 +3407,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3366
3407
|
};
|
|
3367
3408
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
3368
3409
|
const def = schema._zod.def;
|
|
3369
|
-
const
|
|
3410
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
3411
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
3370
3412
|
process2(innerType, ctx, params);
|
|
3371
3413
|
const seen = ctx.seen.get(schema);
|
|
3372
3414
|
seen.ref = innerType;
|
|
@@ -3385,7 +3427,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3385
3427
|
seen.ref = def.innerType;
|
|
3386
3428
|
};
|
|
3387
3429
|
|
|
3388
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
3430
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3389
3431
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
3390
3432
|
$ZodISODateTime.init(inst, def);
|
|
3391
3433
|
ZodStringFormat.init(inst, def);
|
|
@@ -3415,7 +3457,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3415
3457
|
return _isoDuration(ZodISODuration, params);
|
|
3416
3458
|
}
|
|
3417
3459
|
|
|
3418
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
3460
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3419
3461
|
var initializer2 = (inst, issues) => {
|
|
3420
3462
|
$ZodError.init(inst, issues);
|
|
3421
3463
|
inst.name = "ZodError";
|
|
@@ -3450,12 +3492,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3450
3492
|
}
|
|
3451
3493
|
});
|
|
3452
3494
|
};
|
|
3453
|
-
var
|
|
3454
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
3495
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
3455
3496
|
Parent: Error
|
|
3456
3497
|
});
|
|
3457
3498
|
|
|
3458
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
3499
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3459
3500
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
3460
3501
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3461
3502
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3469,7 +3510,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3469
3510
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3470
3511
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3471
3512
|
|
|
3472
|
-
// ../../../../../../node_modules/.pnpm/zod@4.3
|
|
3513
|
+
// ../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3514
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3515
|
+
function _installLazyMethods(inst, group, methods) {
|
|
3516
|
+
const proto = Object.getPrototypeOf(inst);
|
|
3517
|
+
let installed = _installedGroups.get(proto);
|
|
3518
|
+
if (!installed) {
|
|
3519
|
+
installed = /* @__PURE__ */ new Set();
|
|
3520
|
+
_installedGroups.set(proto, installed);
|
|
3521
|
+
}
|
|
3522
|
+
if (installed.has(group))
|
|
3523
|
+
return;
|
|
3524
|
+
installed.add(group);
|
|
3525
|
+
for (const key in methods) {
|
|
3526
|
+
const fn = methods[key];
|
|
3527
|
+
Object.defineProperty(proto, key, {
|
|
3528
|
+
configurable: true,
|
|
3529
|
+
enumerable: false,
|
|
3530
|
+
get() {
|
|
3531
|
+
const bound = fn.bind(this);
|
|
3532
|
+
Object.defineProperty(this, key, {
|
|
3533
|
+
configurable: true,
|
|
3534
|
+
writable: true,
|
|
3535
|
+
enumerable: true,
|
|
3536
|
+
value: bound
|
|
3537
|
+
});
|
|
3538
|
+
return bound;
|
|
3539
|
+
},
|
|
3540
|
+
set(v) {
|
|
3541
|
+
Object.defineProperty(this, key, {
|
|
3542
|
+
configurable: true,
|
|
3543
|
+
writable: true,
|
|
3544
|
+
enumerable: true,
|
|
3545
|
+
value: v
|
|
3546
|
+
});
|
|
3547
|
+
}
|
|
3548
|
+
});
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3473
3551
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
3474
3552
|
$ZodType.init(inst, def);
|
|
3475
3553
|
Object.assign(inst["~standard"], {
|
|
@@ -3482,23 +3560,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3482
3560
|
inst.def = def;
|
|
3483
3561
|
inst.type = def.type;
|
|
3484
3562
|
Object.defineProperty(inst, "_def", { value: def });
|
|
3485
|
-
inst.check = (...checks) => {
|
|
3486
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
3487
|
-
checks: [
|
|
3488
|
-
...def.checks ?? [],
|
|
3489
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
3490
|
-
]
|
|
3491
|
-
}), {
|
|
3492
|
-
parent: true
|
|
3493
|
-
});
|
|
3494
|
-
};
|
|
3495
|
-
inst.with = inst.check;
|
|
3496
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
3497
|
-
inst.brand = () => inst;
|
|
3498
|
-
inst.register = ((reg, meta2) => {
|
|
3499
|
-
reg.add(inst, meta2);
|
|
3500
|
-
return inst;
|
|
3501
|
-
});
|
|
3502
3563
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
3503
3564
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
3504
3565
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -3512,45 +3573,108 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3512
3573
|
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
3513
3574
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
3514
3575
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
3515
|
-
inst
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3576
|
+
_installLazyMethods(inst, "ZodType", {
|
|
3577
|
+
check(...chks) {
|
|
3578
|
+
const def2 = this.def;
|
|
3579
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
3580
|
+
checks: [
|
|
3581
|
+
...def2.checks ?? [],
|
|
3582
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
3583
|
+
]
|
|
3584
|
+
}), { parent: true });
|
|
3585
|
+
},
|
|
3586
|
+
with(...chks) {
|
|
3587
|
+
return this.check(...chks);
|
|
3588
|
+
},
|
|
3589
|
+
clone(def2, params) {
|
|
3590
|
+
return clone(this, def2, params);
|
|
3591
|
+
},
|
|
3592
|
+
brand() {
|
|
3593
|
+
return this;
|
|
3594
|
+
},
|
|
3595
|
+
register(reg, meta2) {
|
|
3596
|
+
reg.add(this, meta2);
|
|
3597
|
+
return this;
|
|
3598
|
+
},
|
|
3599
|
+
refine(check, params) {
|
|
3600
|
+
return this.check(refine(check, params));
|
|
3601
|
+
},
|
|
3602
|
+
superRefine(refinement, params) {
|
|
3603
|
+
return this.check(superRefine(refinement, params));
|
|
3604
|
+
},
|
|
3605
|
+
overwrite(fn) {
|
|
3606
|
+
return this.check(_overwrite(fn));
|
|
3607
|
+
},
|
|
3608
|
+
optional() {
|
|
3609
|
+
return optional(this);
|
|
3610
|
+
},
|
|
3611
|
+
exactOptional() {
|
|
3612
|
+
return exactOptional(this);
|
|
3613
|
+
},
|
|
3614
|
+
nullable() {
|
|
3615
|
+
return nullable(this);
|
|
3616
|
+
},
|
|
3617
|
+
nullish() {
|
|
3618
|
+
return optional(nullable(this));
|
|
3619
|
+
},
|
|
3620
|
+
nonoptional(params) {
|
|
3621
|
+
return nonoptional(this, params);
|
|
3622
|
+
},
|
|
3623
|
+
array() {
|
|
3624
|
+
return array(this);
|
|
3625
|
+
},
|
|
3626
|
+
or(arg) {
|
|
3627
|
+
return union([this, arg]);
|
|
3628
|
+
},
|
|
3629
|
+
and(arg) {
|
|
3630
|
+
return intersection(this, arg);
|
|
3631
|
+
},
|
|
3632
|
+
transform(tx) {
|
|
3633
|
+
return pipe(this, transform(tx));
|
|
3634
|
+
},
|
|
3635
|
+
default(d) {
|
|
3636
|
+
return _default(this, d);
|
|
3637
|
+
},
|
|
3638
|
+
prefault(d) {
|
|
3639
|
+
return prefault(this, d);
|
|
3640
|
+
},
|
|
3641
|
+
catch(params) {
|
|
3642
|
+
return _catch(this, params);
|
|
3643
|
+
},
|
|
3644
|
+
pipe(target) {
|
|
3645
|
+
return pipe(this, target);
|
|
3646
|
+
},
|
|
3647
|
+
readonly() {
|
|
3648
|
+
return readonly(this);
|
|
3649
|
+
},
|
|
3650
|
+
describe(description) {
|
|
3651
|
+
const cl = this.clone();
|
|
3652
|
+
globalRegistry.add(cl, { description });
|
|
3653
|
+
return cl;
|
|
3654
|
+
},
|
|
3655
|
+
meta(...args) {
|
|
3656
|
+
if (args.length === 0)
|
|
3657
|
+
return globalRegistry.get(this);
|
|
3658
|
+
const cl = this.clone();
|
|
3659
|
+
globalRegistry.add(cl, args[0]);
|
|
3660
|
+
return cl;
|
|
3661
|
+
},
|
|
3662
|
+
isOptional() {
|
|
3663
|
+
return this.safeParse(void 0).success;
|
|
3664
|
+
},
|
|
3665
|
+
isNullable() {
|
|
3666
|
+
return this.safeParse(null).success;
|
|
3667
|
+
},
|
|
3668
|
+
apply(fn) {
|
|
3669
|
+
return fn(this);
|
|
3670
|
+
}
|
|
3671
|
+
});
|
|
3537
3672
|
Object.defineProperty(inst, "description", {
|
|
3538
3673
|
get() {
|
|
3539
3674
|
return globalRegistry.get(inst)?.description;
|
|
3540
3675
|
},
|
|
3541
3676
|
configurable: true
|
|
3542
3677
|
});
|
|
3543
|
-
inst.meta = (...args) => {
|
|
3544
|
-
if (args.length === 0) {
|
|
3545
|
-
return globalRegistry.get(inst);
|
|
3546
|
-
}
|
|
3547
|
-
const cl = inst.clone();
|
|
3548
|
-
globalRegistry.add(cl, args[0]);
|
|
3549
|
-
return cl;
|
|
3550
|
-
};
|
|
3551
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
3552
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
3553
|
-
inst.apply = (fn) => fn(inst);
|
|
3554
3678
|
return inst;
|
|
3555
3679
|
});
|
|
3556
3680
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -3561,21 +3685,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3561
3685
|
inst.format = bag.format ?? null;
|
|
3562
3686
|
inst.minLength = bag.minimum ?? null;
|
|
3563
3687
|
inst.maxLength = bag.maximum ?? null;
|
|
3564
|
-
inst
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3688
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
3689
|
+
regex(...args) {
|
|
3690
|
+
return this.check(_regex(...args));
|
|
3691
|
+
},
|
|
3692
|
+
includes(...args) {
|
|
3693
|
+
return this.check(_includes(...args));
|
|
3694
|
+
},
|
|
3695
|
+
startsWith(...args) {
|
|
3696
|
+
return this.check(_startsWith(...args));
|
|
3697
|
+
},
|
|
3698
|
+
endsWith(...args) {
|
|
3699
|
+
return this.check(_endsWith(...args));
|
|
3700
|
+
},
|
|
3701
|
+
min(...args) {
|
|
3702
|
+
return this.check(_minLength(...args));
|
|
3703
|
+
},
|
|
3704
|
+
max(...args) {
|
|
3705
|
+
return this.check(_maxLength(...args));
|
|
3706
|
+
},
|
|
3707
|
+
length(...args) {
|
|
3708
|
+
return this.check(_length(...args));
|
|
3709
|
+
},
|
|
3710
|
+
nonempty(...args) {
|
|
3711
|
+
return this.check(_minLength(1, ...args));
|
|
3712
|
+
},
|
|
3713
|
+
lowercase(params) {
|
|
3714
|
+
return this.check(_lowercase(params));
|
|
3715
|
+
},
|
|
3716
|
+
uppercase(params) {
|
|
3717
|
+
return this.check(_uppercase(params));
|
|
3718
|
+
},
|
|
3719
|
+
trim() {
|
|
3720
|
+
return this.check(_trim());
|
|
3721
|
+
},
|
|
3722
|
+
normalize(...args) {
|
|
3723
|
+
return this.check(_normalize(...args));
|
|
3724
|
+
},
|
|
3725
|
+
toLowerCase() {
|
|
3726
|
+
return this.check(_toLowerCase());
|
|
3727
|
+
},
|
|
3728
|
+
toUpperCase() {
|
|
3729
|
+
return this.check(_toUpperCase());
|
|
3730
|
+
},
|
|
3731
|
+
slugify() {
|
|
3732
|
+
return this.check(_slugify());
|
|
3733
|
+
}
|
|
3734
|
+
});
|
|
3579
3735
|
});
|
|
3580
3736
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
3581
3737
|
$ZodString.init(inst, def);
|
|
@@ -3695,21 +3851,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3695
3851
|
$ZodNumber.init(inst, def);
|
|
3696
3852
|
ZodType.init(inst, def);
|
|
3697
3853
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
3698
|
-
inst
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3854
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
3855
|
+
gt(value, params) {
|
|
3856
|
+
return this.check(_gt(value, params));
|
|
3857
|
+
},
|
|
3858
|
+
gte(value, params) {
|
|
3859
|
+
return this.check(_gte(value, params));
|
|
3860
|
+
},
|
|
3861
|
+
min(value, params) {
|
|
3862
|
+
return this.check(_gte(value, params));
|
|
3863
|
+
},
|
|
3864
|
+
lt(value, params) {
|
|
3865
|
+
return this.check(_lt(value, params));
|
|
3866
|
+
},
|
|
3867
|
+
lte(value, params) {
|
|
3868
|
+
return this.check(_lte(value, params));
|
|
3869
|
+
},
|
|
3870
|
+
max(value, params) {
|
|
3871
|
+
return this.check(_lte(value, params));
|
|
3872
|
+
},
|
|
3873
|
+
int(params) {
|
|
3874
|
+
return this.check(int(params));
|
|
3875
|
+
},
|
|
3876
|
+
safe(params) {
|
|
3877
|
+
return this.check(int(params));
|
|
3878
|
+
},
|
|
3879
|
+
positive(params) {
|
|
3880
|
+
return this.check(_gt(0, params));
|
|
3881
|
+
},
|
|
3882
|
+
nonnegative(params) {
|
|
3883
|
+
return this.check(_gte(0, params));
|
|
3884
|
+
},
|
|
3885
|
+
negative(params) {
|
|
3886
|
+
return this.check(_lt(0, params));
|
|
3887
|
+
},
|
|
3888
|
+
nonpositive(params) {
|
|
3889
|
+
return this.check(_lte(0, params));
|
|
3890
|
+
},
|
|
3891
|
+
multipleOf(value, params) {
|
|
3892
|
+
return this.check(_multipleOf(value, params));
|
|
3893
|
+
},
|
|
3894
|
+
step(value, params) {
|
|
3895
|
+
return this.check(_multipleOf(value, params));
|
|
3896
|
+
},
|
|
3897
|
+
finite() {
|
|
3898
|
+
return this;
|
|
3899
|
+
}
|
|
3900
|
+
});
|
|
3713
3901
|
const bag = inst._zod.bag;
|
|
3714
3902
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
3715
3903
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -3757,11 +3945,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3757
3945
|
ZodType.init(inst, def);
|
|
3758
3946
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
3759
3947
|
inst.element = def.element;
|
|
3760
|
-
inst
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3948
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
3949
|
+
min(n, params) {
|
|
3950
|
+
return this.check(_minLength(n, params));
|
|
3951
|
+
},
|
|
3952
|
+
nonempty(params) {
|
|
3953
|
+
return this.check(_minLength(1, params));
|
|
3954
|
+
},
|
|
3955
|
+
max(n, params) {
|
|
3956
|
+
return this.check(_maxLength(n, params));
|
|
3957
|
+
},
|
|
3958
|
+
length(n, params) {
|
|
3959
|
+
return this.check(_length(n, params));
|
|
3960
|
+
},
|
|
3961
|
+
unwrap() {
|
|
3962
|
+
return this.element;
|
|
3963
|
+
}
|
|
3964
|
+
});
|
|
3765
3965
|
});
|
|
3766
3966
|
function array(element, params) {
|
|
3767
3967
|
return _array(ZodArray, element, params);
|
|
@@ -3816,10 +4016,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3816
4016
|
if (output instanceof Promise) {
|
|
3817
4017
|
return output.then((output2) => {
|
|
3818
4018
|
payload.value = output2;
|
|
4019
|
+
payload.fallback = true;
|
|
3819
4020
|
return payload;
|
|
3820
4021
|
});
|
|
3821
4022
|
}
|
|
3822
4023
|
payload.value = output;
|
|
4024
|
+
payload.fallback = true;
|
|
3823
4025
|
return payload;
|
|
3824
4026
|
};
|
|
3825
4027
|
});
|
|
@@ -3958,11 +4160,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3958
4160
|
function refine(fn, _params = {}) {
|
|
3959
4161
|
return _refine(ZodCustom, fn, _params);
|
|
3960
4162
|
}
|
|
3961
|
-
function superRefine(fn) {
|
|
3962
|
-
return _superRefine(fn);
|
|
4163
|
+
function superRefine(fn, params) {
|
|
4164
|
+
return _superRefine(fn, params);
|
|
3963
4165
|
}
|
|
3964
4166
|
|
|
3965
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+error@5.
|
|
4167
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+error@5.1.1/node_modules/@xylabs/error/dist/neutral/index.mjs
|
|
3966
4168
|
var assertError = (value, assert2, defaultMessage) => {
|
|
3967
4169
|
if (!isUndefined(assert2)) {
|
|
3968
4170
|
const assertString = typeof assert2 === "string" ? assert2 : typeof assert2 === "boolean" ? defaultMessage : assert2(value, defaultMessage);
|
|
@@ -3973,7 +4175,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3973
4175
|
return void 0;
|
|
3974
4176
|
};
|
|
3975
4177
|
|
|
3976
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+hex@5.
|
|
4178
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+hex@5.1.1_zod@4.4.3/node_modules/@xylabs/hex/dist/neutral/index.mjs
|
|
3977
4179
|
var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
3978
4180
|
return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
3979
4181
|
};
|
|
@@ -4110,7 +4312,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4110
4312
|
var BigIntToJsonZod = bigint2().nonnegative().transform((x) => toHex(x));
|
|
4111
4313
|
var JsonToBigIntZod = string2().transform((x) => toHex(x)).transform((x) => hexToBigInt(x));
|
|
4112
4314
|
|
|
4113
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+threads@5.
|
|
4315
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+threads@5.1.1_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
|
|
4114
4316
|
var DefaultErrorSerializer = {
|
|
4115
4317
|
deserialize(message) {
|
|
4116
4318
|
return Object.assign(new Error(message.message), {
|
|
@@ -4408,7 +4610,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4408
4610
|
});
|
|
4409
4611
|
}
|
|
4410
4612
|
};
|
|
4411
|
-
var
|
|
4613
|
+
var _a3;
|
|
4412
4614
|
function getGlobal() {
|
|
4413
4615
|
if (typeof globalThis !== "undefined")
|
|
4414
4616
|
return globalThis;
|
|
@@ -4419,7 +4621,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4419
4621
|
return global;
|
|
4420
4622
|
}
|
|
4421
4623
|
var globalObject = getGlobal();
|
|
4422
|
-
var nodeBuffer = (
|
|
4624
|
+
var nodeBuffer = (_a3 = globalObject.Buffer) !== null && _a3 !== void 0 ? _a3 : null;
|
|
4423
4625
|
var textEncoder = globalObject.TextEncoder ? new globalObject.TextEncoder() : null;
|
|
4424
4626
|
function hexCharCodesToInt(a, b) {
|
|
4425
4627
|
return (a & 15) + (a >> 6 | a >> 3 & 8) << 4 | (b & 15) + (b >> 6 | b >> 3 & 8);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/hash",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.2",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -48,45 +48,53 @@
|
|
|
48
48
|
"README.md"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@xyo-network/wasm": "~5.
|
|
51
|
+
"@xyo-network/wasm": "~5.6.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@opentelemetry/api": "^1.9.1",
|
|
55
|
-
"@opentelemetry/sdk-trace-base": "^2.7.
|
|
55
|
+
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
56
56
|
"@types/node": "^25.6.0",
|
|
57
|
-
"@xylabs/hex": "^5.
|
|
58
|
-
"@xylabs/platform": "^5.
|
|
59
|
-
"@xylabs/sdk-js": "^5.
|
|
60
|
-
"@xylabs/threads": "^5.
|
|
61
|
-
"@xylabs/toolchain": "~7.
|
|
62
|
-
"@xylabs/tsconfig": "~7.
|
|
63
|
-
"@xylabs/vitest-extended": "^5.
|
|
64
|
-
"@xylabs/vitest-matchers": "~5.0.100",
|
|
57
|
+
"@xylabs/hex": "^5.1.1",
|
|
58
|
+
"@xylabs/platform": "^5.1.1",
|
|
59
|
+
"@xylabs/sdk-js": "^5.1.1",
|
|
60
|
+
"@xylabs/threads": "^5.1.1",
|
|
61
|
+
"@xylabs/toolchain": "~7.13.4",
|
|
62
|
+
"@xylabs/tsconfig": "~7.13.4",
|
|
63
|
+
"@xylabs/vitest-extended": "^5.1.1",
|
|
65
64
|
"async-mutex": "^0.5.0",
|
|
66
65
|
"bn.js": "^5.2.3",
|
|
67
66
|
"buffer": "^6.0.3",
|
|
68
67
|
"chalk": "^5.6.2",
|
|
69
68
|
"debug": "~4.4.3",
|
|
70
69
|
"esbuild": "^0.28.0",
|
|
71
|
-
"eslint": "^10.
|
|
70
|
+
"eslint": "^10.3.0",
|
|
72
71
|
"ethers": "^6.16.0",
|
|
73
72
|
"hash-wasm": "~4.12.0",
|
|
74
73
|
"observable-fns": "~0.6.1",
|
|
75
74
|
"pako": "~2.1.0",
|
|
76
|
-
"publint": "~0.3.
|
|
75
|
+
"publint": "~0.3.19",
|
|
77
76
|
"typescript": "~5.9.3",
|
|
78
|
-
"vite": "^8.0.
|
|
77
|
+
"vite": "^8.0.10",
|
|
79
78
|
"vitest": "~4.1.5",
|
|
80
79
|
"wasm-feature-detect": "~1.8.0",
|
|
81
|
-
"zod": "^4.3
|
|
80
|
+
"zod": "^4.4.3"
|
|
82
81
|
},
|
|
83
82
|
"peerDependencies": {
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
83
|
+
"@opentelemetry/api": ">=1.9.1 <2",
|
|
84
|
+
"@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
|
|
85
|
+
"@xylabs/sdk-js": ">=5.1.1 <6",
|
|
86
|
+
"@xylabs/threads": ">=5.1.1 <6",
|
|
87
|
+
"async-mutex": ">=0.5.0 <1",
|
|
88
|
+
"bn.js": ">=5.2.3 <6",
|
|
89
|
+
"buffer": ">=6.0.3 <7",
|
|
90
|
+
"chalk": ">=5.6.2 <6",
|
|
91
|
+
"debug": ">=4.4.3 <4.5",
|
|
92
|
+
"ethers": ">=6.16.0 <7",
|
|
93
|
+
"hash-wasm": ">=4.12.0 <4.13",
|
|
94
|
+
"observable-fns": ">=0.6.1 <0.7",
|
|
95
|
+
"pako": ">=2.1.0 <2.2",
|
|
96
|
+
"wasm-feature-detect": ">=1.8.0 <1.9",
|
|
97
|
+
"zod": ">=4.4.3 <5"
|
|
90
98
|
},
|
|
91
99
|
"publishConfig": {
|
|
92
100
|
"access": "public"
|