@wdio/utils
Advanced tools
Comparing version 8.24.12 to 8.26.2
@@ -7,6 +7,7 @@ import webdriverMonad from './monad.js'; | ||
import { wrapCommand, executeHooksWithArgs, executeAsync } from './shim.js'; | ||
import * as asyncIterators from './pIteration.js'; | ||
import { testFnWrapper, wrapGlobalTestMethod } from './test-framework/index.js'; | ||
import { isW3C, capabilitiesEnvironmentDetector, sessionEnvironmentDetector, devtoolsEnvironmentDetector } from './envDetector.js'; | ||
import { UNICODE_CHARACTERS, HOOK_DEFINITION } from './constants.js'; | ||
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability, | ||
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability, asyncIterators, | ||
/** | ||
@@ -13,0 +14,0 @@ * runner shim |
@@ -8,6 +8,7 @@ /* istanbul ignore file */ | ||
import { wrapCommand, executeHooksWithArgs, executeAsync } from './shim.js'; | ||
import * as asyncIterators from './pIteration.js'; | ||
import { testFnWrapper, wrapGlobalTestMethod } from './test-framework/index.js'; | ||
import { isW3C, capabilitiesEnvironmentDetector, sessionEnvironmentDetector, devtoolsEnvironmentDetector } from './envDetector.js'; | ||
import { UNICODE_CHARACTERS, HOOK_DEFINITION } from './constants.js'; | ||
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability, | ||
export { startWebDriver, initializePlugin, initializeLauncherService, initializeWorkerService, isFunctionAsync, transformCommandLogResult, webdriverMonad, commandCallStructure, isValidParameter, getArgumentType, safeImport, sleep, isAppiumCapability, asyncIterators, | ||
/** | ||
@@ -14,0 +15,0 @@ * runner shim |
@@ -11,3 +11,3 @@ /** | ||
*/ | ||
export declare const forEach: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<void>; | ||
export declare const forEach: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<void>; | ||
/** | ||
@@ -20,3 +20,3 @@ * Same functionality as [`forEach()`](global.html#forEach), but runs only one callback at a time. | ||
*/ | ||
export declare const forEachSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<void>; | ||
export declare const forEachSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<void>; | ||
/** | ||
@@ -33,3 +33,3 @@ * Implements ES5 [`Array#map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) method.<br><br> | ||
*/ | ||
export declare const map: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<any[]>; | ||
export declare const map: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<any[]>; | ||
/** | ||
@@ -42,3 +42,3 @@ * Same functionality as [`map()`](global.html#map), but runs only one callback at a time. | ||
*/ | ||
export declare const mapSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<any[]>; | ||
export declare const mapSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<any[]>; | ||
/** | ||
@@ -54,3 +54,3 @@ * Implements ES5 [`Array#find()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find) method.<br><br> | ||
*/ | ||
export declare const find: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const find: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<T | undefined>; | ||
/** | ||
@@ -63,3 +63,3 @@ * Same functionality as [`find()`](global.html#find), but runs only one callback at a time. | ||
*/ | ||
export declare const findSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const findSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<T | undefined>; | ||
/** | ||
@@ -75,3 +75,3 @@ * Implements ES5 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) method.<br><br> | ||
*/ | ||
export declare const findIndex: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const findIndex: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<unknown>; | ||
/** | ||
@@ -84,3 +84,3 @@ * Same functionality as [`findIndex()`](global.html#findIndex), but runs only one callback at a time. | ||
*/ | ||
export declare const findIndexSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<number | undefined>; | ||
export declare const findIndexSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<number | undefined>; | ||
/** | ||
@@ -96,3 +96,3 @@ * Implements ES5 [`Array#some()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) method.<br><br> | ||
*/ | ||
export declare const some: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const some: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<unknown>; | ||
/** | ||
@@ -105,3 +105,3 @@ * Same functionality as [`some()`](global.html#some), but runs only one callback at a time. | ||
*/ | ||
export declare const someSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<boolean>; | ||
export declare const someSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<boolean>; | ||
/** | ||
@@ -117,3 +117,3 @@ * Implements ES5 [`Array#every()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) method.<br><br> | ||
*/ | ||
export declare const every: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const every: <T>(array: T[], callback: any, thisArg?: T | undefined) => Promise<boolean>; | ||
/** | ||
@@ -126,3 +126,3 @@ * Same functionality as [`every()`](global.html#every), but runs only one callback at a time.<br><br> | ||
*/ | ||
export declare const everySeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<boolean>; | ||
export declare const everySeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<boolean>; | ||
/** | ||
@@ -137,3 +137,3 @@ * Implements ES5 [`Array#filter()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) method.<br><br> | ||
*/ | ||
export declare const filter: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown>; | ||
export declare const filter: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<unknown>; | ||
/** | ||
@@ -145,3 +145,3 @@ * Same functionality as [`filter()`](global.html#filter), but runs only one callback at a time. | ||
*/ | ||
export declare const filterSeries: (array: unknown[], callback: Function, thisArg?: unknown) => Promise<unknown[]>; | ||
export declare const filterSeries: <T>(array: T[], callback: Function, thisArg?: T | undefined) => Promise<Awaited<T>[]>; | ||
/** | ||
@@ -155,3 +155,3 @@ * Implements ES5 [`Array#reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) method.<br><br> | ||
*/ | ||
export declare const reduce: (array: unknown[], callback: Function, initialValue?: unknown) => Promise<any>; | ||
export declare const reduce: <T>(array: T[], callback: Function, initialValue?: T | undefined) => Promise<any>; | ||
//# sourceMappingURL=pIteration.d.ts.map |
{ | ||
"name": "@wdio/utils", | ||
"version": "8.24.12", | ||
"version": "8.26.2", | ||
"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.24.12", | ||
"@wdio/types": "8.24.12", | ||
"@wdio/types": "8.26.2", | ||
"decamelize": "^6.0.0", | ||
@@ -58,3 +58,3 @@ "deepmerge-ts": "^5.1.0", | ||
}, | ||
"gitHead": "ebf1ba1875fe210fda7067c1c13944c50cb6a694" | ||
"gitHead": "a8d00d826d49b1b01bf4921a10974e1db47085f6" | ||
} |
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
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
3259
157952
+ Added@wdio/types@8.26.2(transitive)
- Removed@wdio/types@8.24.12(transitive)
Updated@wdio/types@8.26.2