@elysiajs/swagger
Advanced tools
@@ -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 |
+2
-1
@@ -11,6 +11,7 @@ import { type Elysia } from 'elysia'; | ||
| store: {}; | ||
| derive: {}; | ||
| }, { | ||
| type: {}; | ||
| error: {}; | ||
| }, {}, {}, false>; | ||
| }, {}, {}, {}, false>; | ||
| export default swagger; |
+2
-2
@@ -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 |
+53
-53
| { | ||
| "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" | ||
| } | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
36626
0.65%875
0.23%