Skip to content

Commit

Permalink
Move lru-cache over. Closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Oct 22, 2014
1 parent eb8c332 commit b9cf3bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var Crypto = require('crypto');
var Boom = require('boom');
var Hoek = require('hoek');
var Joi = require('joi');
var LruCache = require('lru-cache');
var Mimos = require('mimos');


Expand Down Expand Up @@ -168,3 +169,6 @@ internals.openStream = function (response, path, callback) {
fileStream.once('error', onError);
fileStream.once('open', onOpen);
};


exports.Etags = LruCache;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "inert",
"description": "Static file and directory handlers for hapi.js",
"version": "1.0.0",
"version": "1.1.0",
"repository": "git://github.com/hapijs/inert",
"main": "index",
"keywords": [
Expand All @@ -18,7 +18,8 @@
"hoek": "2.x.x",
"items": "1.x.x",
"joi": "^4.7.x",
"mimos": "1.x.x"
"mimos": "1.x.x",
"lru-cache": "2.5.x"
},
"devDependencies": {
"hapi": "7.x.x",
Expand Down

0 comments on commit b9cf3bd

Please # to comment.