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.4.0 to 4.5.0

8

index.js

@@ -201,5 +201,5 @@ 'use strict'

function swaggerInitFn(req, res, next) {
if (trimQuery(req.url) === '/package.json') {
if (trimQuery(req.url).endsWith('/package.json')) {
res.sendStatus(404)
} else if (trimQuery(req.url) === '/swagger-ui-init.js') {
} else if (trimQuery(req.url).endsWith('/swagger-ui-init.js')) {
res.set('Content-Type', 'application/javascript')

@@ -215,5 +215,5 @@ res.send(swaggerInit)

return function (req, res, next) {
if (trimQuery(req.url) === '/package.json') {
if (trimQuery(req.url).endsWith('/package.json')) {
res.sendStatus(404)
} else if (trimQuery(req.url) === '/swagger-ui-init.js') {
} else if (trimQuery(req.url).endsWith('/swagger-ui-init.js')) {
if (req.swaggerDoc) {

@@ -220,0 +220,0 @@ swaggerInitFile = jsTplString.toString().replace('<% swaggerOptions %>', stringify(opts))

{
"name": "swagger-ui-express",
"version": "4.4.0",
"version": "4.5.0",
"description": "Swagger UI Express",

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

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