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

inert

Package Overview
Dependencies
Maintainers
2
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 3.0.2 to 3.1.0

.eslintignore

4

lib/index.js

@@ -35,3 +35,5 @@ // Load modules

exports.register.attributes = {
pkg: require('../package.json')
pkg: require('../package.json'),
connections: false,
once: true
};
{
"name": "inert",
"description": "Static file and directory handlers plugin for hapi.js",
"version": "3.0.2",
"version": "3.1.0",
"repository": "git://github.com/hapijs/inert",

@@ -22,15 +22,17 @@ "main": "lib/index.js",

"items": "1.x.x",
"joi": "6.x.x",
"lru-cache": "2.6.x"
"joi": "^6.7.x",
"lru-cache": "2.7.x"
},
"devDependencies": {
"code": "1.x.x",
"hapi": "9.x.x",
"lab": "5.x.x"
"hapi": "10.x.x",
"hapi-lts": "9.x.x",
"lab": "6.x.x",
"semver": "5.x.x"
},
"scripts": {
"test": "lab -a code -t 100 -L",
"test-cov-html": "lab -a code -r html -o coverage.html"
"test": "lab -f -a code -t 100 -L",
"test-cov-html": "lab -f -a code -r html -o coverage.html"
},
"license": "BSD-3-Clause"
}

@@ -8,3 +8,3 @@ // Load modules

var Code = require('code');
var Hapi = require('hapi');
var Hapi = require('./helpers/hapi');
var Hoek = require('hoek');

@@ -11,0 +11,0 @@ var Inert = require('..');

@@ -9,3 +9,3 @@ // Load modules

var Code = require('code');
var Hapi = require('hapi');
var Hapi = require('./helpers/hapi');
var Hoek = require('hoek');

@@ -12,0 +12,0 @@ var Inert = require('..');

// Load modules
var Code = require('code');
var Hapi = require('hapi');
var Hapi = require('./helpers/hapi');
var Hoek = require('hoek');

@@ -28,3 +28,3 @@ var Inert = require('..');

var server = new Hapi.Server();
server.connection();
server.connection({ routes: { files: { relativeTo: __dirname } } });
server.register(Inert, Hoek.ignore);

@@ -37,3 +37,2 @@ return server;

var server = provisionServer();
server.connection();
server.route({ method: 'GET', path: '/{path*}', handler: { directory: { path: './directory' } } });

@@ -40,0 +39,0 @@

Sorry, the diff of this file is not supported yet

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