Comparing version 4.0.3 to 4.0.4
@@ -36,2 +36,4 @@ 'use strict'; | ||
const paramName = /\w+/.exec(route.path.slice(route.path.lastIndexOf('{')))[0]; | ||
const normalize = (paths) => { | ||
@@ -81,3 +83,3 @@ | ||
const selection = request.paramsArray[request.paramsArray.length - 1]; | ||
const selection = request.params[paramName]; | ||
if (selection && | ||
@@ -84,0 +86,0 @@ !settings.showHidden && |
{ | ||
"name": "inert", | ||
"description": "Static file and directory handlers plugin for hapi.js", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"repository": "git://github.com/hapijs/inert", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"code": "4.x.x", | ||
"hapi": "15.x.x", | ||
"hapi": "16.x.x", | ||
"lab": "11.x.x" | ||
@@ -30,0 +30,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
32613
473