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

@wdio/utils

Package Overview
Dependencies
Maintainers
2
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 6.10.4 to 6.10.6

build/types.d.ts

3

build/index.d.ts

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

import { isW3C, capabilitiesEnvironmentDetector, sessionEnvironmentDetector, devtoolsEnvironmentDetector } from './envDetector';
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 };
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 };
//# sourceMappingURL=index.d.ts.map
/// <reference types="webdriverio/webdriverio-core" />
export default function initialisePlugin(name: string, type?: string): WebdriverIO.ServiceClass;
export default function initialisePlugin(name: string, type?: string): WebdriverIO.ServicePlugin | WebdriverIO.RunnerPlugin;
//# sourceMappingURL=initialisePlugin.d.ts.map
/// <reference types="webdriverio/webdriverio-core" />
/// <reference types="webdriver" />
export declare function initialiseLauncherService(config: WebdriverIO.Config, caps: WebDriver.DesiredCapabilities): {
export declare function initialiseLauncherService(config: Omit<WebdriverIO.Config, 'capabilities' | keyof WebdriverIO.HookFunctions>, caps: WebDriver.DesiredCapabilities): {
ignoredWorkerServices: string[];

@@ -5,0 +5,0 @@ launcherServices: WebdriverIO.ServiceInstance[];

@@ -1,18 +0,5 @@

/// <reference types="webdriver" />
/// <reference types="webdriverio/webdriverio-core" />
interface PropertiesObject {
scope?: string;
commandList?: {
value: string[];
};
options?: {
value: Record<string, any>;
};
requestedCapabilities?: {
value?: Record<string, any>;
};
puppeteer?: any;
[key: string]: any;
[key: string]: PropertyDescriptor;
}
export default function WebDriver(options: WebDriver.Options | WebdriverIO.Config, modifier?: Function, propertiesObject?: PropertiesObject): {
export default function WebDriver(options: Record<string, any>, modifier?: Function, propertiesObject?: PropertiesObject): {
(this: void, sessionId: string, commandWrapper?: Function | undefined): any;

@@ -19,0 +6,0 @@ lift(name: string, func: Function, proto: Record<string, any>, origCommand?: Function | undefined): void;

@@ -14,3 +14,4 @@ "use strict";

function WebDriver(options, modifier, propertiesObject = {}) {
const scopeType = SCOPE_TYPES[propertiesObject.scope || 'browser'];
var _a;
const scopeType = SCOPE_TYPES[((_a = propertiesObject.scope) === null || _a === void 0 ? void 0 : _a.value) || 'browser'];
delete propertiesObject.scope;

@@ -17,0 +18,0 @@ const prototype = Object.create(scopeType.prototype);

/// <reference types="node" />
import type { HookFnArgs, SpecArguments } from './types';
export declare const runHook: (this: unknown, hookFn: Function, origFn: Function, beforeFn: Function, beforeFnArgs: HookFnArgs<unknown>, afterFn: Function, afterFnArgs: HookFnArgs<unknown>, cid: string, repeatTest: number) => any;
export declare const runSpec: (this: unknown, specTitle: string, specFn: Function, origFn: Function, beforeFn: Function, beforeFnArgs: HookFnArgs<unknown>, afterFn: Function, afterFnArgs: HookFnArgs<unknown>, cid: string, repeatTest: number) => any;
export declare const wrapTestFunction: (this: unknown, origFn: Function, isSpec: boolean, beforeFn: Function, beforeArgsFn: HookFnArgs<unknown>, afterFn: Function, afterArgsFn: HookFnArgs<unknown>, cid: string) => (...specArguments: SpecArguments) => any;
export declare const runTestInFiberContext: (this: unknown, isSpec: boolean, beforeFn: Function, beforeArgsFn: HookFnArgs<unknown>, afterFn: Function, afterArgsFn: HookFnArgs<unknown>, fnName: string, cid: string, scope?: NodeJS.Global & typeof globalThis) => void;
export declare const runHook: (this: unknown, hookFn: Function, origFn: Function, beforeFn: Function | Function[], beforeFnArgs: HookFnArgs<unknown>, afterFn: Function | Function[], afterFnArgs: HookFnArgs<unknown>, cid: string, repeatTest: number) => any;
export declare const runSpec: (this: unknown, specTitle: string, specFn: Function, origFn: Function, beforeFn: Function | Function[], beforeFnArgs: HookFnArgs<unknown>, afterFn: Function | Function[], afterFnArgs: HookFnArgs<unknown>, cid: string, repeatTest: number) => any;
export declare const wrapTestFunction: (this: unknown, origFn: Function, isSpec: boolean, beforeFn: Function | Function[], beforeArgsFn: HookFnArgs<unknown>, afterFn: Function | Function[], afterArgsFn: HookFnArgs<unknown>, cid: string) => (...specArguments: SpecArguments) => any;
export declare const runTestInFiberContext: (this: unknown, isSpec: boolean, beforeFn: Function | Function[], beforeArgsFn: HookFnArgs<unknown>, afterFn: Function | Function[], afterArgsFn: HookFnArgs<unknown>, fnName: string, cid: string, scope?: NodeJS.Global & typeof globalThis) => void;
//# sourceMappingURL=testInterfaceWrapper.d.ts.map

@@ -13,7 +13,7 @@ import type { executeHooksWithArgs, executeAsync, runSync } from '../shim';

export interface BeforeHookParam<T> {
beforeFn: Function;
beforeFn: Function | Function[];
beforeFnArgs: HookFnArgs<T>;
}
export interface AfterHookParam<T> {
afterFn: Function;
afterFn: Function | Function[];
afterFnArgs: HookFnArgs<T>;

@@ -20,0 +20,0 @@ }

@@ -16,3 +16,3 @@ /// <reference types="webdriverio/webdriverio-core" />

export declare function getArgumentType(arg: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "null";
export declare function safeRequire(name: string): WebdriverIO.ServiceClass | null;
export declare function safeRequire(name: string): WebdriverIO.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.10.4",
"version": "6.10.6",
"description": "A WDIO helper utility to provide several utility functions used across the project.",

@@ -32,3 +32,3 @@ "author": "Christian Bromann <christian@saucelabs.com>",

"types": "./build/index.d.ts",
"gitHead": "7037dcaa68c3192ebaf5a153d9f0384efd6088ec"
"gitHead": "c3fa466d4e0fece382f2d04ead5f19f97eaa71fe"
}

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

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