Comparing version 0.0.5 to 0.0.6
11
index.js
@@ -66,7 +66,8 @@ var send = require("send"), | ||
return send(req, filePath) | ||
.maxage(filePath == req.url ? 0 : 1000 * 60 * 60 * 24 * 365) | ||
.index(options.index || "index.html") | ||
.hidden(options.hidden) | ||
.root(root) | ||
return send(req, filePath,{ | ||
maxage: filePath == req.url ? 0 : 1000 * 60 * 60 * 24 * 365, | ||
index: options.index || "index.html", | ||
ignore: options.hidden, | ||
root: root | ||
}); | ||
} | ||
@@ -73,0 +74,0 @@ |
{ | ||
"name": "staticify", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A better static asset handler for node.js", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"send": "~0.2.0" | ||
"send": "~0.11.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
10041
174
+ Addedcrc@3.2.1(transitive)
+ Addeddebug@2.1.3(transitive)
+ Addeddepd@1.0.1(transitive)
+ Addeddestroy@1.0.3(transitive)
+ Addedee-first@1.1.0(transitive)
+ Addedescape-html@1.0.1(transitive)
+ Addedetag@1.5.1(transitive)
+ Addedms@0.7.0(transitive)
+ Addedon-finished@2.2.1(transitive)
+ Addedsend@0.11.1(transitive)
- Removeddebug@4.4.0(transitive)
- Removedms@2.1.3(transitive)
- Removedsend@0.2.0(transitive)
Updatedsend@~0.11.1