Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/utils

Package Overview
Dependencies
Maintainers
3
Versions
298
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 8.23.0 to 8.23.1

build/initializePlugin.d.ts

6

build/index.d.ts
import webdriverMonad from './monad.js';
import initialisePlugin from './initialisePlugin.js';
import initializePlugin from './initializePlugin.js';
import { startWebDriver } from './startWebDriver.js';
import { initialiseWorkerService, initialiseLauncherService } from './initialiseServices.js';
import { initializeWorkerService, initializeLauncherService } from './initializeServices.js';
import { commandCallStructure, isValidParameter, getArgumentType, safeImport, isFunctionAsync, transformCommandLogResult, sleep, isAppiumCapability } from './utils.js';

@@ -10,3 +10,3 @@ import { wrapCommand, executeHooksWithArgs, executeAsync } from './shim.js';

import { UNICODE_CHARACTERS, HOOK_DEFINITION } from './constants.js';
export { startWebDriver, initialisePlugin, initialiseLauncherService, initialiseWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability,
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability,
/**

@@ -13,0 +13,0 @@ * runner shim

/* istanbul ignore file */
import webdriverMonad from './monad.js';
import initialisePlugin from './initialisePlugin.js';
import initializePlugin from './initializePlugin.js';
import { startWebDriver } from './startWebDriver.js';
import { initialiseWorkerService, initialiseLauncherService } from './initialiseServices.js';
import { initializeWorkerService, initializeLauncherService } from './initializeServices.js';
import { commandCallStructure, isValidParameter, getArgumentType, safeImport, isFunctionAsync, transformCommandLogResult, sleep, isAppiumCapability } from './utils.js';

@@ -11,3 +11,3 @@ import { wrapCommand, executeHooksWithArgs, executeAsync } from './shim.js';

import { UNICODE_CHARACTERS, HOOK_DEFINITION } from './constants.js';
export { startWebDriver, initialisePlugin, initialiseLauncherService, initialiseWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability,
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability,
/**

@@ -14,0 +14,0 @@ * runner shim

@@ -11,6 +11,7 @@ import type { WrapperMethods, SpecFunction, BeforeHookParam, AfterHookParam } from './types.js';

* @param {number} repeatTest number of retries if test fails
* @param {string} hookName the hook name
* @param {number} timeout the maximum time (in milliseconds) to wait for
* @return {*} specFn result
* @param {string} hookName the hook name
*/
export declare const testFnWrapper: (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined) => Promise<unknown>;
export declare const testFnWrapper: (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined, args_7?: number | undefined) => Promise<unknown>;
/**

@@ -26,6 +27,7 @@ * wraps test framework spec/hook function with WebdriverIO before/after hooks

* @param {number} repeatTest number of retries if test fails
* @param {string} hookName the hook name
* @param {number} timeout the maximum time (in milliseconds) to wait for
* @return {*} specFn result
* @param {string} hookName the hook name
*/
export declare const testFrameworkFnWrapper: (this: unknown, { executeHooksWithArgs, executeAsync }: WrapperMethods, type: string, { specFn, specFnArgs }: SpecFunction, { beforeFn, beforeFnArgs }: BeforeHookParam<unknown>, { afterFn, afterFnArgs }: AfterHookParam<unknown>, cid: string, repeatTest?: number, hookName?: string) => Promise<unknown>;
export declare const testFrameworkFnWrapper: (this: unknown, { executeHooksWithArgs, executeAsync }: WrapperMethods, type: string, { specFn, specFnArgs }: SpecFunction, { beforeFn, beforeFnArgs }: BeforeHookParam<unknown>, { afterFn, afterFnArgs }: AfterHookParam<unknown>, cid: string, repeatTest?: number, hookName?: string, timeout?: number) => Promise<unknown>;
/**

@@ -32,0 +34,0 @@ * Filter out internal stacktraces. exporting to allow testing of the function

@@ -18,4 +18,5 @@ import { logHookError } from './errorHandler.js';

* @param {number} repeatTest number of retries if test fails
* @param {string} hookName the hook name
* @param {number} timeout the maximum time (in milliseconds) to wait for
* @return {*} specFn result
* @param {string} hookName the hook name
*/

@@ -35,6 +36,7 @@ export const testFnWrapper = function (...args) {

* @param {number} repeatTest number of retries if test fails
* @param {string} hookName the hook name
* @param {number} timeout the maximum time (in milliseconds) to wait for
* @return {*} specFn result
* @param {string} hookName the hook name
*/
export const testFrameworkFnWrapper = async function ({ executeHooksWithArgs, executeAsync }, type, { specFn, specFnArgs }, { beforeFn, beforeFnArgs }, { afterFn, afterFnArgs }, cid, repeatTest = 0, hookName) {
export const testFrameworkFnWrapper = async function ({ executeHooksWithArgs, executeAsync }, type, { specFn, specFnArgs }, { beforeFn, beforeFnArgs }, { afterFn, afterFnArgs }, cid, repeatTest = 0, hookName, timeout) {
const retries = { attempts: 0, limit: repeatTest };

@@ -50,3 +52,3 @@ const beforeArgs = beforeFnArgs(this);

try {
result = await executeAsync.call(this, specFn, retries, specFnArgs);
result = await executeAsync.call(this, specFn, retries, specFnArgs, timeout);
}

@@ -53,0 +55,0 @@ catch (err) {

@@ -223,3 +223,3 @@ import { SUPPORTED_BROWSERNAMES, DEFAULT_PROTOCOL, DEFAULT_HOSTNAME, DEFAULT_PATH } from './constants.js';

catch (e) {
throw new Error(`Couldn't initialise "${name}".\n${e.stack}`);
throw new Error(`Couldn't initialize "${name}".\n${e.stack}`);
}

@@ -226,0 +226,0 @@ }

{
"name": "@wdio/utils",
"version": "8.23.0",
"version": "8.23.1",
"description": "A WDIO helper utility to provide several utility functions used across the project.",

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

"@wdio/logger": "8.16.17",
"@wdio/types": "8.23.0",
"@wdio/types": "8.23.1",
"decamelize": "^6.0.0",

@@ -59,3 +59,3 @@ "deepmerge-ts": "^5.1.0",

},
"gitHead": "b17ce5f554deb8588cc156ad9676bd4bd13defe7"
"gitHead": "64633b802ba4d00d23f6531dadc3fc724d8d7dd5"
}

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