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

zod

Package Overview
Dependencies
Maintainers
1
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.24.0-canary.20241210T025031 to 3.24.0-canary.20241210T025401

lib/standard-schema.d.ts

5

lib/types.d.ts

@@ -7,2 +7,3 @@ import { enumUtil } from "./helpers/enumUtil";

import { objectUtil, util } from "./helpers/util";
import type { StandardSchemaV1 } from "./standard-schema";
import { IssueData, StringValidation, ZodCustomIssue, ZodError, ZodErrorMap } from "./ZodError";

@@ -48,3 +49,3 @@ export interface RefinementCtx {

export declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> implements StandardSchemaV1<Input, Output> {
readonly _type: Output;

@@ -55,2 +56,3 @@ readonly _output: Output;

get description(): string | undefined;
"~standard": StandardSchemaV1.Props<Input, Output>;
abstract _parse(input: ParseInput): ParseReturnType<Output>;

@@ -67,2 +69,3 @@ _getType(input: ParseInput): string;

safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
"~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;

@@ -69,0 +72,0 @@ safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;

3

package.json
{
"name": "zod",
"version": "3.24.0-canary.20241210T025031",
"version": "3.24.0-canary.20241210T025401",
"author": "Colin McDonnell <colin@colinhacks.com>",

@@ -17,2 +17,3 @@ "repository": {

"@rollup/plugin-typescript": "^8.2.0",
"@standard-schema/spec": "^1.0.0-beta.4",
"@swc/core": "^1.3.66",

@@ -19,0 +20,0 @@ "@swc/jest": "^0.2.26",

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

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