[Pkg-javascript-commits] [node-connect-static] 01/03: Imported Upstream version 1.2.1
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Tue Jul 1 15:55:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to branch master
in repository node-connect-static.
commit 686cccf77e8e3dbbf5cd23676875078b57b32781
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Tue Jul 1 15:53:50 2014 +0000
Imported Upstream version 1.2.1
---
index.js | 4 ++++
package.json | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 928d5dc..1b59ff6 100644
--- a/index.js
+++ b/index.js
@@ -21,6 +21,10 @@ function createGzipStaticMiddleware(options, cb) {
var cache = {};
var pend = new Pend();
var walker = findit(dir);
+ walker.on('error', function(err) {
+ walker.stop();
+ cb(err);
+ });
walker.on('file', function(file, stat) {
if (ignoreFile(file)) return;
var relName = '/' + path.relative(dir, file);
diff --git a/package.json b/package.json
index 12b6a8e..2cb2096 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "connect-static",
- "version": "1.2.0",
+ "version": "1.2.1",
"description": "static file server middleware for connect. loads files once at startup and saves gzipped versions in memory",
"main": "index.js",
"scripts": {
@@ -18,7 +18,7 @@
"homepage": "https://github.com/andrewrk/connect-static",
"dependencies": {
"bl": "~0.8.2",
- "findit": "~1.1.1",
+ "findit": "~2.0.0",
"mime": "~1.2.11",
"pend": "~1.1.1"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-connect-static.git
More information about the Pkg-javascript-commits
mailing list