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 4.1.1 to 4.1.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

2019/04/27 Version 4.1.2
- Redirects bugfix
2019/04/20 Version 4.1.1

@@ -2,0 +5,0 @@ - Respect handleError for 400 and 500 errors

7

lib/ecstatic.js

@@ -23,3 +23,3 @@ #! /usr/bin/env node

return pieces.map((rawPiece) => {
return path.normalize(pieces.map((rawPiece) => {
const piece = decodeURIComponent(rawPiece);

@@ -32,3 +32,3 @@

return piece;
}).join('/');
}).join('/'));
}

@@ -393,4 +393,5 @@

// 302 to / if necessary
if (!parsed.pathname.match(/\/$/)) {
if (!pathname.match(/\/$/)) {
res.statusCode = 302;

@@ -397,0 +398,0 @@ const q = parsed.query ? `?${parsed.query}` : '';

@@ -5,3 +5,3 @@ {

"description": "A simple static file server middleware",
"version": "4.1.1",
"version": "4.1.2",
"homepage": "https://github.com/jfhbrook/node-ecstatic",

@@ -8,0 +8,0 @@ "repository": {

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