Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect

Package Overview
Dependencies
Maintainers
4
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect - npm Package Compare versions

Comparing version 2.26.4 to 2.26.5

7

History.md

@@ -0,1 +1,8 @@

2.26.5 / 2014-10-08
===================
* Fix accepting non-object arguments to `logger`
* deps: serve-static@~1.6.4
- Fix redirect loop when index file serving disabled
2.26.4 / 2014-10-02

@@ -2,0 +9,0 @@ ===================

14

lib/middleware/logger.js

@@ -38,9 +38,15 @@ /*!

module.exports = function logger(options) {
var opts = utils.merge({
format: 'default'
}, options);
var format = 'default';
var opts = options;
return morgan(opts.format, opts);
if (options && typeof options === 'object') {
format = options.format || format;
} else {
format = options || format;
opts = undefined;
}
return morgan(format, opts);
};
utils.merge(module.exports, morgan);
{
"name": "connect",
"description": "High performance middleware framework",
"version": "2.26.4",
"version": "2.26.5",
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",

@@ -45,3 +45,3 @@ "contributors": [

"serve-index": "~1.2.1",
"serve-static": "~1.6.3",
"serve-static": "~1.6.4",
"type-is": "~1.5.2",

@@ -48,0 +48,0 @@ "vhost": "~3.0.0",

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