Socket
Socket
Sign inDemoInstall

@wdio/types

Package Overview
Dependencies
Maintainers
3
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/types - npm Package Compare versions

Comparing version 7.7.7 to 7.8.0

33

build/Options.d.ts
/// <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)

4

package.json
{
"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

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