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.0.1 to 4.0.2

10

index.js

@@ -15,4 +15,4 @@ 'use strict'

var customJs
var swaggerUrls
if (opts && typeof opts === 'object') {
isExplorer = opts.explorer
options = opts.swaggerOptions

@@ -23,2 +23,4 @@ customCss = opts.customCss

swaggerUrl = opts.swaggerUrl
swaggerUrls = opts.swaggerUrls
isExplorer = opts.explorer || !!swaggerUrls
customeSiteTitle = opts.customSiteTitle

@@ -49,3 +51,4 @@ } else {

customOptions: options,
swaggerUrl: swaggerUrl || undefined
swaggerUrl: swaggerUrl || undefined,
swaggerUrls: swaggerUrls || undefined
}

@@ -99,3 +102,4 @@ var js = fs.readFileSync(__dirname + '/swagger-ui-init.js');

customOptions: opts.swaggerOptions || {},
swaggerUrl: opts.swaggerUrl || {}
swaggerUrl: opts.swaggerUrl || {},
swaggerUrls: opts.swaggerUrls || undefined
}

@@ -102,0 +106,0 @@ var swaggerInitWithOpts = swaggerInitFunction(swaggerDoc, initOptions)

{
"name": "swagger-ui-express",
"version": "4.0.1",
"version": "4.0.2",
"description": "Swagger UI Express",

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

@@ -1,2 +0,1 @@

window.onload = function() {

@@ -12,2 +11,3 @@ // Build a system

url = options.swaggerUrl || url
var urls = options.swaggerUrls
var customOptions = options.customOptions

@@ -18,2 +18,3 @@ var spec1 = options.swaggerDoc

url: url,
urls: urls,
dom_id: '#swagger-ui',

@@ -44,2 +45,2 @@ deepLinking: true,

window.ui = ui
}
}
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