@wdio/utils 8.33.0 → 8.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/envDetector.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare function sessionEnvironmentDetector({ capabilities, requestedCapa
|
|
|
47
47
|
* @param {Object} capabilities caps of session response
|
|
48
48
|
* @return {Object} object with environment flags
|
|
49
49
|
*/
|
|
50
|
-
export declare function devtoolsEnvironmentDetector(
|
|
50
|
+
export declare function devtoolsEnvironmentDetector(capabilities: WebdriverIO.Capabilities): {
|
|
51
51
|
isDevTools: boolean;
|
|
52
52
|
isW3C: boolean;
|
|
53
53
|
isMobile: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,WAwCpE;AAsMD;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,kBAAkB,EAAE,MAAM;;;;;;;;;EAIjH;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,YAAY,EAAE,qBAAqB,EAAE,EAC9E;IAAE,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAAC,qBAAqB,EAAE,YAAY,CAAC,gBAAgB,CAAA;CAAE;;;;;;;;;;;EAgBxG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,
|
|
1
|
+
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,WAwCpE;AAsMD;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,kBAAkB,EAAE,MAAM;;;;;;;;;EAIjH;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,YAAY,EAAE,qBAAqB,EAAE,EAC9E;IAAE,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAAC,qBAAqB,EAAE,YAAY,CAAC,gBAAgB,CAAA;CAAE;;;;;;;;;;;EAgBxG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY;;;;;;;;;;;;EAcjF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY;;;;;;;;;EAWlF"}
|
package/build/envDetector.js
CHANGED
|
@@ -248,7 +248,7 @@ export function sessionEnvironmentDetector({ capabilities, requestedCapabilities
|
|
|
248
248
|
* @param {Object} capabilities caps of session response
|
|
249
249
|
* @return {Object} object with environment flags
|
|
250
250
|
*/
|
|
251
|
-
export function devtoolsEnvironmentDetector(
|
|
251
|
+
export function devtoolsEnvironmentDetector(capabilities) {
|
|
252
252
|
return {
|
|
253
253
|
isDevTools: true,
|
|
254
254
|
isW3C: true,
|
|
@@ -256,11 +256,11 @@ export function devtoolsEnvironmentDetector({ browserName }) {
|
|
|
256
256
|
isIOS: false,
|
|
257
257
|
isAndroid: false,
|
|
258
258
|
isFirefox: false,
|
|
259
|
-
isChrome: browserName === 'chrome',
|
|
259
|
+
isChrome: capabilities.browserName === 'chrome',
|
|
260
260
|
isSauce: false,
|
|
261
261
|
isSeleniumStandalone: false,
|
|
262
262
|
isBidi: false,
|
|
263
|
-
isChromium: browserName === 'chrome'
|
|
263
|
+
isChromium: capabilities.browserName === 'chrome' || isChromium(capabilities)
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "8.33.
|
|
3
|
+
"version": "8.33.1",
|
|
4
4
|
"description": "A WDIO helper utility to provide several utility functions used across the project.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "6ee4cdd36e9f10541ede896d18b785ac9c56dacf"
|
|
58
58
|
}
|