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.4 to 0.1.5

2

dist/cjs/index.js

@@ -8,3 +8,3 @@ "use strict";

if (hook) {
const hookResult = hook(result, c);
const hookResult = hook({ data: value, ...result }, c);
if (hookResult instanceof Response || hookResult instanceof Promise) {

@@ -11,0 +11,0 @@ return hookResult;

@@ -9,2 +9,3 @@ import type { Context, MiddlewareHandler, Env, ValidationTargets } from 'hono';

error: ZodError;
data: T;
}, c: Context<E, P>) => Response | Promise<Response> | void | Promise<Response | void>;

@@ -11,0 +12,0 @@ export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Target extends keyof ValidationTargets, E extends Env, P extends string, V extends {

@@ -5,3 +5,3 @@ import { validator } from 'hono/validator';

if (hook) {
const hookResult = hook(result, c);
const hookResult = hook({ data: value, ...result }, c);
if (hookResult instanceof Response || hookResult instanceof Promise) {

@@ -8,0 +8,0 @@ return hookResult;

{
"name": "@hono/zod-validator",
"version": "0.1.4",
"version": "0.1.5",
"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