🎉 feat: 1.0

This commit is contained in:
saltyaom
2024-02-26 18:17:10 +07:00
3 changed files with 5 additions and 5 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -35,7 +35,7 @@
"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",
@@ -43,7 +43,7 @@
"@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"

View File

@@ -64,7 +64,7 @@ export const swagger =
app.get(
path,
(() => {
() => {
const combinedSwaggerOptions = {
url: `${relativePath}/json`,
dom_id: '#swagger-ui',
@@ -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