File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 76
76
},
77
77
"dependencies" : {
78
78
"lodash.clonedeep" : " ^4.5.0" ,
79
- "openapi-types" : " ^12.1.3"
79
+ "openapi-types" : " ^12.1.3" ,
80
+ "pathe" : " ^1.1.2"
80
81
}
81
82
}
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
/* eslint-disable @typescript-eslint/no-unused-vars */
3
- import path from 'path '
3
+ import { normalize } from 'pathe '
4
4
import type { HTTPMethod , LocalHook } from 'elysia'
5
5
6
6
import { Kind , type TSchema } from '@sinclair/typebox'
@@ -310,7 +310,7 @@ export const filterPaths = (
310
310
311
311
// exclude docs path and OpenAPI json path
312
312
const excludePaths = [ `/${ docsPath } ` , `/${ docsPath } /json` ] . map ( ( p ) =>
313
- path . normalize ( p )
313
+ normalize ( p )
314
314
)
315
315
316
316
for ( const [ key , value ] of Object . entries ( paths ) )
You can’t perform that action at this time.
0 commit comments