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

swagger-ui-express

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-ui-express - npm Package Compare versions

Comparing version 4.6.1 to 4.6.2

3

index.js

@@ -142,3 +142,3 @@ 'use strict'

}, 500)
}

@@ -258,2 +258,3 @@ }

if (req.swaggerDoc) {
opts.swaggerDoc = req.swaggerDoc
swaggerInitFile = jsTplString.toString().replace('<% swaggerOptions %>', stringify(opts))

@@ -260,0 +261,0 @@ }

{
"name": "swagger-ui-express",
"version": "4.6.1",
"version": "4.6.2",
"description": "Swagger UI Express",

@@ -14,3 +14,3 @@ "main": "./index.js",

"scripts": {
"test": "./node_modules/.bin/mocha test/*",
"test": "./node_modules/.bin/mocha test/*.spec.js",
"coverage:report": "nyc ./node_modules/.bin/mocha test/* || exit 0",

@@ -17,0 +17,0 @@ "coverage:badge": "npm run coverage:report && istanbul-badges-readme --coverageDir='./coverage'",

@@ -324,2 +324,7 @@ # Swagger UI Express

app.use('/api-docs-two', swaggerUi.serveFiles(swaggerDocumentTwo, options), swaggerUi.setup(swaggerDocumentTwo));
app.use('/api-docs-dynamic', function(req, res, next){
req.swaggerDoc = swaggerDocument;
next();
}, swaggerUi.serveFiles(), swaggerUi.setup());
```

@@ -326,0 +331,0 @@

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