@types/wait-on
Advanced tools
Comparing version 4.0.0 to 5.2.0
@@ -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
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
5607
102