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.6 to 2.27.0

49

History.md

@@ -0,1 +1,50 @@

2.27.0 / 2014-10-16
===================
* Use `http-errors` module for creating errors
* Use `utils-merge` module for merging objects
* deps: body-parser@~1.9.0
- include the charset in "unsupported charset" error message
- include the encoding in "unsupported content encoding" error message
- deps: depd@~1.0.0
* deps: compression@~1.2.0
- deps: debug@~2.1.0
* deps: connect-timeout@~1.4.0
- Create errors with `http-errors`
- deps: debug@~2.1.0
* deps: debug@~2.1.0
- Implement `DEBUG_FD` env variable support
* deps: depd@~1.0.0
* deps: express-session@~1.9.0
- deps: debug@~2.1.0
- deps: depd@~1.0.0
* deps: finalhandler@0.3.1
- Terminate in progress response only on error
- Use `on-finished` to determine request status
- deps: debug@~2.1.0
* deps: method-override@~2.3.0
- deps: debug@~2.1.0
* deps: morgan@~1.4.0
- Add `debug` messages
- deps: depd@~1.0.0
* deps: response-time@~2.2.0
- Add `header` option for custom header name
- Add `suffix` option
- Change `digits` argument to an `options` argument
- deps: depd@~1.0.0
* deps: serve-favicon@~2.1.6
- deps: etag@~1.5.0
* deps: serve-index@~1.5.0
- Add `dir` argument to `filter` function
- Add icon for mkv files
- Create errors with `http-errors`
- Fix incorrect 403 on Windows and Node.js 0.11
- Lookup icon by mime type for greater icon support
- Support using tokens multiple times
- deps: accepts@~1.1.2
- deps: debug@~2.1.0
- deps: mime-types@~2.0.2
* deps: serve-static@~1.7.0
- deps: send@0.10.0
2.26.6 / 2014-10-15

@@ -2,0 +51,0 @@ ===================

5

lib/connect.js

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

, fs = require('fs');
var merge = require('utils-merge');

@@ -68,4 +69,4 @@ // node patches

function app(req, res, next){ app.handle(req, res, next); }
utils.merge(app, proto);
utils.merge(app, EventEmitter.prototype);
merge(app, proto);
merge(app, EventEmitter.prototype);
app.route = '/';

@@ -72,0 +73,0 @@ app.stack = [];

4

lib/middleware/json.js

@@ -15,3 +15,3 @@

var deprecate = require('depd')('connect');
var utils = require('../utils');
var merge = require('utils-merge');

@@ -29,3 +29,3 @@ /**

module.exports = function json(options) {
var opts = utils.merge({
var opts = merge({
limit: '1mb',

@@ -32,0 +32,0 @@ type: ['application/json', 'application/*+json']

@@ -12,2 +12,3 @@

var createError = require('http-errors');
var deprecate = require('depd')('connect');

@@ -56,3 +57,3 @@ var parseBytes = require('bytes');

// limit by content-length
if (len && len > bytes) return next(utils.error(413));
if (len && len > bytes) return next(createError(413));

@@ -59,0 +60,0 @@ // limit

@@ -13,3 +13,3 @@ /*!

var morgan = require('morgan');
var utils = require('../utils');
var merge = require('utils-merge');

@@ -52,2 +52,2 @@ /**

utils.merge(module.exports, morgan);
merge(module.exports, morgan);

@@ -13,3 +13,3 @@ /*!

var expressSession = require('express-session');
var utils = require('../utils');
var merge = require('utils-merge');

@@ -29,3 +29,3 @@ /**

module.exports = exports = function session(options) {
var opts = utils.merge({
var opts = merge({
resave: true,

@@ -32,0 +32,0 @@ saveUninitialized: true

@@ -17,2 +17,3 @@

, fresh = require('fresh');
var merge = require('utils-merge');

@@ -161,3 +162,3 @@ /**

var status = cacheEntry[0]
, headers = utils.merge({}, cacheEntry[1])
, headers = merge({}, cacheEntry[1])
, content = cacheEntry.slice(2);

@@ -164,0 +165,0 @@

@@ -14,3 +14,3 @@ /*!

var deprecate = require('depd')('connect');
var utils = require('../utils');
var merge = require('utils-merge');

@@ -28,3 +28,3 @@ /**

module.exports = function urlencoded(options) {
var opts = utils.merge({
var opts = merge({
extended: true,

@@ -31,0 +31,0 @@ limit: '1mb'

@@ -15,2 +15,3 @@

var http = require('http');
var merge = require('utils-merge');
var onHeaders = require('on-headers');

@@ -75,3 +76,3 @@ var utils = require('./utils')

res.cookie = function(name, val, options){
options = utils.merge({}, options);
options = merge({}, options);
if ('maxAge' in options) {

@@ -78,0 +79,0 @@ options.expires = new Date(Date.now() + options.maxAge);

@@ -104,4 +104,4 @@ /*!

var stack = this.stack
, search = 1 + req.url.indexOf('?')
, pathlength = search ? search - 1 : req.url.length
, searchIndex = req.url.indexOf('?')
, pathlength = searchIndex !== -1 ? searchIndex : req.url.length
, fqdn = 1 + req.url.substr(0, pathlength).indexOf('://')

@@ -108,0 +108,0 @@ , protohost = fqdn ? req.url.substr(0, req.url.indexOf('/', 2 + fqdn)) : ''

@@ -15,2 +15,3 @@

var cookieParser = require('cookie-parser');
var createError = require('http-errors');
var deprecate = require('depd')('connect');

@@ -25,2 +26,3 @@ var http = require('http')

var typer = require('media-typer');
var merge = require('utils-merge');

@@ -78,2 +80,5 @@ /**

exports.error = deprecate.function(exports.error,
'utils.error: use http-errors npm module instead');
/**

@@ -117,10 +122,4 @@ * Return md5 hash of the given string and optional encoding,

exports.merge = function(a, b){
if (a && b) {
for (var key in b) {
a[key] = b[key];
}
}
return a;
};
exports.merge = deprecate.function(merge,
'utils.merge: use utils-merge npm module instead');

@@ -127,0 +126,0 @@ /**

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

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

"basic-auth-connect": "1.0.0",
"body-parser": "~1.8.4",
"body-parser": "~1.9.0",
"bytes": "1.0.0",

@@ -27,14 +27,15 @@ "cookie": "0.1.2",

"cookie-signature": "1.0.5",
"compression": "~1.1.2",
"connect-timeout": "~1.3.0",
"compression": "~1.2.0",
"connect-timeout": "~1.4.0",
"csurf": "~1.6.2",
"debug": "~2.0.0",
"depd": "0.4.5",
"debug": "~2.1.0",
"depd": "~1.0.0",
"errorhandler": "~1.2.2",
"express-session": "~1.8.2",
"finalhandler": "0.2.0",
"express-session": "~1.9.0",
"finalhandler": "0.3.1",
"fresh": "0.2.4",
"http-errors": "~1.2.7",
"media-typer": "0.3.0",
"method-override": "~2.2.0",
"morgan": "~1.3.2",
"method-override": "~2.3.0",
"morgan": "~1.4.0",
"multiparty": "3.3.2",

@@ -44,7 +45,8 @@ "on-headers": "~1.0.0",

"qs": "2.2.4",
"response-time": "~2.0.1",
"serve-favicon": "~2.1.5",
"serve-index": "~1.2.1",
"serve-static": "~1.6.4",
"response-time": "~2.2.0",
"serve-favicon": "~2.1.6",
"serve-index": "~1.5.0",
"serve-static": "~1.7.0",
"type-is": "~1.5.2",
"utils-merge": "1.0.0",
"vhost": "~3.0.0",

@@ -51,0 +53,0 @@ "pause": "0.0.1"

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