Socket
Socket
Sign inDemoInstall

ecstatic

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecstatic - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

404.html

3

ChangeLog.md

@@ -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

7

lib/ecstatic/showdir.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc