Socket
Socket
Sign inDemoInstall

restify-swagger-jsdoc

Package Overview
Dependencies
240
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

2

js/index.js

@@ -61,3 +61,3 @@ "use strict";

const jsonFileUrl = `${isReqSecure ? 'https' : 'http'}://${req.headers.host}${publicPath}/swagger.json`;
content = new Buffer(content.toString().replace('url: "https://petstore.swagger.io/v2/swagger.json"', `url: "${jsonFileUrl}"`));
content = Buffer.from(content.toString().replace('url: "https://petstore.swagger.io/v2/swagger.json"', `url: "${jsonFileUrl}"`));
}

@@ -64,0 +64,0 @@ const contentType = mime.lookup(file);

{
"name": "restify-swagger-jsdoc",
"version": "3.0.0",
"version": "3.0.1",
"description": "Create Swagger documentation page based on jsdoc",

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

"mocha": "^5.0.1",
"nyc": "^11.4.1",
"nyc": "^14.1.1",
"restify": "^7.2.2",

@@ -74,0 +74,0 @@ "sinon": "^4.3.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc