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

@hono/zod-validator

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hono/zod-validator - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

12

dist/esm/index.d.ts

@@ -11,8 +11,10 @@ import type { Context, MiddlewareHandler, Env, ValidationTargets, TypedResponse } from 'hono';

}, c: Context<E, P>) => Response | Promise<Response> | void | Promise<Response | void> | TypedResponse<O>;
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Target extends keyof ValidationTargets, E extends Env, P extends string, V extends {
in: { [K in Target]: z.input<T>; };
out: { [K_1 in Target]: z.output<T>; };
type HasUndefined<T> = undefined extends T ? true : false;
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Target extends keyof ValidationTargets, E extends Env, P extends string, I = z.input<T>, O = z.output<T>, V extends {
in: HasUndefined<I> extends true ? { [K in Target]?: I | undefined; } : { [K_1 in Target]: I; };
out: { [K_2 in Target]: O; };
} = {
in: { [K_2 in Target]: z.input<T>; };
out: { [K_3 in Target]: z.output<T>; };
in: HasUndefined<I> extends true ? { [K_3 in Target]?: I | undefined; } : { [K_4 in Target]: I; };
out: { [K_5 in Target]: O; };
}>(target: Target, schema: T, hook?: Hook<z.TypeOf<T>, E, P, {}> | undefined) => MiddlewareHandler<E, P, V>;
export {};
{
"name": "@hono/zod-validator",
"version": "0.1.9",
"version": "0.1.10",
"description": "Validator middleware using Zod",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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