Socket
Socket
Sign inDemoInstall

@elysiajs/swagger

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elysiajs/swagger - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0-beta.2

6

dist/cjs/index.js

@@ -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",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc