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

hyperquest-timeout

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperquest-timeout - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

1

index.js
function timeout(req, ms) {
var t = setTimeout(function() {
req.destroy();
req.emit('error', new Error('ETIMEDOUT: ' + ms + ' ms'));

@@ -4,0 +5,0 @@ }, ms);

2

package.json
{
"name": "hyperquest-timeout",
"version": "0.1.0",
"version": "1.0.0",
"description": "Timeout hyperquests!",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,3 @@ var http = require('http')

})
.listen(5000);
.listen(5000).unref()

@@ -33,4 +33,3 @@ test('hyperquest timesout', function(t) {

t.end();
setImmediate(process.exit); // closing server is being annoying!
}, 200);
});
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