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

connect-timeout

Package Overview
Dependencies
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-timeout - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

8

HISTORY.md

@@ -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",

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