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

wait-for-localhost

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-for-localhost - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

13

index.d.ts

@@ -5,10 +5,19 @@ declare namespace waitForLocalhost {

@default 80
*/
*/
port?: number;
/**
Use a custom path.
For example, `/health` for a health-check endpoint.
@default '/'
*/
path?: string;
/**
Use the `GET` HTTP-method instead of `HEAD` to check if the server is running.
@default false
*/
*/
useGet?: boolean;

@@ -15,0 +24,0 @@ }

2

index.js

@@ -13,3 +13,3 @@ 'use strict';

const main = () => {
const request = http.request({method, port: options.port}, response => {
const request = http.request({method, port: options.port, path: options.path}, response => {
if (response.statusCode === 200) {

@@ -16,0 +16,0 @@ return resolve();

{
"name": "wait-for-localhost",
"version": "3.2.0",
"version": "3.3.0",
"description": "Wait for localhost to be ready",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -42,2 +42,11 @@ # wait-for-localhost [![Build Status](https://travis-ci.org/sindresorhus/wait-for-localhost.svg?branch=master)](https://travis-ci.org/sindresorhus/wait-for-localhost)

##### path
Type: `string`<br>
Default: `'/'`
Use a custom path.
For example, `/health` for a health-check endpoint.
##### useGet

@@ -44,0 +53,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