Comparing version 3.0.2 to 3.1.0
@@ -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
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
382496
28
1970
5
+ Addedlru-cache@2.7.3(transitive)
- Removedlru-cache@2.6.5(transitive)
Updatedjoi@^6.7.x
Updatedlru-cache@2.7.x