New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-settimeout

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-settimeout - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

index.js

@@ -11,5 +11,8 @@ module.exports = function(cb, duration, options){

}, duration);
res.on('finish', function(evt){
function onEnd() {
clearTimeout(res.connectSetTimeouts[timeoutName]);
});
}
res.on('finish', onEnd);
res.on('close', onEnd);
next();

@@ -16,0 +19,0 @@ };

{
"name": "connect-settimeout",
"version": "0.0.1",
"version": "0.0.2",
"description": "a connect middleware that runs a provided function if a request lasts longer than a given duration",

@@ -39,4 +39,3 @@ "main": "index.js",

"homepage": "https://github.com/cainus/connect-settimeout",
"dependencies": {
}
"dependencies": {}
}

Sorry, the diff of this file is not supported yet

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