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 0.8.5 to 1.0.0-beta.0

9

dist/cjs/index.d.ts

@@ -8,4 +8,4 @@ import { type Elysia } from 'elysia';

*/
export declare const swagger: <Path extends string = "/swagger">({ provider, scalarVersion, scalarCDN, scalarConfig, documentation, version, excludeStaticFile, path, exclude, swaggerOptions, theme, autoDarkMode, excludeMethods }?: ElysiaSwaggerConfig<Path>) => (app: Elysia) => Elysia<"", {
request: {};
export declare const swagger: <Path extends string = "/swagger">({ provider, scalarVersion, scalarCDN, scalarConfig, documentation, version, excludeStaticFile, path, exclude, swaggerOptions, theme, autoDarkMode, excludeMethods }?: ElysiaSwaggerConfig<Path>) => (app: Elysia) => Elysia<"", false, {
decorator: {};
store: {};

@@ -17,3 +17,6 @@ derive: {};

error: {};
}, {}, {}, {}, false>;
}, {
schema: {};
macro: {};
}, {}>;
export default swagger;

@@ -63,3 +63,3 @@ "use strict";

})()).get(`${path}/json`, () => {
const routes = app.routes;
const routes = app.router.history;
if (routes.length !== totalRoutes) {

@@ -66,0 +66,0 @@ totalRoutes = routes.length;

@@ -13,3 +13,3 @@ import type { HTTPMethod, LocalHook } from 'elysia';

method: HTTPMethod;
hook?: LocalHook<any, any>;
hook?: LocalHook<any, any, any, any, any, any, any>;
models: Record<string, TSchema>;

@@ -16,0 +16,0 @@ }) => void;

@@ -8,4 +8,4 @@ import { type Elysia } from 'elysia';

*/
export declare const swagger: <Path extends string = "/swagger">({ provider, scalarVersion, scalarCDN, scalarConfig, documentation, version, excludeStaticFile, path, exclude, swaggerOptions, theme, autoDarkMode, excludeMethods }?: ElysiaSwaggerConfig<Path>) => (app: Elysia) => Elysia<"", {
request: {};
export declare const swagger: <Path extends string = "/swagger">({ provider, scalarVersion, scalarCDN, scalarConfig, documentation, version, excludeStaticFile, path, exclude, swaggerOptions, theme, autoDarkMode, excludeMethods }?: ElysiaSwaggerConfig<Path>) => (app: Elysia) => Elysia<"", false, {
decorator: {};
store: {};

@@ -17,3 +17,6 @@ derive: {};

error: {};
}, {}, {}, {}, false>;
}, {
schema: {};
macro: {};
}, {}>;
export default swagger;

@@ -60,3 +60,3 @@ import { SwaggerUIRender } from './swagger';

})()).get(`${path}/json`, () => {
const routes = app.routes;
const routes = app.router.history;
if (routes.length !== totalRoutes) {

@@ -63,0 +63,0 @@ totalRoutes = routes.length;

@@ -13,3 +13,3 @@ import type { HTTPMethod, LocalHook } from 'elysia';

method: HTTPMethod;
hook?: LocalHook<any, any>;
hook?: LocalHook<any, any, any, any, any, any, any>;
models: Record<string, TSchema>;

@@ -16,0 +16,0 @@ }) => void;

{
"name": "@elysiajs/swagger",
"version": "0.8.5",
"version": "1.0.0-beta.0",
"description": "Plugin for Elysia to auto-generate Swagger page",

@@ -38,3 +38,3 @@ "author": {

"peerDependencies": {
"elysia": ">= 0.8.0"
"elysia": ">= 1.0.0-beta.1"
},

@@ -44,6 +44,6 @@ "devDependencies": {

"@scalar/api-reference": "^1.12.5",
"@types/bun": "^1.0.4",
"@types/lodash.clonedeep": "^4.5.7",
"@types/node": "^20.1.4",
"bun-types": "^0.7.0",
"elysia": "0.8.0",
"elysia": "1.0.0-beta.1",
"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