Comparing version 3.23.0-canary.20240404T043228 to 3.23.0-canary.20240407T005829
@@ -162,4 +162,16 @@ import { enumUtil } from "./helpers/enumUtil"; | ||
precision: number | null; | ||
withDate: true; | ||
withTime: true; | ||
message?: string; | ||
} | { | ||
kind: "date"; | ||
withDate: true; | ||
message?: string; | ||
} | { | ||
kind: "time"; | ||
offset: boolean; | ||
precision: number | null; | ||
withTime: true; | ||
message?: string; | ||
} | { | ||
kind: "ip"; | ||
@@ -194,2 +206,8 @@ version?: IpVersion; | ||
}): ZodString; | ||
date(message?: string): ZodString; | ||
time(options?: string | { | ||
message?: string | undefined; | ||
precision?: number | null; | ||
offset?: boolean; | ||
}): ZodString; | ||
regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString; | ||
@@ -214,2 +232,4 @@ includes(value: string, options?: { | ||
get isDatetime(): boolean; | ||
get isDate(): boolean; | ||
get isTime(): boolean; | ||
get isEmail(): boolean; | ||
@@ -216,0 +236,0 @@ get isURL(): boolean; |
@@ -73,3 +73,3 @@ import type { TypeOf, ZodType } from "."; | ||
} | ||
export declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "ip" | { | ||
export declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "ip" | { | ||
includes: string; | ||
@@ -76,0 +76,0 @@ position?: number; |
{ | ||
"name": "zod", | ||
"version": "3.23.0-canary.20240404T043228", | ||
"version": "3.23.0-canary.20240407T005829", | ||
"author": "Colin McDonnell <colin@colinhacks.com>", | ||
@@ -100,3 +100,3 @@ "repository": { | ||
"test:babel": "jest --coverage --config ./configs/babel-jest.config.json", | ||
"test:bun": "bun test", | ||
"test:bun": "bun test src/", | ||
"test:vitest": "npx vitest --config ./configs/vitest.config.ts", | ||
@@ -103,0 +103,0 @@ "test:ts-jest": "npx jest --config ./configs/ts-jest.config.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
650834
14635
3061