New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-swagger-static

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-swagger-static - npm Package Compare versions

Comparing version

to
2.0.0-beta.5

2

package.json
{
"name": "hapi-swagger-static",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "A small companion plugin for `hapi-swagger` or `hapi-swaggered` providing a static html documentation page as hapi route",

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

@@ -71,2 +71,3 @@ # hapi-swagger-static

| `viewOptions` | `{}` | The options passed to the view via `h.view()`. If your default layout does not provide the Bootstrap 4 CSS resources (Bootstrap's JS is not needed), you should provide a special layout for your template. See the example below. |
| `o2hOptions` | `{}` | The options passed to `openapi2html`. Please refer to [openapi2html](https://github.com/frankthelen/openapi2html#options) for more information. |

@@ -73,0 +74,0 @@ ## View Example

@@ -19,2 +19,3 @@ const Promise = require('bluebird');

viewOptions = {},
o2hOptions = {},
}) => {

@@ -40,3 +41,3 @@ server.route({

});
const html = openapi2html(api);
const html = openapi2html(api, o2hOptions);
// the preferred way is to render the page via `view`

@@ -43,0 +44,0 @@ if (h.view && template) {