Socket
Socket
Sign inDemoInstall

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 2.0.7 to 2.0.8

5

index.js

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

var setup = function(swaggerDoc, explorer, options, customCss, customfavIcon, swaggerUrl) {
var setup = function(swaggerDoc, explorer, options, customCss, customfavIcon, swaggerUrl, customeSiteTitle) {
options = options || {};

@@ -16,2 +16,3 @@ var explorerString = explorer ? '' : '.swagger-ui .topbar .download-url-wrapper { display: none }';

customfavIcon = customfavIcon || false;
customeSiteTitle = customeSiteTitle || 'Swagger UI';
var html = fs.readFileSync(__dirname + '/indexTemplate.html');

@@ -33,3 +34,3 @@ try {

}
var htmlWithOptions = htmlWithFavIcon.replace('<% swaggerOptions %>', JSON.stringify(initOptions))
var htmlWithOptions = htmlWithFavIcon.replace('<% swaggerOptions %>', JSON.stringify(initOptions)).replace('<% title %>', customeSiteTitle)

@@ -36,0 +37,0 @@ return function(req, res) { res.send(htmlWithOptions) };

2

package.json
{
"name": "swagger-ui-express",
"version": "2.0.7",
"version": "2.0.8",
"description": "Swagger UI Express",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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