Socket
Socket
Sign inDemoInstall

@wdio/types

Package Overview
Dependencies
Maintainers
3
Versions
172
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 8.32.4 to 9.0.0-alpha.0

build/Automation.d.ts

2

build/Capabilities.d.ts

@@ -123,3 +123,3 @@ import type { WebdriverIO as WebDriverIOOptions, Connection as ConnectionOptions } from './Options.js';

}
export interface VendorExtensions extends EdgeCapabilities, AppiumCapabilities, WebdriverIO.WDIODevtoolsOptions, WebdriverIOCapabilities, WebdriverIO.WDIOVSCodeServiceOptions {
export interface VendorExtensions extends EdgeCapabilities, AppiumCapabilities, WebdriverIOCapabilities, WebdriverIO.WDIOVSCodeServiceOptions {
'selenoid:options'?: SelenoidOptions;

@@ -126,0 +126,0 @@ 'moon:options'?: MoonOptions;

@@ -0,1 +1,2 @@

import type * as Automation from './Automation.js';
import type * as Capabilities from './Capabilities.js';

@@ -12,3 +13,3 @@ import type * as Clients from './Clients.js';

export { MESSAGE_TYPES } from './Workers.js';
export type { Capabilities, Clients, Options, Services, Frameworks, Reporters, Workers };
export type { Automation, Capabilities, Clients, Options, Services, Frameworks, Reporters, Workers };
export type JsonPrimitive = string | number | boolean | null;

@@ -58,4 +59,2 @@ export type JsonObject = {

}
interface WDIODevtoolsOptions {
}
interface WDIOVSCodeServiceOptions {

@@ -62,0 +61,0 @@ }

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import type http from 'node:http';
import type https from 'node:https';
import type { URL } from 'node:url';
import type { W3CCapabilities, DesiredCapabilities, RemoteCapabilities, RemoteCapability, MultiRemoteCapabilities } from './Capabilities.js';

@@ -12,34 +6,4 @@ import type { Hooks, ServiceEntry } from './Services.js';

export type WebDriverLogTypes = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent';
export type SupportedProtocols = 'webdriver' | 'devtools' | './protocol-stub.js';
export type Agents = {
http?: any;
https?: any;
};
export type SupportedProtocols = 'webdriver' | './protocol-stub.js';
export type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'HEAD' | 'DELETE' | 'OPTIONS' | 'TRACE' | 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete' | 'options' | 'trace';
export interface RequestLibOptions {
agent?: Agents;
followRedirect?: boolean;
headers?: Record<string, string | string[] | undefined>;
https?: Record<string, unknown>;
json?: Record<string, unknown>;
method?: Method;
responseType?: 'json' | 'buffer' | 'text';
retry?: {
limit: number;
methods?: Method[];
calculateDelay?: (retryOptions: {
computedValue: number;
}) => number;
};
searchParams?: Record<string, string | number | boolean | null | undefined> | URLSearchParams;
throwHttpErrors?: boolean;
timeout?: {
response: number;
};
url?: URL;
path?: string;
username?: string;
password?: string;
body?: any;
}
export interface RequestLibResponse {

@@ -95,4 +59,3 @@ statusCode: number;

* Your cloud service username (only works for [Sauce Labs](https://saucelabs.com),
* [Browserstack](https://www.browserstack.com), [TestingBot](https://testingbot.com),
* [CrossBrowserTesting](https://crossbrowsertesting.com) or
* [Browserstack](https://www.browserstack.com), [TestingBot](https://testingbot.com) or
* [LambdaTest](https://www.lambdatest.com) accounts). If set, WebdriverIO will

@@ -106,6 +69,5 @@ * automatically set connection options for you. If you don't use a cloud provider this

* [Sauce Labs](https://saucelabs.com), [Browserstack](https://www.browserstack.com),
* [TestingBot](https://testingbot.com), [CrossBrowserTesting](https://crossbrowsertesting.com)
* or [LambdaTest](https://www.lambdatest.com) accounts). If set, WebdriverIO will
* automatically set connection options for you. If you don't use a cloud provider this
* can be used to authenticate any other WebDriver backend.
* [TestingBot](https://testingbot.com) or [LambdaTest](https://www.lambdatest.com) accounts).
* If set, WebdriverIO will automatically set connection options for you. If you don't use
* a cloud provider this can be used to authenticate any other WebDriver backend.
*/

@@ -123,3 +85,3 @@ key?: string;

* ```js
* // WebDriver/DevTools session
* // WebDriver session
* const browser = remote({

@@ -181,24 +143,9 @@ * capabilities: {

/**
* Allows you to use a custom http/https/http2 [agent](https://www.npmjs.com/package/got#agent) to make requests.
*
* @default
* ```js
* {
* http: new http.Agent({ keepAlive: true }),
* https: new https.Agent({ keepAlive: true })
* }
* ```
*/
agent?: {
http: http.Agent;
https: https.Agent;
};
/**
* Function intercepting [HTTP request options](https://github.com/sindresorhus/got#options) before a WebDriver request is made.
*/
transformRequest?: (requestOptions: RequestLibOptions) => RequestLibOptions;
transformRequest?: (requestOptions: RequestInit) => RequestInit;
/**
* Function intercepting HTTP response objects after a WebDriver response has arrived.
*/
transformResponse?: (response: RequestLibResponse, requestOptions: RequestLibOptions) => RequestLibResponse;
transformResponse?: (response: RequestLibResponse, requestOptions: RequestInit) => RequestLibResponse;
/**

@@ -205,0 +152,0 @@ * Appium direct connect options (see: https://appiumpro.com/editions/86-connecting-directly-to-appium-hosts-in-distributed-environments)

@@ -148,2 +148,3 @@ /// <reference types="node" resolution-mode="require"/>

args: unknown[];
scope?: string;
}

@@ -150,0 +151,0 @@ export interface CommandResponseEvent extends MessageWithPendingPromiseId {

{
"name": "@wdio/types",
"version": "8.32.4",
"version": "9.0.0-alpha.0",
"description": "Utility package providing type information for a variety of WebdriverIO interfaces",

@@ -15,3 +15,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

"engines": {
"node": "^16.13 || >=18"
"node": ">=18"
},

@@ -36,3 +36,3 @@ "repository": {

},
"gitHead": "f8d2d051d1331f4c24521a3c3b0e830ff3e45282"
"gitHead": "75d45a1efff8705785f0fbcd2379ac624d16e007"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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