hapi-router
Advanced tools
Comparing version 3.2.0 to 3.3.0
'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 @@ |
{ | ||
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5550
3
22
+ Addedcast-array@^1.0.0
+ Addedcast-array@1.0.1(transitive)
+ Addedisarray@0.0.1(transitive)