server-ready
Advanced tools
Comparing version 0.3.0 to 0.3.1
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = serverReady; | ||
var net = require('net'); | ||
@@ -11,4 +7,3 @@ var once = require('once'); | ||
// default timeout (20s) | ||
serverReady.timeout = 20 * 1000; | ||
module.exports = serverReady; | ||
@@ -20,9 +15,8 @@ // The following params are accepted: | ||
// port, host, timeout, cb | ||
function serverReady(port) { | ||
var start = new Date(); | ||
var timeout = serverReady.timeout; | ||
var host = undefined, | ||
hostOrTimeout = undefined, | ||
cb = undefined; | ||
var host = void 0, | ||
hostOrTimeout = void 0, | ||
cb = void 0; | ||
@@ -83,2 +77,3 @@ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
module.exports = exports['default']; | ||
// default timeout (20s) | ||
serverReady.timeout = 20 * 1000; |
{ | ||
"name": "server-ready", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Know when a server is ready to receive requests", | ||
@@ -29,2 +29,4 @@ "main": "lib/index.js", | ||
"babel": "^6.5.2", | ||
"babel-cli": "^6.14.0", | ||
"babel-preset-es2015": "^6.14.0", | ||
"tape": "^4.0.1" | ||
@@ -31,0 +33,0 @@ }, |
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
8
5845
4
103