🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hono/typebox-validator

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hono/typebox-validator - npm Package Compare versions

Comparing version
0.2.5
to
0.2.6
+1
-2
dist/esm/index.d.ts
import type { TSchema, Static } from '@sinclair/typebox';
import { type ValueError } from '@sinclair/typebox/value';
import type { Context, Env, MiddlewareHandler, ValidationTargets } from 'hono';
type Hook<T, E extends Env, P extends string> = (result: {
export type Hook<T, E extends Env, P extends string> = (result: {
success: true;

@@ -64,2 +64,1 @@ data: T;

}>(target: Target, schema: T, hook?: Hook<Static<T>, E, P>): MiddlewareHandler<E, P, V>;
export {};
{
"name": "@hono/typebox-validator",
"version": "0.2.5",
"version": "0.2.6",
"description": "Validator middleware using TypeBox",

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