updating dist files

This commit is contained in:
Federico Builes
2022-07-18 07:00:33 -06:00
parent f83d7f264c
commit 0e2da932f6
2 changed files with 8 additions and 10 deletions
Generated Vendored
+7 -9
View File
@@ -11818,25 +11818,23 @@ class ZodString extends ZodType {
return !!this._def.checks.find((ch) => ch.kind === "cuid");
}
get minLength() {
let min = -Infinity;
this._def.checks.map((ch) => {
let min = null;
for (const ch of this._def.checks) {
if (ch.kind === "min") {
if (min === null || ch.value > min) {
if (min === null || ch.value > min)
min = ch.value;
}
}
});
}
return min;
}
get maxLength() {
let max = null;
this._def.checks.map((ch) => {
for (const ch of this._def.checks) {
if (ch.kind === "max") {
if (max === null || ch.value < max) {
if (max === null || ch.value < max)
max = ch.value;
}
}
});
}
return max;
}
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long