File tree Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 33 "version" : " 5.0.0" ,
44 "description" : " A error handling plugin for Fastify that uses enhanced HTTP errors." ,
55 "homepage" : " https://sw.cowtech.it/fastify-http-errors-enhanced" ,
6- "repository" : " github:ShogunPanda/fastify-http-errors-enhanced" ,
6+ "repository" : {
7+ "type" : " git" ,
8+ "url" : " git+https://github.com/ShogunPanda/fastify-http-errors-enhanced.git"
9+ },
710 "keywords" : [
811 " fastify" ,
912 " fastify-plugin" ,
4144 "dependencies" : {
4245 "ajv" : " ^8.12.0" ,
4346 "fastify-plugin" : " ^4.5.1" ,
44- "http-errors-enhanced" : " ^2.0.0 "
47+ "http-errors-enhanced" : " ^2.0.3 "
4548 },
4649 "devDependencies" : {
47- "@cowtech/eslint-config" : " ^9.0.0 " ,
48- "@swc/cli" : " ^0.1.63 " ,
49- "@swc/core" : " ^1.3.101 " ,
50- "@types/node" : " ^20.10.5 " ,
50+ "@cowtech/eslint-config" : " ^9.0.3 " ,
51+ "@swc/cli" : " ^0.2.3 " ,
52+ "@swc/core" : " ^1.3.105 " ,
53+ "@types/node" : " ^20.11.6 " ,
5154 "@types/tap" : " ^15.0.11" ,
5255 "ajv-formats" : " ^2.1.1" ,
53- "c8" : " ^8.0.1 " ,
56+ "c8" : " ^9.1.0 " ,
5457 "chokidar" : " ^3.5.3" ,
5558 "concurrently" : " ^8.2.2" ,
56- "fastify" : " ^4.25.1 " ,
57- "prettier" : " ^3.1.1 " ,
59+ "fastify" : " ^4.25.2 " ,
60+ "prettier" : " ^3.2.4 " ,
5861 "tap" : " ^18.6.1" ,
5962 "ts-node" : " ^10.9.2" ,
6063 "typescript" : " ^5.3.3"
Original file line number Diff line number Diff line change 1- import { type ValidateFunction } from 'ajv'
21import type Ajv from 'ajv'
2+ import { type ValidateFunction } from 'ajv'
33import { type FastifyError } from 'fastify'
44
55export const kHttpErrorsEnhancedConfiguration = Symbol ( 'fastify-http-errors-enhanced-configuration' )
@@ -10,7 +10,7 @@ export interface Configuration {
1010 convertValidationErrors ?: boolean
1111 allowUndeclaredResponses ?: boolean
1212 use422ForValidationErrors ?: boolean
13- responseValidatorCustomizer ?: ( ajv : Ajv ) => void
13+ responseValidatorCustomizer ?: ( ajv : typeof Ajv ) => void
1414 preHandler ?: ( error : FastifyError | Error ) => Error
1515}
1616
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "target" : " ES2022" ,
4- "module" : " ESNext " ,
5- "moduleResolution" : " node " ,
4+ "module" : " NodeNext " ,
5+ "moduleResolution" : " NodeNext " ,
66 "jsx" : " preserve" ,
77 "declaration" : true ,
88 "outDir" : " dist" ,
1717 "strictNullChecks" : true ,
1818 "useUnknownInCatchVariables" : false
1919 },
20- "include" : [
21- " src/*.ts"
22- ]
20+ "include" : [" src/*.ts" ]
2321}
You can’t perform that action at this time.
0 commit comments