adding dist
This commit is contained in:
+3
@@ -13437,11 +13437,14 @@ 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 = [];
|
||||||
|
if (!(this._def.catchall instanceof ZodNever &&
|
||||||
|
this._def.unknownKeys === "strip")) {
|
||||||
for (const key in ctx.data) {
|
for (const key in ctx.data) {
|
||||||
if (!shapeKeys.includes(key)) {
|
if (!shapeKeys.includes(key)) {
|
||||||
extraKeys.push(key);
|
extraKeys.push(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const pairs = [];
|
const pairs = [];
|
||||||
for (const key of shapeKeys) {
|
for (const key of shapeKeys) {
|
||||||
const keyValidator = shape[key];
|
const keyValidator = shape[key];
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user