Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zod

Package Overview
Dependencies
Maintainers
2
Versions
372
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 3.23.0-canary.20240404T043228 to 3.23.0-canary.20240407T005829

20

lib/types.d.ts

@@ -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;

2

lib/ZodError.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc