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 3
3
"version" : " 5.0.0" ,
4
4
"description" : " A error handling plugin for Fastify that uses enhanced HTTP errors." ,
5
5
"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
+ },
7
10
"keywords" : [
8
11
" fastify" ,
9
12
" fastify-plugin" ,
41
44
"dependencies" : {
42
45
"ajv" : " ^8.12.0" ,
43
46
"fastify-plugin" : " ^4.5.1" ,
44
- "http-errors-enhanced" : " ^2.0.0 "
47
+ "http-errors-enhanced" : " ^2.0.3 "
45
48
},
46
49
"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 " ,
51
54
"@types/tap" : " ^15.0.11" ,
52
55
"ajv-formats" : " ^2.1.1" ,
53
- "c8" : " ^8.0.1 " ,
56
+ "c8" : " ^9.1.0 " ,
54
57
"chokidar" : " ^3.5.3" ,
55
58
"concurrently" : " ^8.2.2" ,
56
- "fastify" : " ^4.25.1 " ,
57
- "prettier" : " ^3.1.1 " ,
59
+ "fastify" : " ^4.25.2 " ,
60
+ "prettier" : " ^3.2.4 " ,
58
61
"tap" : " ^18.6.1" ,
59
62
"ts-node" : " ^10.9.2" ,
60
63
"typescript" : " ^5.3.3"
Original file line number Diff line number Diff line change 1
- import { type ValidateFunction } from 'ajv'
2
1
import type Ajv from 'ajv'
2
+ import { type ValidateFunction } from 'ajv'
3
3
import { type FastifyError } from 'fastify'
4
4
5
5
export const kHttpErrorsEnhancedConfiguration = Symbol ( 'fastify-http-errors-enhanced-configuration' )
@@ -10,7 +10,7 @@ export interface Configuration {
10
10
convertValidationErrors ?: boolean
11
11
allowUndeclaredResponses ?: boolean
12
12
use422ForValidationErrors ?: boolean
13
- responseValidatorCustomizer ?: ( ajv : Ajv ) => void
13
+ responseValidatorCustomizer ?: ( ajv : typeof Ajv ) => void
14
14
preHandler ?: ( error : FastifyError | Error ) => Error
15
15
}
16
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"target" : " ES2022" ,
4
- "module" : " ESNext " ,
5
- "moduleResolution" : " node " ,
4
+ "module" : " NodeNext " ,
5
+ "moduleResolution" : " NodeNext " ,
6
6
"jsx" : " preserve" ,
7
7
"declaration" : true ,
8
8
"outDir" : " dist" ,
17
17
"strictNullChecks" : true ,
18
18
"useUnknownInCatchVariables" : false
19
19
},
20
- "include" : [
21
- " src/*.ts"
22
- ]
20
+ "include" : [" src/*.ts" ]
23
21
}
You can’t perform that action at this time.
0 commit comments