🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

fastify-zod-schema

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-zod-schema - npm Package Compare versions

Package version was removed
This package version has been unpublished, mostly likely due to security reasons

Comparing version

to
1.0.3

2

package.json
{
"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 }