restify-swagger-jsdoc
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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
14974
8