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

inert

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inert - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

2

lib/etag.js

@@ -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:

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