Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

zod

Package Overview
Dependencies
Maintainers
1
Versions
860
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod - npm Package Compare versions

Comparing version
4.4.0-canary.20260122T192419
to
4.4.0-canary.20260125T200534
+1
-1
package.json
{
"name": "zod",
"version": "4.4.0-canary.20260122T192419",
"version": "4.4.0-canary.20260125T200534",
"type": "module",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -83,2 +83,24 @@ import { expect, test } from "vitest";

expect(invalidElement.error!.issues[0].message).toContain("raqam");
const tooSmallMap = z
.map(z.string(), z.string())
.min(3)
.safeParse(new Map([["a", "b"]]));
expect(tooSmallMap.error!.issues[0].code).toBe("too_small");
expect(tooSmallMap.error!.issues[0].message).toContain("yozuv");
expect(tooSmallMap.error!.issues[0].message).toContain("bo‘lishi kerak");
const tooBigMap = z
.map(z.string(), z.string())
.max(2)
.safeParse(
new Map([
["a", "b"],
["c", "d"],
["e", "f"],
])
);
expect(tooBigMap.error!.issues[0].code).toBe("too_big");
expect(tooBigMap.error!.issues[0].message).toContain("yozuv");
expect(tooBigMap.error!.issues[0].message).toContain("bo‘lishi kerak");
});

@@ -11,2 +11,3 @@ import type { $ZodStringFormats } from "../core/checks.js";

set: { unit: "element", verb: "bo‘lishi kerak" },
map: { unit: "yozuv", verb: "bo‘lishi kerak" },
};

@@ -13,0 +14,0 @@

@@ -34,2 +34,3 @@ "use strict";

set: { unit: "element", verb: "bo‘lishi kerak" },
map: { unit: "yozuv", verb: "bo‘lishi kerak" },
};

@@ -36,0 +37,0 @@ function getSizing(origin) {

@@ -8,2 +8,3 @@ import * as util from "../core/util.js";

set: { unit: "element", verb: "bo‘lishi kerak" },
map: { unit: "yozuv", verb: "bo‘lishi kerak" },
};

@@ -10,0 +11,0 @@ function getSizing(origin) {