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.5.0-beta.0 to 0.5.0-rc.0

dist/cjs/index.d.ts

6

dist/index.js

@@ -50,3 +50,3 @@ import { SCHEMA, DEFS } from 'elysia';

});
}).route('GET', `${path}/json`, (content) => ({
}).route('GET', `${path}/json`, (context) => ({
openapi: '3.0.3',

@@ -62,3 +62,3 @@ ...{

},
paths: filterPaths(content[SCHEMA], {
paths: filterPaths(context[SCHEMA], {
excludeStaticFile,

@@ -68,3 +68,3 @@ exclude: Array.isArray(exclude) ? exclude : [exclude]

components: {
schemas: content[DEFS]
schemas: context[DEFS]
}

@@ -71,0 +71,0 @@ }), {

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

@@ -32,15 +32,16 @@ "author": {

"test": "bun wiptest",
"build": "rimraf dist && tsc --project tsconfig.esm.json",
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
"release": "npm run build && npm run test && npm publish --access public"
},
"peerDependencies": {
"elysia": ">= 0.5.0-exp-230505.1457"
"elysia": ">= 0.5.0-beta.3"
},
"devDependencies": {
"@types/node": "^18.11.7",
"bun-types": "^0.5.7",
"eslint": "^8.26.0",
"elysia": "^0.5.0-exp-230509.157",
"typescript": "^5.0.2"
"@types/node": "^20.1.4",
"bun-types": "^0.5.8",
"elysia": "0.5.0-beta.3",
"eslint": "^8.40.0",
"rimraf": "4.3",
"typescript": "^5.0.4"
}
}
import { type Elysia, SCHEMA, DEFS } from 'elysia'
import { staticPlugin } from '@elysiajs/static'

@@ -78,3 +77,3 @@ import { filterPaths } from './utils'

`${path}/json`,
(content) =>
(context) =>
({

@@ -91,3 +90,3 @@ openapi: '3.0.3',

},
paths: filterPaths(content[SCHEMA]!, {
paths: filterPaths(context[SCHEMA]!, {
excludeStaticFile,

@@ -97,3 +96,3 @@ exclude: Array.isArray(exclude) ? exclude : [exclude]

components: {
schemas: content[DEFS]
schemas: context[DEFS]
}

@@ -100,0 +99,0 @@ } satisfies OpenAPIV3.Document),

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