@hono/zod-validator
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
import type { Context } from 'hono'; | ||
import type { Context, MiddlewareHandler, Env } from 'hono'; | ||
import type { z } from 'zod'; | ||
@@ -12,6 +12,6 @@ import type { ZodError } from 'zod'; | ||
}, c: Context) => Response | Promise<Response> | void; | ||
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Type extends ValidationTypes>(type: Type, schema: T, hook?: Hook<z.TypeOf<T>> | undefined) => (c: Context<import("hono/dist/types/types").Environment, import("hono/dist/types/types").Route, {} | { | ||
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Type extends ValidationTypes, E extends Env, P extends string>(type: Type, schema: T, hook?: Hook<z.TypeOf<T>> | undefined) => MiddlewareHandler<E, P, { | ||
type: Type; | ||
data: z.TypeOf<T>; | ||
}>, next: import("hono").Next) => Response | Promise<void | Response | undefined>; | ||
}>; | ||
export {}; |
{ | ||
"name": "@hono/zod-validator", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Validator middleware using Zod", | ||
@@ -37,3 +37,6 @@ "main": "dist/cjs/index.js", | ||
"zod": "3.19.1" | ||
}, | ||
"dependencies": { | ||
"hono": "3.0.0-rc.7" | ||
} | ||
} | ||
} |
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
3343
3
+ Addedhono@3.0.0-rc.7
+ Addedhono@3.0.0-rc.7(transitive)
- Removedhono@3.12.12(transitive)