+1
-1
| { | ||
| "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) { |
+1
-0
@@ -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) { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
4345800
0.02%104283
0.02%