Comparing version 2.26.6 to 2.27.0
@@ -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 @@ =================== |
@@ -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 = []; |
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174735
2586
31
12
+ Addedhttp-errors@~1.2.7
+ Addedutils-merge@1.0.0
+ Addedbody-parser@1.9.3(transitive)
+ Addedcompression@1.2.2(transitive)
+ Addedconnect-timeout@1.4.0(transitive)
+ Addeddebug@2.1.32.6.9(transitive)
+ Addeddepd@1.0.1(transitive)
+ Addedee-first@1.1.0(transitive)
+ Addedexpress-session@1.9.3(transitive)
+ Addedfinalhandler@0.3.1(transitive)
+ Addediconv-lite@0.4.5(transitive)
+ Addedmethod-override@2.3.10(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addedmorgan@1.4.1(transitive)
+ Addedms@0.7.02.0.0(transitive)
+ Addedon-finished@2.1.1(transitive)
+ Addedqs@2.3.3(transitive)
+ Addedraw-body@1.3.1(transitive)
+ Addedresponse-time@2.2.0(transitive)
+ Addedsend@0.10.1(transitive)
+ Addedserve-index@1.5.3(transitive)
+ Addedserve-static@1.7.2(transitive)
+ Addedvary@1.1.2(transitive)
- Removedbody-parser@1.8.4(transitive)
- Removedcompression@1.1.2(transitive)
- Removedconnect-timeout@1.3.0(transitive)
- Removedcrc@3.0.0(transitive)
- Removeddebug@2.0.0(transitive)
- Removeddepd@0.4.5(transitive)
- Removedee-first@1.0.5(transitive)
- Removedetag@1.4.0(transitive)
- Removedexpress-session@1.8.2(transitive)
- Removedfinalhandler@0.2.0(transitive)
- Removediconv-lite@0.4.4(transitive)
- Removedmethod-override@2.2.0(transitive)
- Removedmethods@1.1.0(transitive)
- Removedmorgan@1.3.2(transitive)
- Removedon-finished@2.1.0(transitive)
- Removedraw-body@1.3.0(transitive)
- Removedresponse-time@2.0.1(transitive)
- Removedsend@0.9.3(transitive)
- Removedserve-index@1.2.1(transitive)
- Removedserve-static@1.6.5(transitive)
Updatedbody-parser@~1.9.0
Updatedcompression@~1.2.0
Updatedconnect-timeout@~1.4.0
Updateddebug@~2.1.0
Updateddepd@~1.0.0
Updatedexpress-session@~1.9.0
Updatedfinalhandler@0.3.1
Updatedmethod-override@~2.3.0
Updatedmorgan@~1.4.0
Updatedresponse-time@~2.2.0
Updatedserve-favicon@~2.1.6
Updatedserve-index@~1.5.0
Updatedserve-static@~1.7.0