zod 3.25.42-beta.3 → 3.25.42

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.
@@ -46,7 +46,6 @@ exports.ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?
46
46
  exports.ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
47
47
  exports.cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
48
48
  exports.cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
49
- // export const ip: RegExp = /*@__PURE__*/ new RegExp(`(${ipv4.source})|(${ipv6.source})`);
50
49
  // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
51
50
  exports.base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
52
51
  exports.base64url = /^[A-Za-z0-9_-]*$/;
@@ -35,7 +35,7 @@ const error = () => {
35
35
  function getSizing(origin) {
36
36
  return Sizable[origin] ?? null;
37
37
  }
38
- const parsedType = /* @__PURE__ */ (data) => {
38
+ const parsedType = (data) => {
39
39
  const t = typeof data;
40
40
  switch (t) {
41
41
  case "number": {
@@ -39,7 +39,6 @@ export const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.)
39
39
  export const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
40
40
  export const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
41
41
  export const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
42
- // export const ip: RegExp = /*@__PURE__*/ new RegExp(`(${ipv4.source})|(${ipv6.source})`);
43
42
  // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
44
43
  export const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
45
44
  export const base64url = /^[A-Za-z0-9_-]*$/;
@@ -9,7 +9,7 @@ const error = () => {
9
9
  function getSizing(origin) {
10
10
  return Sizable[origin] ?? null;
11
11
  }
12
- const parsedType = /* @__PURE__ */ (data) => {
12
+ const parsedType = (data) => {
13
13
  const t = typeof data;
14
14
  switch (t) {
15
15
  case "number": {
@@ -723,7 +723,7 @@ function _instanceof(cls, params = {
723
723
  }
724
724
  export { _instanceof as instanceof };
725
725
  // stringbool
726
- export const stringbool = /* @__PURE__ */ (...args) => core._stringbool({
726
+ export const stringbool = (...args) => core._stringbool({
727
727
  Pipe: ZodMiniPipe,
728
728
  Boolean: ZodMiniBoolean,
729
729
  Unknown: ZodMiniUnknown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "3.25.42-beta.3",
3
+ "version": "3.25.42",
4
4
  "type": "module",
5
5
  "author": "Colin McDonnell <zod@colinhacks.com>",
6
6
  "description": "TypeScript-first schema declaration and validation library with static type inference",