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 2.2.1 to 2.2.2

.nyc_output/00681268d969b64c0bfa910b92cee032.json

3

CHANGELOG.md

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

2019/05/03 Version 2.2.2
- Backport redirects bugfix
2017/06/06 Version 2.2.1

@@ -2,0 +5,0 @@ - Fix version number in CHANGELOG.md

6

lib/ecstatic.js

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

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

@@ -388,3 +388,3 @@ res.setHeader('location', parsed.pathname + '/' +

return pieces.map(function (piece) {
return path.normalize(pieces.map(function (piece) {
piece = decodeURIComponent(piece);

@@ -397,3 +397,3 @@

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

@@ -400,0 +400,0 @@

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

"description": "A simple static file server middleware that works with both Express and Flatiron",
"version": "2.2.1",
"version": "2.2.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