webdriver 9.20.1 → 9.21.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/index.js +4 -12
- package/build/node.js +4 -12
- package/build/request/request.d.ts.map +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -1796,7 +1796,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
|
|
|
1796
1796
|
// package.json
|
|
1797
1797
|
var package_default = {
|
|
1798
1798
|
name: "webdriver",
|
|
1799
|
-
version: "9.20.
|
|
1799
|
+
version: "9.20.1",
|
|
1800
1800
|
description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
1801
1801
|
author: "Christian Bromann <mail@bromann.dev>",
|
|
1802
1802
|
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
|
@@ -1930,8 +1930,8 @@ var WebDriverRequest = class {
|
|
|
1930
1930
|
});
|
|
1931
1931
|
const searchParams = isBrowser ? void 0 : typeof options.queryParams === "object" ? options.queryParams : void 0;
|
|
1932
1932
|
if (this.body && (Object.keys(this.body).length || this.method === "POST")) {
|
|
1933
|
-
|
|
1934
|
-
|
|
1933
|
+
requestOptions.body = JSON.stringify(this.body);
|
|
1934
|
+
const contentLength = new TextEncoder().encode(requestOptions.body).length;
|
|
1935
1935
|
requestHeaders.set("Content-Length", "".concat(contentLength));
|
|
1936
1936
|
}
|
|
1937
1937
|
let endpoint = this.endpoint;
|
|
@@ -1956,15 +1956,7 @@ var WebDriverRequest = class {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
async _libRequest(url, opts) {
|
|
1958
1958
|
try {
|
|
1959
|
-
const
|
|
1960
|
-
const response = await this.fetch(url, {
|
|
1961
|
-
method: opts.method,
|
|
1962
|
-
body: JSON.stringify(opts.body),
|
|
1963
|
-
headers: opts.headers,
|
|
1964
|
-
signal: opts.signal,
|
|
1965
|
-
redirect: opts.redirect,
|
|
1966
|
-
...dispatcher ? { dispatcher } : {}
|
|
1967
|
-
});
|
|
1959
|
+
const response = await this.fetch(url, opts);
|
|
1968
1960
|
return await this.parseResponse(response);
|
|
1969
1961
|
} catch (err) {
|
|
1970
1962
|
if (!(err instanceof Error)) {
|
package/build/node.js
CHANGED
|
@@ -1727,7 +1727,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
|
|
|
1727
1727
|
// package.json
|
|
1728
1728
|
var package_default = {
|
|
1729
1729
|
name: "webdriver",
|
|
1730
|
-
version: "9.20.
|
|
1730
|
+
version: "9.20.1",
|
|
1731
1731
|
description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
1732
1732
|
author: "Christian Bromann <mail@bromann.dev>",
|
|
1733
1733
|
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
|
@@ -1860,8 +1860,8 @@ var WebDriverRequest = class {
|
|
|
1860
1860
|
});
|
|
1861
1861
|
const searchParams = isBrowser ? void 0 : typeof options.queryParams === "object" ? options.queryParams : void 0;
|
|
1862
1862
|
if (this.body && (Object.keys(this.body).length || this.method === "POST")) {
|
|
1863
|
-
|
|
1864
|
-
|
|
1863
|
+
requestOptions.body = JSON.stringify(this.body);
|
|
1864
|
+
const contentLength = new TextEncoder().encode(requestOptions.body).length;
|
|
1865
1865
|
requestHeaders.set("Content-Length", `${contentLength}`);
|
|
1866
1866
|
}
|
|
1867
1867
|
let endpoint = this.endpoint;
|
|
@@ -1886,15 +1886,7 @@ var WebDriverRequest = class {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
async _libRequest(url, opts) {
|
|
1888
1888
|
try {
|
|
1889
|
-
const
|
|
1890
|
-
const response = await this.fetch(url, {
|
|
1891
|
-
method: opts.method,
|
|
1892
|
-
body: JSON.stringify(opts.body),
|
|
1893
|
-
headers: opts.headers,
|
|
1894
|
-
signal: opts.signal,
|
|
1895
|
-
redirect: opts.redirect,
|
|
1896
|
-
...dispatcher ? { dispatcher } : {}
|
|
1897
|
-
});
|
|
1889
|
+
const response = await this.fetch(url, opts);
|
|
1898
1890
|
return await this.parseResponse(response);
|
|
1899
1891
|
} catch (err) {
|
|
1900
1892
|
if (!(err instanceof Error)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/request/request.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/request/request.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAM5G,OAAO,eAAe,CAAA;AAgBtB,8BAAsB,gBAAgB;IAClC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAExE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,YAAY,EAAE,mBAAmB,CAAA;IACjC,WAAW,CAAC,EAAE,WAAW,CAAA;gBAErB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,WAAW,CAAC,EAAE,WAAW,EACzB,YAAY,GAAE,OAAe,EAC7B,YAAY,GAAE,mBAAwB;IAWpC,WAAW,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM;IAMxD,aAAa,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,cAAc,EAAE,WAAW,CAAC;KAAE,CAAC;cA+DlI,WAAW,CAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC;YAiBhF,aAAa;cAiBX,QAAQ,CACpB,GAAG,EAAE,GAAG,EACR,kBAAkB,EAAE,WAAW,EAC/B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,KAAK,kBAAkB,EACrG,eAAe,SAAI,EACnB,UAAU,SAAI,GACf,OAAO,CAAC,iBAAiB,CAAC;CA+HhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.21.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": "9.
|
|
41
|
+
"@wdio/config": "9.21.0",
|
|
42
42
|
"@wdio/logger": "9.18.0",
|
|
43
43
|
"@wdio/protocols": "9.16.2",
|
|
44
44
|
"@wdio/types": "9.20.0",
|
|
45
|
-
"@wdio/utils": "9.
|
|
45
|
+
"@wdio/utils": "9.21.0",
|
|
46
46
|
"deepmerge-ts": "^7.0.3",
|
|
47
47
|
"https-proxy-agent": "^7.0.6",
|
|
48
48
|
"undici": "^6.21.3",
|
|
49
49
|
"ws": "^8.8.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "cfbd795427524c3add91b2c980e6866477875332"
|
|
52
52
|
}
|