@@ -76,3 +76,3 @@ 'use strict'; | ||
const source = { | ||
path: path, | ||
path, | ||
settings: options, | ||
@@ -85,3 +85,3 @@ stat: null, | ||
return request.generateResponse(source, { variety: 'file', marshal: internals.marshal, prepare: prepare, close: internals.close }); | ||
return request.generateResponse(source, { variety: 'file', marshal: internals.marshal, prepare, close: internals.close }); | ||
}; | ||
@@ -168,3 +168,3 @@ | ||
if (request.route.settings.response.ranges !== false) { // Backwards compatible comparison | ||
if (Hoek.reach(request.route.settings, 'response.ranges') !== false) { // Backwards compatible comparison | ||
if (request.headers.range && length) { | ||
@@ -171,0 +171,0 @@ |
{ | ||
"name": "inert", | ||
"description": "Static file and directory handlers plugin for hapi.js", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"repository": "git://github.com/hapijs/inert", | ||
@@ -22,3 +22,3 @@ "main": "lib/index.js", | ||
"items": "2.x.x", | ||
"joi": "8.x.x", | ||
"joi": "9.x.x", | ||
"lru-cache": "4.0.x" | ||
@@ -29,3 +29,3 @@ }, | ||
"hapi": "13.x.x", | ||
"lab": "10.x.x" | ||
"lab": "11.x.x" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%