webdriver 8.0.0-alpha.508 → 8.0.0-alpha.516
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/utils.d.ts.map +1 -1
- package/build/utils.js +5 -4
- package/package.json +8 -11
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAYvE;;GAEG;AACH,wBAAsB,qBAAqB,CAAE,MAAM,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAC,mBAAmB,CAAA;CAAE,CAAC,CAmEtJ;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,WA4DlF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,sCA6C3H;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,SAcvE;AAGD,qBAAa,kBAAmB,SAAQ,KAAK;gBAC5B,IAAI,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG;CAyB5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;EAWlJ;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,QAmBhD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,kBAAkB,WAAU,QAAQ,iBAAiB,CAAC,WAmD1F,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,UAAW,KAAK,kBAAkB,QAAQ,iBAAiB,KAAG,KASzF,CAAA"}
|
package/build/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { deepmergeCustom } from 'deepmerge-ts';
|
|
2
2
|
import logger from '@wdio/logger';
|
|
3
3
|
import { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol } from '@wdio/protocols';
|
|
4
4
|
import { transformCommandLogResult } from '@wdio/utils';
|
|
@@ -7,6 +7,7 @@ import RequestFactory from './request/factory.js';
|
|
|
7
7
|
import command from './command.js';
|
|
8
8
|
import { REG_EXPS } from './constants.js';
|
|
9
9
|
const log = logger('webdriver');
|
|
10
|
+
const deepmerge = deepmergeCustom({ mergeArrays: false });
|
|
10
11
|
const BROWSER_DRIVER_ERRORS = [
|
|
11
12
|
'unknown command: wd/hub/session',
|
|
12
13
|
'HTTP method not allowed',
|
|
@@ -134,14 +135,14 @@ export function isSuccessfulResponse(statusCode, body) {
|
|
|
134
135
|
*/
|
|
135
136
|
export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, isSeleniumStandalone }) {
|
|
136
137
|
const prototype = {};
|
|
137
|
-
const ProtocolCommands =
|
|
138
|
+
const ProtocolCommands = deepmerge(
|
|
138
139
|
/**
|
|
139
140
|
* if mobile apply JSONWire and WebDriver protocol because
|
|
140
141
|
* some legacy JSONWire commands are still used in Appium
|
|
141
142
|
* (e.g. set/get geolocation)
|
|
142
143
|
*/
|
|
143
144
|
isMobile
|
|
144
|
-
?
|
|
145
|
+
? deepmerge(JsonWProtocol, WebDriverProtocol)
|
|
145
146
|
: isW3C ? WebDriverProtocol : JsonWProtocol,
|
|
146
147
|
/**
|
|
147
148
|
* enable Bidi protocol for W3C sessions
|
|
@@ -150,7 +151,7 @@ export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, is
|
|
|
150
151
|
/**
|
|
151
152
|
* only apply mobile protocol if session is actually for mobile
|
|
152
153
|
*/
|
|
153
|
-
isMobile ?
|
|
154
|
+
isMobile ? deepmerge(MJsonWProtocol, AppiumProtocol) : {},
|
|
154
155
|
/**
|
|
155
156
|
* only apply special Chrome commands if session is using Chrome
|
|
156
157
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.516+ef18eb180",
|
|
4
4
|
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
|
@@ -33,21 +33,18 @@
|
|
|
33
33
|
"bugs": {
|
|
34
34
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
35
35
|
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/lodash.merge": "^4.6.7"
|
|
38
|
-
},
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@types/node": "^18.0.0",
|
|
41
38
|
"@types/ws": "^8.5.3",
|
|
42
|
-
"@wdio/config": "8.0.0-alpha.
|
|
43
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
44
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
45
|
-
"@wdio/types": "8.0.0-alpha.
|
|
46
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
39
|
+
"@wdio/config": "8.0.0-alpha.516+ef18eb180",
|
|
40
|
+
"@wdio/logger": "8.0.0-alpha.516+ef18eb180",
|
|
41
|
+
"@wdio/protocols": "8.0.0-alpha.516+ef18eb180",
|
|
42
|
+
"@wdio/types": "8.0.0-alpha.516+ef18eb180",
|
|
43
|
+
"@wdio/utils": "8.0.0-alpha.516+ef18eb180",
|
|
44
|
+
"deepmerge-ts": "^4.2.2",
|
|
47
45
|
"got": "^12.1.0",
|
|
48
46
|
"ky": "^0.32.1",
|
|
49
|
-
"lodash.merge": "^4.6.2",
|
|
50
47
|
"ws": "^8.8.0"
|
|
51
48
|
},
|
|
52
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ef18eb180b61077d44a307c0410593930101e842"
|
|
53
50
|
}
|