Comparing version 4.2.0 to 4.2.1
@@ -74,3 +74,3 @@ 'use strict'; | ||
if (err) { | ||
return callback(Boom.wrap(err, null, 'Failed to hash file')); | ||
return callback(Boom.boomify(err, { message: 'Failed to hash file' })); | ||
} | ||
@@ -77,0 +77,0 @@ |
@@ -37,3 +37,3 @@ 'use strict'; | ||
return callback(Boom.wrap(err, null, 'Failed to open file')); | ||
return callback(Boom.boomify(err, { message: 'Failed to open file' })); | ||
} | ||
@@ -65,3 +65,3 @@ | ||
this.close(this.fd); | ||
return callback(Boom.wrap(err, null, 'Failed to stat file')); | ||
return callback(Boom.boomify(err, { message: 'Failed to stat file' })); | ||
} | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "inert", | ||
"description": "Static file and directory handlers plugin for hapi.js", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"repository": "git://github.com/hapijs/inert", | ||
@@ -19,7 +19,7 @@ "main": "lib/index.js", | ||
"ammo": "2.x.x", | ||
"boom": "4.x.x", | ||
"boom": "5.x.x", | ||
"hoek": "4.x.x", | ||
"items": "2.x.x", | ||
"joi": "10.x.x", | ||
"lru-cache": "4.0.x" | ||
"lru-cache": "4.1.x" | ||
}, | ||
@@ -29,3 +29,3 @@ "devDependencies": { | ||
"hapi": "16.x.x", | ||
"lab": "13.x.x" | ||
"lab": "14.x.x" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -164,3 +164,3 @@ # inert | ||
- `lookupMap` - an `object` which maps content encoding to expected file name extension. | ||
Defaults to `{ gzip: '.gz' }. | ||
Defaults to `{ gzip: '.gz' }`. | ||
- `etagMethod` - specifies the method used to calculate the `ETag` header response. | ||
@@ -205,3 +205,3 @@ Available values: | ||
- `lookupMap` - an `object` which maps content encoding to expected file name extension. | ||
Defaults to `{ gzip: '.gz' }. | ||
Defaults to `{ gzip: '.gz' }`. | ||
- `etagMethod` - specifies the method used to calculate the `ETag` header response. | ||
@@ -251,4 +251,6 @@ Available values: | ||
- `lookupCompressed` - optional boolean, instructs the file processor to look for the same | ||
filename with the '.gz' suffix for a pre-compressed version of the file to serve if the | ||
request supports content encoding. Defaults to `false`. | ||
filename with an extension, depending on the accepted encoding, for a pre-compressed | ||
version of the file to serve. Defaults to `false`. | ||
- `lookupMap` - an `object` which maps content encoding to expected file name extension. | ||
Defaults to `{ gzip: '.gz' }`. | ||
- `etagMethod` - specifies the method used to calculate the `ETag` header response. | ||
@@ -255,0 +257,0 @@ Available values: |
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
35225
20173
262
+ Addedlru-cache@4.1.5(transitive)
- Removedboom@4.3.1(transitive)
- Removedlru-cache@4.0.2(transitive)
Updatedboom@5.x.x
Updatedlru-cache@4.1.x