@elysiajs/swagger
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -37,3 +37,3 @@ "use strict"; | ||
const relativePath = path.startsWith('/') ? path.slice(1) : path; | ||
app.get(path, (() => { | ||
app.get(path, () => { | ||
const combinedSwaggerOptions = { | ||
@@ -63,4 +63,4 @@ url: `${relativePath}/json`, | ||
}); | ||
})()).get(`${path}/json`, () => { | ||
const routes = app.router.history; | ||
}).get(`${path}/json`, () => { | ||
const routes = app.routes; | ||
if (routes.length !== totalRoutes) { | ||
@@ -67,0 +67,0 @@ totalRoutes = routes.length; |
@@ -34,3 +34,3 @@ import { SwaggerUIRender } from './swagger'; | ||
const relativePath = path.startsWith('/') ? path.slice(1) : path; | ||
app.get(path, (() => { | ||
app.get(path, () => { | ||
const combinedSwaggerOptions = { | ||
@@ -60,4 +60,4 @@ url: `${relativePath}/json`, | ||
}); | ||
})()).get(`${path}/json`, () => { | ||
const routes = app.router.history; | ||
}).get(`${path}/json`, () => { | ||
const routes = app.routes; | ||
if (routes.length !== totalRoutes) { | ||
@@ -64,0 +64,0 @@ totalRoutes = routes.length; |
{ | ||
"name": "@elysiajs/swagger", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Plugin for Elysia to auto-generate Swagger page", | ||
@@ -38,3 +38,3 @@ "author": { | ||
"peerDependencies": { | ||
"elysia": ">= 1.0.0-beta.5" | ||
"elysia": ">= 1.0.0-beta.9" | ||
}, | ||
@@ -47,3 +47,3 @@ "devDependencies": { | ||
"@types/node": "^20.1.4", | ||
"elysia": "1.0.0-beta.5", | ||
"elysia": "1.0.0-beta.9", | ||
"eslint": "^8.40.0", | ||
@@ -57,2 +57,2 @@ "rimraf": "4.3", | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159794