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

express-joi-simple

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-joi-simple - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "express-joi-simple",
"version": "1.0.5",
"version": "1.0.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -63,3 +63,4 @@ # Express + Joi + Swagger

host: 'localhost:3000',
basePath: '/'
basePath: '/',
documentaionPath: /doc
}

@@ -69,1 +70,5 @@ ```

Doc(app, settings);
Default documentation path is: /
So you can find documentation: localhost:3000/

@@ -8,3 +8,3 @@

export function Doc(app: any, settings?: any) {
const {info, host, basePath} = settings;
const {info, host, basePath, documentationPath} = settings;

@@ -46,3 +46,5 @@ Swagger.swaggerDoc.createJsonDoc(info, host, basePath);

app.use('/doc', SwaggerUi.serve, SwaggerUi.setup(JSON.parse(swaggerDocument)));
let docPath = documentationPath || '/';
app.use(docPath, SwaggerUi.serve, SwaggerUi.setup(JSON.parse(swaggerDocument)));
}

@@ -15,3 +15,4 @@ export const settings = {

host: 'localhost:3000',
basePath: '/'
basePath: '/',
documentationPath: '/doc'
}
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