adding dist

This commit is contained in:
Federico Builes
2022-09-12 06:54:07 +02:00
parent 2ae4b932b7
commit 0455501026
2 changed files with 7 additions and 4 deletions
Generated Vendored
+3
View File
@@ -13437,11 +13437,14 @@ class ZodObject extends ZodType {
const { status, ctx } = this._processInputParams(input);
const { shape, keys: shapeKeys } = this._getCached();
const extraKeys = [];
if (!(this._def.catchall instanceof ZodNever &&
this._def.unknownKeys === "strip")) {
for (const key in ctx.data) {
if (!shapeKeys.includes(key)) {
extraKeys.push(key);
}
}
}
const pairs = [];
for (const key of shapeKeys) {
const keyValidator = shape[key];
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long