File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"build" : " tsc" ,
7
7
"test" : " npm run --silent build && mocha dist/test/conformanceApiTests.js" ,
8
- "fastify:ts" : " npm run --silent build && fastify start -p 4117 -w -l info -P dist/src/ts/fastify/app.js" ,
9
- "fastify:js" : " npm run --silent build && fastify start -p 4117 -w -l info -P dist/src/js/fastify/app.js"
8
+ "fastify:ts" : " npm run --silent build && fastify start --options - p 4117 -w -l info -P dist/src/ts/fastify/app.js" ,
9
+ "fastify:js" : " npm run --silent build && fastify start --options - p 4117 -w -l info -P dist/src/js/fastify/app.js"
10
10
},
11
11
"repository" : {
12
12
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ import { ConformanceApiService } from "../../ts/conformanceApiService.js";
2
2
import conformanceTestsJson from "../../../ConformanceTests.json" ;
3
3
import { conformanceApiPlugin } from "./conformanceApiPlugin.js" ;
4
4
5
- const options = { } ;
6
-
7
5
const app = async ( fastify , opts ) => {
8
6
fastify . register ( conformanceApiPlugin , {
9
7
api : new ConformanceApiService ( conformanceTestsJson . tests ) ,
8
+ caseInsenstiveQueryStringKeys : true ,
10
9
} ) ;
11
10
} ;
12
11
13
12
export default app ;
14
- export { app , options } ;
13
+ export const options = {
14
+ caseSensitive : false ,
15
+ } ;
Original file line number Diff line number Diff line change 1
- import { FastifyPluginAsync } from "fastify" ;
1
+ import { FastifyPluginAsync , FastifyServerOptions } from "fastify" ;
2
2
import { ConformanceApiService } from "../conformanceApiService.js" ;
3
3
import conformanceTestsJson from "../../../ConformanceTests.json" ;
4
4
import { conformanceApiPlugin } from "./conformanceApiPlugin.js" ;
5
5
6
- export type AppOptions = { } ;
7
- const options : AppOptions = { } ;
8
-
9
- const app : FastifyPluginAsync < AppOptions > = async (
6
+ const app : FastifyPluginAsync < FastifyServerOptions > = async (
10
7
fastify ,
11
8
opts
12
9
) : Promise < void > => {
@@ -17,4 +14,6 @@ const app: FastifyPluginAsync<AppOptions> = async (
17
14
} ;
18
15
19
16
export default app ;
20
- export { app , options } ;
17
+ export const options : FastifyServerOptions = {
18
+ caseSensitive : false ,
19
+ } ;
You can’t perform that action at this time.
0 commit comments