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.0.1 to 0.0.2

6

dist/esm/index.d.ts

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