zod 3.25.58 → 3.25.59
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/dist/cjs/v4/core/schemas.js +6 -10
- package/dist/cjs/v4/core/to-json-schema.js +411 -419
- package/dist/esm/v4/core/schemas.js +6 -10
- package/dist/esm/v4/core/to-json-schema.js +411 -419
- package/dist/types/v4/core/json-schema.d.ts +63 -76
- package/dist/types/v4/core/schemas.d.ts +1 -1
- package/package.json +1 -1
|
@@ -72,10 +72,8 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
72
72
|
if (!shouldRun)
|
|
73
73
|
continue;
|
|
74
74
|
}
|
|
75
|
-
else {
|
|
76
|
-
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
75
|
+
else if (isAborted) {
|
|
76
|
+
continue;
|
|
79
77
|
}
|
|
80
78
|
const currLen = payload.issues.length;
|
|
81
79
|
const _ = ch._zod.check(payload);
|
|
@@ -832,13 +830,11 @@ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
|
832
830
|
if (r instanceof Promise) {
|
|
833
831
|
proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
|
|
834
832
|
}
|
|
833
|
+
else if (isOptional) {
|
|
834
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
835
|
+
}
|
|
835
836
|
else {
|
|
836
|
-
|
|
837
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
838
|
-
}
|
|
839
|
-
else {
|
|
840
|
-
handleObjectResult(r, payload, key);
|
|
841
|
-
}
|
|
837
|
+
handleObjectResult(r, payload, key);
|
|
842
838
|
}
|
|
843
839
|
}
|
|
844
840
|
}
|