fastify-zod-schema
Advanced tools
Comparing version
{ | ||
"name": "fastify-zod-schema", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A Fastify plugin that allows users to define request schemas using Zod, providing type safety and validation.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -7,4 +7,3 @@ import type { FastifyInstance } from 'fastify' | ||
function registerZod(fastify: FastifyInstance, params: any, done: (err?: any) => void) { | ||
function zodSchemaPlugin(fastify: FastifyInstance, params: any, done: (err?: any) => void) { | ||
fastify.setValidatorCompiler<z.Schema>(({ schema, method, url, httpPart }) => { | ||
@@ -35,3 +34,3 @@ return data => { | ||
//@ts-ignore | ||
registerZod[Symbol.for('skip-override')] = true | ||
export { registerZod } | ||
zodSchemaPlugin[Symbol.for('skip-override')] = true | ||
export { zodSchemaPlugin } |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
8361
0.13%0
-100%1
Infinity%