@wdio/utils 8.8.7 → 8.10.0
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.
|
@@ -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;AAQ/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,WAwCpE;AA0ID;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,YAAY,CAAC,YAAY,EAAE,kBAAkB,EAAE,MAAM;;;;;;;EAIlH;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;;;;;;;;;EAcxG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,WAAW,EAAE,EAAE,YAAY,CAAC,YAAY;;;;;;;;;;EAYrF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,YAAY,CAAC,YAAY;;;;;;;EASnF"}
|
package/build/envDetector.js
CHANGED
|
@@ -22,7 +22,10 @@ export function isW3C(capabilities) {
|
|
|
22
22
|
* (https://w3c.github.io/webdriver/#dfn-new-sessions)
|
|
23
23
|
* - it is an Appium session (since Appium is full W3C compliant)
|
|
24
24
|
*/
|
|
25
|
-
const isAppium = Boolean(
|
|
25
|
+
const isAppium = Boolean(
|
|
26
|
+
// @ts-expect-error outdated jsonwp cap
|
|
27
|
+
capabilities.automationName ||
|
|
28
|
+
capabilities['appium:automationName'] ||
|
|
26
29
|
capabilities.deviceName ||
|
|
27
30
|
capabilities.appiumVersion);
|
|
28
31
|
const hasW3CCaps = Boolean(
|
|
@@ -35,7 +38,11 @@ export function isW3C(capabilities) {
|
|
|
35
38
|
* local safari and BrowserStack don't provide platformVersion therefore
|
|
36
39
|
* check also if setWindowRect is provided
|
|
37
40
|
*/
|
|
38
|
-
(
|
|
41
|
+
(
|
|
42
|
+
// @ts-expect-error outdated jsonwp cap
|
|
43
|
+
capabilities.platformVersion ||
|
|
44
|
+
capabilities['appium:platformVersion'] ||
|
|
45
|
+
Object.prototype.hasOwnProperty.call(capabilities, 'setWindowRect')));
|
|
39
46
|
return Boolean(hasW3CCaps || isAppium);
|
|
40
47
|
}
|
|
41
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
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",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@wdio/logger": "8.6.6",
|
|
34
|
-
"@wdio/types": "8.
|
|
34
|
+
"@wdio/types": "8.10.0",
|
|
35
35
|
"import-meta-resolve": "^3.0.0",
|
|
36
36
|
"p-iteration": "^1.1.8"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f0c607340b4f31a4ae48509115335283f488e38f"
|
|
42
42
|
}
|