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

@types/wait-on

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/wait-on - npm Package Compare versions

Comparing version 4.0.0 to 5.2.0

52

wait-on/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for wait-on 4.0
// Type definitions for wait-on 5.2
// Project: https://github.com/jeffbski/wait-on#readme
// Definitions by: Ifiok Jr. <https://github.com/ifiokjr>
// Andrew Leedham <https://github.com/AndrewLeedham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -10,6 +11,3 @@ // TypeScript Version: 2.1

declare function waitOn(options: waitOn.WaitOnOptions): Promise<void>;
declare function waitOn(
options: waitOn.WaitOnOptions,
cb: (err: any) => void,
): void;
declare function waitOn(options: waitOn.WaitOnOptions, cb: (err: any) => void): void;

@@ -74,8 +72,15 @@ declare namespace waitOn {

* Https specific option.
* see https:// github.com/request/request#readme for specific details
* see https://github.com/request/request#readme for specific details
*/
auth?: WaitOnAuth;
httpSignature?: HttpSignature;
/**
* Validates whether a status is valid.
*/
validateStatus?: ValidateStatus;
/**
* Proxy options.
* see https://github.com/axios/axios#config-defaults
*/
proxy?: AxiosProxyConfig;
strictSSL?: boolean;
followAllRedirects?: boolean;
followRedirect?: boolean;

@@ -90,17 +95,18 @@ headers?: Record<string, any>;

type WaitOnAuth =
| {
username: string;
password: string;
}
| {
/**
* Alias of username
*/
user: string;
/**
* Alias of password
*/
pass: string;
};
interface WaitOnAuth {
username: string;
password: string;
}
type ValidateStatus = (status: number) => boolean;
interface AxiosProxyConfig {
host: string;
port: number;
auth?: {
username: string;
password: string;
};
protocol?: string;
}
}
{
"name": "@types/wait-on",
"version": "4.0.0",
"version": "5.2.0",
"description": "TypeScript definitions for wait-on",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "ifiokjr"
},
{
"name": "Andrew Leedham",
"url": "https://github.com/AndrewLeedham",
"githubUsername": "AndrewLeedham"
}

@@ -23,4 +28,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "c67f2ab0fb0e0d61a0e129fd359d0af0e7943a066935775e85ffad009008ecf7",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "c34af6c69329cd410c462c602c644f8471b7c2f25d0f2eca160e601e07f20418",
"typeScriptVersion": "3.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 14 Feb 2020 18:48:27 GMT
* Last updated: Mon, 09 Nov 2020 23:49:39 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Ifiok Jr.](https://github.com/ifiokjr).
These definitions were written by [Ifiok Jr.](https://github.com/ifiokjr), and [Andrew Leedham](https://github.com/AndrewLeedham).

Sorry, the diff of this file is not supported yet

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