@wdio/utils
Advanced tools
Comparing version 6.11.0 to 7.0.0-beta.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51537
2
38
954
1
+ Added@wdio/types@7.0.0-beta.0
+ Added@sindresorhus/is@4.6.0(transitive)
+ Added@szmarczak/http-timer@4.0.6(transitive)
+ Added@types/cacheable-request@6.0.3(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Added@types/keyv@3.1.4(transitive)
+ Added@types/node@22.9.0(transitive)
+ Added@types/responselike@1.0.3(transitive)
+ Added@wdio/logger@7.0.0-beta.0(transitive)
+ Added@wdio/types@7.0.0-beta.0(transitive)
+ Addedcacheable-lookup@5.0.4(transitive)
+ Addedcacheable-request@7.0.4(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedgot@11.8.6(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp2-wrapper@1.0.3(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlowercase-keys@2.0.0(transitive)
+ Addedmimic-response@1.0.13.1.0(transitive)
+ Addednormalize-url@6.1.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-cancelable@2.1.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@2.0.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@wdio/logger@6.10.10(transitive)
Updated@wdio/logger@7.0.0-beta.0