zod 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -346,12 +346,6 @@ test("do not continue by default", () => {
|
|
|
346
346
|
"code": "custom",
|
|
347
347
|
"message": "custom error",
|
|
348
348
|
"path": []
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"expected": "number",
|
|
352
|
-
"code": "invalid_type",
|
|
353
|
-
"path": [],
|
|
354
|
-
"message": "Invalid input: expected number, received string"
|
|
355
349
|
}
|
|
356
350
|
]],
|
|
357
351
|
"success": false,
|
package/src/v4/core/schemas.ts
CHANGED
|
@@ -3445,7 +3445,7 @@ export const $ZodPipe: core.$constructor<$ZodPipe> = /*@__PURE__*/ core.$constru
|
|
|
3445
3445
|
});
|
|
3446
3446
|
|
|
3447
3447
|
function handlePipeResult(left: ParsePayload, def: $ZodPipeDef, ctx: ParseContext) {
|
|
3448
|
-
if (
|
|
3448
|
+
if (left.issues.length) {
|
|
3449
3449
|
return left;
|
|
3450
3450
|
}
|
|
3451
3451
|
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
package/src/v4/core/versions.ts
CHANGED
package/v4/core/schemas.cjs
CHANGED
|
@@ -1587,7 +1587,7 @@ exports.$ZodPipe = core.$constructor("$ZodPipe", (inst, def) => {
|
|
|
1587
1587
|
};
|
|
1588
1588
|
});
|
|
1589
1589
|
function handlePipeResult(left, def, ctx) {
|
|
1590
|
-
if (
|
|
1590
|
+
if (left.issues.length) {
|
|
1591
1591
|
return left;
|
|
1592
1592
|
}
|
|
1593
1593
|
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
package/v4/core/schemas.js
CHANGED
|
@@ -1556,7 +1556,7 @@ export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def)
|
|
|
1556
1556
|
};
|
|
1557
1557
|
});
|
|
1558
1558
|
function handlePipeResult(left, def, ctx) {
|
|
1559
|
-
if (
|
|
1559
|
+
if (left.issues.length) {
|
|
1560
1560
|
return left;
|
|
1561
1561
|
}
|
|
1562
1562
|
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
package/v4/core/versions.cjs
CHANGED
package/v4/core/versions.js
CHANGED