Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,4 @@ | ||
2015/03/01 Version 0.6.1 | ||
- Fix handleError fall-through with directory listings | ||
2015/02/16 Version 0.6.0 | ||
@@ -2,0 +5,0 @@ - Fix for pathname decoding in windows |
@@ -15,2 +15,3 @@ var ecstatic = require('../ecstatic'), | ||
humanReadable = opts.humanReadable, | ||
handleError = opts.handleError, | ||
si = opts.si; | ||
@@ -34,3 +35,3 @@ | ||
if (err) { | ||
return status[500](res, next, { error: err }); | ||
return handleError ? status[500](res, next, { error: err }) : next(); | ||
} | ||
@@ -41,3 +42,3 @@ | ||
if (err) { | ||
return status[500](res, next, { error: err }); | ||
return handleError ? status[500](res, next, { error: err }) : next(); | ||
} | ||
@@ -62,3 +63,3 @@ res.setHeader('content-type', 'text/html'); | ||
if (err) { | ||
return status[500](res, next, { error: err }); | ||
return handleError ? status[500](res, next, { error: err }) : next(); | ||
} | ||
@@ -65,0 +66,0 @@ dirs.unshift([ '..', s ]); |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"homepage": "https://github.com/jfhbrook/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
# Ecstatic [![build status](https://secure.travis-ci.org/jesusabdullah/node-ecstatic.png)](http://travis-ci.org/jesusabdullah/node-ecstatic) | ||
# Ecstatic [![build status](https://secure.travis-ci.org/jfhbrook/node-ecstatic.png)](http://travis-ci.org/jfhbrook/node-ecstatic) | ||
@@ -3,0 +3,0 @@ ![](http://imgur.com/vhub5.png) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
225162
20
622
3