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

hapi-route-directory

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-route-directory - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

13

lib/index.js

@@ -7,6 +7,15 @@ var _ = require('lodash');

internals.path = options.path || '/';
// allow supplying options.auth=false or other auth scheme
// to override a default auth scheme
internals.config = {};
if(typeof options.auth !== 'undefined'){
internals.config.auth = options.auth;
}
plugin.servers.forEach(function (server) {
plugin.route({method: 'GET', path: internals.path, handler: function(request, reply) {
plugin.route({
method: 'GET',
path: internals.path,
config: internals.config,
handler: function(request, reply) {

@@ -13,0 +22,0 @@ var apiDirectory = {methods: {}, paths: []};

2

package.json
{
"name": "hapi-route-directory",
"version": "0.0.3",
"version": "0.0.4",
"description": "A route directory for HAPI",

@@ -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