swagger-ui-express
Advanced tools
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 | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15260
154