Skip to content

Commit 2a74d3b

Browse files
authored
Merge pull request #144 from Mkassabov/main
2 parents 7d00552 + a9f0736 commit 2a74d3b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bun.lockb

24 Bytes
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
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
}

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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'
44
import type { HTTPMethod, LocalHook } from 'elysia'
55

66
import { 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))

0 commit comments

Comments
 (0)