adding dist
This commit is contained in:
+6
-3
@@ -13437,9 +13437,12 @@ class ZodObject extends ZodType {
|
|||||||
const { status, ctx } = this._processInputParams(input);
|
const { status, ctx } = this._processInputParams(input);
|
||||||
const { shape, keys: shapeKeys } = this._getCached();
|
const { shape, keys: shapeKeys } = this._getCached();
|
||||||
const extraKeys = [];
|
const extraKeys = [];
|
||||||
for (const key in ctx.data) {
|
if (!(this._def.catchall instanceof ZodNever &&
|
||||||
if (!shapeKeys.includes(key)) {
|
this._def.unknownKeys === "strip")) {
|
||||||
extraKeys.push(key);
|
for (const key in ctx.data) {
|
||||||
|
if (!shapeKeys.includes(key)) {
|
||||||
|
extraKeys.push(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const pairs = [];
|
const pairs = [];
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user