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
+6 -3
View File
@@ -13437,9 +13437,12 @@ class ZodObject extends ZodType {
const { status, ctx } = this._processInputParams(input);
const { shape, keys: shapeKeys } = this._getCached();
const extraKeys = [];
for (const key in ctx.data) {
if (!shapeKeys.includes(key)) {
extraKeys.push(key);
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 = [];
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long