connect-timeout
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -0,1 +1,9 @@ | ||
1.9.0 / 2017-05-16 | ||
================== | ||
* deps: http-errors@~1.6.1 | ||
- Make `message` property enumerable for `HttpError`s | ||
- deps: setprototypeof@1.0.3 | ||
* deps: ms@2.0.0 | ||
1.8.0 / 2016-11-21 | ||
@@ -2,0 +10,0 @@ ================== |
23
index.js
@@ -12,2 +12,3 @@ /*! | ||
* Module dependencies. | ||
* @private | ||
*/ | ||
@@ -22,2 +23,3 @@ | ||
* Module exports. | ||
* @public | ||
*/ | ||
@@ -28,10 +30,9 @@ | ||
/** | ||
* Timeout: | ||
* Create a new timeout middleware. | ||
* | ||
* See README.md for documentation. | ||
* | ||
* @param {Number} time | ||
* @param {Object} options | ||
* @return {Function} middleware | ||
* @api public | ||
* @param {number|string} [time=5000] The timeout as a number of milliseconds or a string for `ms` | ||
* @param {object} [options] Additional options for middleware | ||
* @param {boolean} [options.respond=true] Automatically emit error when timeout reached | ||
* @return {function} middleware | ||
* @public | ||
*/ | ||
@@ -76,2 +77,10 @@ | ||
/** | ||
* Create timeout listener function. | ||
* | ||
* @param {number} delay | ||
* @param {function} cb | ||
* @private | ||
*/ | ||
function onTimeout (delay, cb) { | ||
@@ -78,0 +87,0 @@ return function () { |
{ | ||
"name": "connect-timeout", | ||
"description": "Request timeout middleware for Connect/Express", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"contributors": [ | ||
@@ -12,4 +12,4 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"dependencies": { | ||
"http-errors": "~1.5.1", | ||
"ms": "0.7.2", | ||
"http-errors": "~1.6.1", | ||
"ms": "2.0.0", | ||
"on-finished": "~2.3.0", | ||
@@ -19,7 +19,9 @@ "on-headers": "~1.0.1" | ||
"devDependencies": { | ||
"eslint": "3.10.2", | ||
"eslint-config-standard": "6.2.1", | ||
"eslint-plugin-markdown": "1.0.0-beta.3", | ||
"eslint-plugin-promise": "3.4.0", | ||
"eslint-plugin-standard": "2.0.1", | ||
"eslint": "3.19.0", | ||
"eslint-config-standard": "10.2.1", | ||
"eslint-plugin-import": "2.2.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.6", | ||
"eslint-plugin-node": "4.2.2", | ||
"eslint-plugin-promise": "3.5.0", | ||
"eslint-plugin-standard": "3.0.1", | ||
"istanbul": "0.4.5", | ||
@@ -26,0 +28,0 @@ "mocha": "2.5.3", |
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
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
11783
71
10
+ Addeddepd@1.1.2(transitive)
+ Addedhttp-errors@1.6.3(transitive)
+ Addedms@2.0.0(transitive)
+ Addedsetprototypeof@1.1.0(transitive)
- Removedhttp-errors@1.5.1(transitive)
- Removedms@0.7.2(transitive)
- Removedsetprototypeof@1.0.2(transitive)
Updatedhttp-errors@~1.6.1
Updatedms@2.0.0