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

hapi-router

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-router - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

11

lib/index.js
'use strict'
var glob = require('glob')
var castArray = require('cast-array')

@@ -13,11 +14,3 @@ exports.register = function (server, options, next) {

var patterns = []
if (options.routes.constructor === Array) {
patterns = options.routes
} else {
patterns = [ options.routes ]
}
patterns.forEach(function (pattern) {
castArray(options.routes).forEach(function (pattern) {
var files = glob.sync(pattern, globOptions)

@@ -24,0 +17,0 @@

3

package.json
{
"name": "hapi-router",
"version": "3.2.0",
"version": "3.3.0",
"description": "Opinionated route loader for hapi",

@@ -37,4 +37,5 @@ "main": "./lib",

"dependencies": {
"cast-array": "^1.0.0",
"glob": "^5.0.3"
}
}
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