webdriver 8.20.4 → 8.22.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.
- package/build/command.d.ts.map +1 -1
- package/build/command.js +7 -1
- package/package.json +6 -6
package/build/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAK5C,UAAU,0BAA2B,SAAQ,UAAU;IACnD,eAAe,EAAE,WAAW,CAAA;IAC5B,cAAc,CAAC,EAAE,YAAY,CAAA;CAChC;AAED,MAAM,CAAC,OAAO,WACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,eAAe,EAC5B,qBAAqB,UAAQ,UAIgB,0BAA0B,WAAW,GAAG,EAAE,KAAG,QAAQ,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAK5C,UAAU,0BAA2B,SAAQ,UAAU;IACnD,eAAe,EAAE,WAAW,CAAA;IAC5B,cAAc,CAAC,EAAE,YAAY,CAAA;CAChC;AAED,MAAM,CAAC,OAAO,WACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,eAAe,EAC5B,qBAAqB,UAAQ,UAIgB,0BAA0B,WAAW,GAAG,EAAE,KAAG,QAAQ,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAAC,CAiJ7I"}
|
package/build/command.js
CHANGED
|
@@ -4,7 +4,7 @@ import RequestFactory from './request/factory.js';
|
|
|
4
4
|
const log = logger('webdriver');
|
|
5
5
|
const BIDI_COMMANDS = ['send', 'sendAsync'];
|
|
6
6
|
export default function (method, endpointUri, commandInfo, doubleEncodeVariables = false) {
|
|
7
|
-
const { command, ref, parameters, variables = [], isHubCommand = false } = commandInfo;
|
|
7
|
+
const { command, deprecated, ref, parameters, variables = [], isHubCommand = false } = commandInfo;
|
|
8
8
|
return async function protocolCommand(...args) {
|
|
9
9
|
const isBidiCommand = this.sessionId && this.eventMiddleware && typeof this.eventMiddleware[command] === 'function';
|
|
10
10
|
let endpoint = endpointUri; // clone endpointUri in case we change it
|
|
@@ -18,6 +18,12 @@ export default function (method, endpointUri, commandInfo, doubleEncodeVariables
|
|
|
18
18
|
const commandUsage = `${command}(${commandParams.map((p) => p.name).join(', ')})`;
|
|
19
19
|
const moreInfo = `\n\nFor more info see ${ref}\n`;
|
|
20
20
|
const body = {};
|
|
21
|
+
/**
|
|
22
|
+
* log deprecation warning if command is deprecated
|
|
23
|
+
*/
|
|
24
|
+
if (typeof deprecated === 'string') {
|
|
25
|
+
log.warn(deprecated.replace('This command', `The "${command}" command`));
|
|
26
|
+
}
|
|
21
27
|
/**
|
|
22
28
|
* parameter check
|
|
23
29
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.22.0",
|
|
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",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/node": "^20.1.0",
|
|
40
40
|
"@types/ws": "^8.5.3",
|
|
41
|
-
"@wdio/config": "8.
|
|
41
|
+
"@wdio/config": "8.22.0",
|
|
42
42
|
"@wdio/logger": "8.16.17",
|
|
43
|
-
"@wdio/protocols": "8.
|
|
44
|
-
"@wdio/types": "8.
|
|
45
|
-
"@wdio/utils": "8.
|
|
43
|
+
"@wdio/protocols": "8.22.0",
|
|
44
|
+
"@wdio/types": "8.21.0",
|
|
45
|
+
"@wdio/utils": "8.22.0",
|
|
46
46
|
"deepmerge-ts": "^5.1.0",
|
|
47
47
|
"got": "^ 12.6.1",
|
|
48
48
|
"ky": "^0.33.0",
|
|
49
49
|
"ws": "^8.8.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "81496a30b1c50e7d4129be6997f1a557f9659224"
|
|
52
52
|
}
|