@wdio/types
Advanced tools
Comparing version 7.7.7 to 7.8.0
/// <reference types="node" /> | ||
import * as got from 'got'; | ||
import * as http from 'http'; | ||
import * as https from 'https'; | ||
import type { RegisterOptions } from 'ts-node'; | ||
import type { URL } from 'url'; | ||
import { W3CCapabilities, DesiredCapabilities, RemoteCapabilities, RemoteCapability, MultiRemoteCapabilities, Capabilities } from './Capabilities'; | ||
@@ -11,2 +11,29 @@ import { Hooks, ServiceEntry } from './Services'; | ||
export declare type SupportedProtocols = 'webdriver' | 'devtools' | './protocol-stub'; | ||
export declare type Agents = { | ||
http?: any; | ||
https?: any; | ||
}; | ||
export interface RequestLibOptions { | ||
agent?: Agents | null; | ||
followRedirect?: boolean; | ||
headers?: Record<string, unknown>; | ||
https?: Record<string, unknown>; | ||
json?: Record<string, unknown>; | ||
method?: string; | ||
responseType?: string; | ||
retry?: number; | ||
searchParams?: Record<string, unknown>; | ||
throwHttpErrors?: boolean; | ||
timeout?: number; | ||
url?: URL; | ||
path?: string; | ||
username?: string; | ||
password?: string; | ||
body?: any; | ||
} | ||
export interface RequestLibResponse { | ||
statusCode: number; | ||
body?: any; | ||
rawBody?: Buffer; | ||
} | ||
/** | ||
@@ -149,7 +176,7 @@ * WebdriverIO allows to connect to different WebDriver endpoints by capability | ||
*/ | ||
transformRequest?: (requestOptions: got.Options) => got.Options; | ||
transformRequest?: (requestOptions: RequestLibOptions) => RequestLibOptions; | ||
/** | ||
* Function intercepting HTTP response objects after a WebDriver response has arrived. | ||
*/ | ||
transformResponse?: (response: got.Response, requestOptions: got.Options) => got.Response; | ||
transformResponse?: (response: RequestLibResponse, requestOptions: RequestLibOptions) => RequestLibResponse; | ||
/** | ||
@@ -156,0 +183,0 @@ * Appium direct connect options (see: https://appiumpro.com/editions/86-connecting-directly-to-appium-hosts-in-distributed-environments) |
{ | ||
"name": "@wdio/types", | ||
"version": "7.7.7", | ||
"version": "7.8.0", | ||
"description": "Utility package providing type information for a variety of WebdriverIO interfaces", | ||
@@ -35,3 +35,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "9ac9bc9eaa7ab439a0225163e0e61740a77235f1" | ||
"gitHead": "5e3cd46dc8917eab29b29dbc202bac6acb8fa915" | ||
} |
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
97217
1801