hyperquest-timeout
Advanced tools
Comparing version 0.1.0 to 1.0.0
function timeout(req, ms) { | ||
var t = setTimeout(function() { | ||
req.destroy(); | ||
req.emit('error', new Error('ETIMEDOUT: ' + ms + ' ms')); | ||
@@ -4,0 +5,0 @@ }, ms); |
{ | ||
"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); | ||
}); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
2152