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

server-ready

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

server-ready - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

.babelrc

17

lib/index.js
'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 @@ },

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