Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-swagger

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-swagger - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

11

lib/index.js

@@ -88,3 +88,6 @@ var Hoek = require('hoek'),

method: 'GET',
path: '/docs/swaggerui/images/throbber.gif',
path: settings.endpoint + '/swaggerui/images/throbber.gif',
config: {
auth: settings.auth,
},
handler: function (request, reply) {

@@ -100,3 +103,3 @@ reply.file( __dirname + '/../public/swaggerui/images/throbber.gif');

config: {
auth:settings.auth,
auth: settings.auth,
},

@@ -772,3 +775,3 @@ handler: settings.customJSHandler,

internals.createModel = function (name, params, models) {
return model = {
return {
"id": name,

@@ -842,2 +845,2 @@ "type": "object",

exports._internals = internals;
exports._internals = internals;
{
"name": "hapi-swagger",
"description": "A swagger documentation UI generator plugin for hapi",
"version": "0.8.1",
"version": "0.8.2",
"author": "Glenn Jones",

@@ -17,10 +17,10 @@ "repository": {

"engines": {
"node": "0.10.x"
"node": ">=0.10.0"
},
"dependencies": {
"handlebars": "1.3.x",
"boom": "2.7.x",
"hoek": "2.12.x",
"joi": "6.1.x",
"shortid": "2.1.x"
"boom": "2.x",
"hoek": "2.x",
"joi": "6.6.x",
"shortid": "2.2.x"
},

@@ -37,4 +37,4 @@ "devDependencies": {

"peerDependencies": {
"hapi": ">= 8.x.x < 9"
"hapi": ">= 8 < 9"
}
}

@@ -1302,3 +1302,4 @@ // swagger.js

if (typeof window !== 'undefined')
this._btoa = btoa;
// Changed to 'btoa.bind(window)' from 'btoa' as part of fix for #138 hapi-swagger Glenn Jones 10 Aug 2015
this._btoa = btoa.bind(window);
else

@@ -1305,0 +1306,0 @@ this._btoa = require("btoa");

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