🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@wdio/utils

Package Overview
Dependencies
Maintainers
2
Versions
323
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/utils - npm Package Compare versions

Comparing version

to
7.0.0-beta.0

14

build/envDetector.d.ts

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

/// <reference types="webdriver" />
export declare function isW3C(capabilities?: WebDriver.DesiredCapabilities): boolean;
export declare function capabilitiesEnvironmentDetector(capabilities: WebDriver.Capabilities, automationProtocol: string): {
import type { Capabilities } from '@wdio/types';
export declare function isW3C(capabilities?: Capabilities.DesiredCapabilities): boolean;
export declare function capabilitiesEnvironmentDetector(capabilities: Capabilities.Capabilities, automationProtocol: string): {
isChrome: boolean;

@@ -11,4 +11,4 @@ isMobile: boolean;

export declare function sessionEnvironmentDetector({ capabilities, requestedCapabilities }: {
capabilities?: WebDriver.DesiredCapabilities;
requestedCapabilities?: WebDriver.DesiredCapabilities | WebDriver.W3CCapabilities;
capabilities?: Capabilities.DesiredCapabilities;
requestedCapabilities?: Capabilities.DesiredCapabilities | Capabilities.W3CCapabilities;
}): {

@@ -23,3 +23,3 @@ isW3C: boolean;

};
export declare function devtoolsEnvironmentDetector({ browserName }: WebDriver.Capabilities): {
export declare function devtoolsEnvironmentDetector({ browserName }: Capabilities.Capabilities): {
isDevTools: boolean;

@@ -34,3 +34,3 @@ isW3C: boolean;

};
export declare function webdriverEnvironmentDetector(capabilities: WebDriver.Capabilities): {
export declare function webdriverEnvironmentDetector(capabilities: Capabilities.Capabilities): {
isChrome: boolean;

@@ -37,0 +37,0 @@ isMobile: boolean;

@@ -8,4 +8,3 @@ import initialisePlugin from './initialisePlugin';

import { isW3C, capabilitiesEnvironmentDetector, sessionEnvironmentDetector, devtoolsEnvironmentDetector } from './envDetector';
import type { DefaultPropertyType } from './types';
export { initialisePlugin, initialiseLauncherService, initialiseWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeRequire, canAccess, sleep, wrapCommand, executeSync, executeAsync, runFnInFiberContext, runTestInFiberContext, testFnWrapper, executeHooksWithArgs, hasWdioSyncSupport, isW3C, sessionEnvironmentDetector, capabilitiesEnvironmentDetector, devtoolsEnvironmentDetector, DefaultPropertyType };
export { initialisePlugin, initialiseLauncherService, initialiseWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeRequire, canAccess, sleep, wrapCommand, executeSync, executeAsync, runFnInFiberContext, runTestInFiberContext, testFnWrapper, executeHooksWithArgs, hasWdioSyncSupport, isW3C, sessionEnvironmentDetector, capabilitiesEnvironmentDetector, devtoolsEnvironmentDetector };
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

/// <reference types="webdriverio/webdriverio-core" />
export default function initialisePlugin(name: string, type?: string): WebdriverIO.ServicePlugin | WebdriverIO.RunnerPlugin;
import { Services } from '@wdio/types';
export default function initialisePlugin(name: string, type?: string): Services.ServicePlugin | Services.RunnerPlugin;
//# sourceMappingURL=initialisePlugin.d.ts.map

@@ -1,8 +0,7 @@

/// <reference types="webdriverio/webdriverio-core" />
/// <reference types="webdriver" />
export declare function initialiseLauncherService(config: Omit<WebdriverIO.Config, 'capabilities' | keyof WebdriverIO.HookFunctions>, caps: WebDriver.DesiredCapabilities): {
import type { Capabilities, Services, Options } from '@wdio/types';
export declare function initialiseLauncherService(config: Omit<Options.Testrunner, 'capabilities' | keyof Services.HookFunctions>, caps: Capabilities.DesiredCapabilities): {
ignoredWorkerServices: string[];
launcherServices: WebdriverIO.ServiceInstance[];
launcherServices: Services.ServiceInstance[];
};
export declare function initialiseWorkerService(config: WebdriverIO.Config, caps: WebDriver.DesiredCapabilities, ignoredWorkerServices?: string[]): WebdriverIO.ServiceInstance[];
export declare function initialiseWorkerService(config: Options.Testrunner, caps: Capabilities.DesiredCapabilities, ignoredWorkerServices?: string[]): Services.ServiceInstance[];
//# sourceMappingURL=initialiseServices.d.ts.map

@@ -126,3 +126,3 @@ "use strict";

}
catch (_a) {
catch {
}

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

/// <reference types="webdriverio/webdriverio-core" />
import type { Services } from '@wdio/types';
export declare function overwriteElementCommands(propertiesObject: {

@@ -16,3 +16,3 @@ '__elementOverrides__'?: {

export declare function getArgumentType(arg: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "null";
export declare function safeRequire(name: string): WebdriverIO.ServicePlugin | null;
export declare function safeRequire(name: string): Services.ServicePlugin | null;
export declare function isFunctionAsync(fn: Function): boolean;

@@ -19,0 +19,0 @@ export declare function filterSpecArgs(args: any[]): any[];

{
"name": "@wdio/utils",
"version": "6.11.0",
"version": "7.0.0-beta.0",
"description": "A WDIO helper utility to provide several utility functions used across the project.",
"author": "Christian Bromann <christian@saucelabs.com>",
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-utils",
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
"license": "MIT",
"main": "./build/index",
"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},

@@ -26,3 +26,4 @@ "repository": {

"dependencies": {
"@wdio/logger": "6.10.10"
"@wdio/logger": "7.0.0-beta.0",
"@wdio/types": "7.0.0-beta.0"
},

@@ -33,3 +34,3 @@ "publishConfig": {

"types": "./build/index.d.ts",
"gitHead": "5fba2c2f136f280a0370ac5b76394478e5db3339"
"gitHead": "bf31660d60ad4dacf04d11ff1590e794dd377dc0"
}

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

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