diff --git a/bun.lockb b/bun.lockb index 833d9fe..6ebdda9 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 0fb94fa..fdd5a4b 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ }, "dependencies": { "lodash.clonedeep": "^4.5.0", - "openapi-types": "^12.1.3" + "openapi-types": "^12.1.3", + "pathe": "^1.1.2" } } diff --git a/src/utils.ts b/src/utils.ts index cb55b24..7f9753c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-unused-vars */ -import path from 'path' +import { normalize } from 'pathe' import type { HTTPMethod, LocalHook } from 'elysia' import { Kind, type TSchema } from '@sinclair/typebox' @@ -310,7 +310,7 @@ export const filterPaths = ( // exclude docs path and OpenAPI json path const excludePaths = [`/${docsPath}`, `/${docsPath}/json`].map((p) => - path.normalize(p) + normalize(p) ) for (const [key, value] of Object.entries(paths))