Skip to content

Commit

Permalink
🎉 feat: 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Feb 26, 2024
2 parents c400e4e + 07f6554 commit 12ec0e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -35,15 +35,15 @@
"release": "npm run build && npm run test && npm publish --access public"
},
"peerDependencies": {
"elysia": ">= 1.0.0-beta.5"
"elysia": ">= 1.0.0-beta.9"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@scalar/api-reference": "^1.12.5",
"@types/bun": "^1.0.4",
"@types/lodash.clonedeep": "^4.5.7",
"@types/node": "^20.1.4",
"elysia": "1.0.0-beta.5",
"elysia": "1.0.0-beta.9",
"eslint": "^8.40.0",
"rimraf": "4.3",
"typescript": "^5.0.4"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Expand Up @@ -64,7 +64,7 @@ export const swagger =

app.get(
path,
(() => {
() => {
const combinedSwaggerOptions = {
url: `${relativePath}/json`,
dom_id: '#swagger-ui',
Expand Down Expand Up @@ -108,11 +108,11 @@ export const swagger =
}
}
)
})()
}
).get(
`${path}/json`,
() => {
const routes = app.router.history as InternalRoute[]
const routes = app.routes as InternalRoute[]

if (routes.length !== totalRoutes) {
totalRoutes = routes.length
Expand Down

0 comments on commit 12ec0e1

Please sign in to comment.