Socket
Socket
Sign inDemoInstall

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.25.3 to 2.25.4

29

History.md

@@ -0,1 +1,30 @@

2.25.4 / 2014-08-10
===================
* Fix `query` middleware breaking with argument
- It never really took one in the first place
* deps: body-parser@~1.6.3
- deps: qs@1.2.1
* deps: compression@~1.0.11
- deps: on-headers@~1.0.0
- deps: parseurl@~1.3.0
* deps: connect-timeout@~1.2.2
- deps: on-headers@~1.0.0
* deps: express-session@~1.7.5
- Fix parsing original URL
- deps: on-headers@~1.0.0
- deps: parseurl@~1.3.0
* deps: method-override@~2.1.3
* deps: on-headers@~1.0.0
* deps: parseurl@~1.3.0
* deps: qs@1.2.1
* deps: response-time@~2.0.1
- deps: on-headers@~1.0.0
* deps: serve-index@~1.1.6
- Fix URL parsing
* deps: serve-static@~1.5.1
- Fix parsing of weird `req.originalUrl` values
- deps: parseurl@~1.3.0
= deps: utils-merge@1.0.0
2.25.3 / 2014-08-07

@@ -2,0 +31,0 @@ ===================

3

lib/middleware/cookieSession.js

@@ -12,2 +12,3 @@ /*!

var cookieParser = require('cookie-parser');
var parseUrl = require('parseurl');
var Cookie = require('express-session').Cookie

@@ -69,3 +70,3 @@ , debug = require('debug')('connect:cookieSession')

// pathname mismatch
var originalPath = url.parse(req.originalUrl).pathname;
var originalPath = parseUrl.original(req).pathname;
if (0 != originalPath.indexOf(cookie.path)) return next();

@@ -72,0 +73,0 @@

@@ -30,4 +30,2 @@ /*!

*
* The `options` passed are provided to qs.parse function.
*
* @param {Object} options

@@ -38,7 +36,7 @@ * @return {Function}

module.exports = function query(options){
module.exports = function query(){
return function query(req, res, next){
if (!req.query) {
req.query = ~req.url.indexOf('?')
? qs.parse(parseurl(req).query, options)
? qs.parse(parseurl(req).query)
: {};

@@ -45,0 +43,0 @@ }

{
"name": "connect",
"description": "High performance middleware framework",
"version": "2.25.3",
"version": "2.25.4",
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",

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

"basic-auth-connect": "1.0.0",
"body-parser": "~1.6.2",
"body-parser": "~1.6.3",
"bytes": "1.0.0",

@@ -27,4 +27,4 @@ "cookie": "0.1.2",

"cookie-signature": "1.0.4",
"compression": "~1.0.10",
"connect-timeout": "~1.2.1",
"compression": "~1.0.11",
"connect-timeout": "~1.2.2",
"csurf": "~1.4.0",

@@ -34,16 +34,16 @@ "debug": "1.0.4",

"errorhandler": "1.1.1",
"express-session": "~1.7.4",
"express-session": "~1.7.5",
"finalhandler": "0.1.0",
"fresh": "0.2.2",
"media-typer": "0.2.0",
"method-override": "~2.1.2",
"method-override": "~2.1.3",
"morgan": "~1.2.2",
"multiparty": "3.3.2",
"on-headers": "0.0.0",
"parseurl": "~1.2.0",
"qs": "1.2.0",
"response-time": "2.0.0",
"on-headers": "~1.0.0",
"parseurl": "~1.3.0",
"qs": "1.2.1",
"response-time": "~2.0.1",
"serve-favicon": "2.0.1",
"serve-index": "~1.1.5",
"serve-static": "~1.5.0",
"serve-index": "~1.1.6",
"serve-static": "~1.5.1",
"type-is": "~1.3.2",

@@ -50,0 +50,0 @@ "vhost": "2.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