Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elysiajs/swagger

Package Overview
Dependencies
Maintainers
1
Versions
59
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.7.4 to 0.8.0-rc.0

3

dist/cjs/index.d.ts

@@ -11,6 +11,7 @@ import { type Elysia } from 'elysia';

store: {};
derive: {};
}, {
type: {};
error: {};
}, {}, {}, false>;
}, {}, {}, {}, false>;
export default swagger;

@@ -29,6 +29,6 @@ "use strict";

};
const pathWithPrefix = `${app.config.prefix}${path}`;
const relativePath = path.startsWith('/') ? path.slice(1) : path;
app.get(path, () => {
const combinedSwaggerOptions = {
url: `${pathWithPrefix}/json`,
url: `${relativePath}/json`,
dom_id: '#swagger-ui',

@@ -35,0 +35,0 @@ ...swaggerOptions

@@ -11,6 +11,7 @@ import { type Elysia } from 'elysia';

store: {};
derive: {};
}, {
type: {};
error: {};
}, {}, {}, false>;
}, {}, {}, {}, false>;
export default swagger;

@@ -26,6 +26,6 @@ import { filterPaths, registerSchemaPath } from './utils';

};
const pathWithPrefix = `${app.config.prefix}${path}`;
const relativePath = path.startsWith('/') ? path.slice(1) : path;
app.get(path, () => {
const combinedSwaggerOptions = {
url: `${pathWithPrefix}/json`,
url: `${relativePath}/json`,
dom_id: '#swagger-ui',

@@ -32,0 +32,0 @@ ...swaggerOptions

{
"name": "@elysiajs/swagger",
"version": "0.7.4",
"description": "Plugin for Elysia to auto-generate Swagger page",
"author": {
"name": "saltyAom",
"url": "https://github.com/SaltyAom",
"email": "saltyaom@gmail.com"
},
"main": "./dist/index.js",
"exports": {
"bun": "./dist/index.js",
"node": "./dist/cjs/index.js",
"require": "./dist/cjs/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"keywords": [
"elysia",
"swagger"
],
"homepage": "https://github.com/elysiajs/elysia-swagger",
"repository": {
"type": "git",
"url": "https://github.com/elysiajs/elysia-swagger"
},
"bugs": "https://github.com/elysiajs/elysia-swagger/issues",
"license": "MIT",
"scripts": {
"dev": "bun run --watch example/index.ts",
"test": "bun test && npm run test:node",
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",
"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.7.0"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@types/node": "^20.1.4",
"bun-types": "^0.7.0",
"elysia": "0.7.10",
"eslint": "^8.40.0",
"rimraf": "4.3",
"typescript": "^5.0.4"
},
"dependencies": {
"@types/lodash.clonedeep": "^4.5.7",
"@types/swagger-ui": "^3.52.2",
"lodash.clonedeep": "^4.5.0",
"openapi-types": "^12.1.3"
}
"name": "@elysiajs/swagger",
"version": "0.8.0-rc.0",
"description": "Plugin for Elysia to auto-generate Swagger page",
"author": {
"name": "saltyAom",
"url": "https://github.com/SaltyAom",
"email": "saltyaom@gmail.com"
},
"main": "./dist/index.js",
"exports": {
"bun": "./dist/index.js",
"node": "./dist/cjs/index.js",
"require": "./dist/cjs/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"keywords": [
"elysia",
"swagger"
],
"homepage": "https://github.com/elysiajs/elysia-swagger",
"repository": {
"type": "git",
"url": "https://github.com/elysiajs/elysia-swagger"
},
"bugs": "https://github.com/elysiajs/elysia-swagger/issues",
"license": "MIT",
"scripts": {
"dev": "bun run --watch example/index.ts",
"test": "bun test && npm run test:node",
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",
"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.8.0-rc.0"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@types/node": "^20.1.4",
"bun-types": "^0.7.0",
"elysia": "0.8.0-rc.0",
"eslint": "^8.40.0",
"rimraf": "4.3",
"typescript": "^5.0.4"
},
"dependencies": {
"@types/lodash.clonedeep": "^4.5.7",
"@types/swagger-ui": "^3.52.2",
"lodash.clonedeep": "^4.5.0",
"openapi-types": "^12.1.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