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 7676 },
7777 "dependencies" : {
7878 "lodash.clonedeep" : " ^4.5.0" ,
79- "openapi-types" : " ^12.1.3"
79+ "openapi-types" : " ^12.1.3" ,
80+ "pathe" : " ^1.1.2"
8081 }
8182}
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/ban-ts-comment */
22/* eslint-disable @typescript-eslint/no-unused-vars */
3- import path from 'path '
3+ import { normalize } from 'pathe '
44import type { HTTPMethod , LocalHook } from 'elysia'
55
66import { Kind , type TSchema } from '@sinclair/typebox'
@@ -310,7 +310,7 @@ export const filterPaths = (
310310
311311 // exclude docs path and OpenAPI json path
312312 const excludePaths = [ `/${ docsPath } ` , `/${ docsPath } /json` ] . map ( ( p ) =>
313- path . normalize ( p )
313+ normalize ( p )
314314 )
315315
316316 for ( const [ key , value ] of Object . entries ( paths ) )
You can’t perform that action at this time.
0 commit comments