webdriver 9.17.0 → 9.19.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":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAI7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAgB,aAAa,EAAwB,MAAM,YAAY,CAAA;AAS/F,MAAM,CAAC,OAAO,WACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,eAAe,EAC5B,qBAAqB,UAAQ,IAIU,MAAM,UAAU,EAAE,GAAG,cAAc,OAAO,EAAE,KAAG,OAAO,CAAC,iBAAiB,GAAG,aAAa,GAAG,IAAI,CAAC,CA+L1I"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAI7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAgB,aAAa,EAAwB,MAAM,YAAY,CAAA;AAS/F,MAAM,CAAC,OAAO,WACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,eAAe,EAC5B,qBAAqB,UAAQ,IAIU,MAAM,UAAU,EAAE,GAAG,cAAc,OAAO,EAAE,KAAG,OAAO,CAAC,iBAAiB,GAAG,aAAa,GAAG,IAAI,CAAC,CAkM1I"}
@@ -11,7 +11,6 @@ export interface EnvironmentVariables {
11
11
  WDIO_LOG_LEVEL?: Options.WebDriverLogTypes;
12
12
  PROXY_URL?: string;
13
13
  NO_PROXY?: string[];
14
- DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS?: string;
15
14
  WDIO_WORKER_ID?: string;
16
15
  WDIO_UNIT_TESTS?: string;
17
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,IAAI,CAAA;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAA;AAE3E,MAAM,WAAW,oBAAoB;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,wCAAwC,CAAC,EAAE,MAAM,CAAA;IACjD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,aAAa,CAAC;IAC7B,oBAAoB,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,KAAK,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC5G,iBAAiB,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7F,SAAS,EAAE,oBAAoB,CAAA;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE;IACtB,KAAK,EAAE,uBAAuB,CAAC;CAmBlC,CAAA"}
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,IAAI,CAAA;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAA;AAE3E,MAAM,WAAW,oBAAoB;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,aAAa,CAAC;IAC7B,oBAAoB,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,KAAK,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC5G,iBAAiB,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7F,SAAS,EAAE,oBAAoB,CAAA;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE;IACtB,KAAK,EAAE,uBAAuB,CAAC;CAmBlC,CAAA"}
package/build/index.js CHANGED
@@ -1253,7 +1253,7 @@ var getSessionError = (err, params = {}) => {
1253
1253
  if (err.message === "Response has empty body") {
1254
1254
  return "Make sure to connect to valid hostname:port or the port is not in use.\nIf you use a grid server " + w3cCapMessage;
1255
1255
  }
1256
- if (err.message.includes("failed serving request POST /wd/hub/session: Unauthorized") && ((_a = params.hostname) == null ? void 0 : _a.endsWith("saucelabs.com"))) {
1256
+ if (err.message.includes("failed serving request POST /wd/hub/session: Unauthorized") && (params.hostname === "saucelabs.com" || ((_a = params.hostname) == null ? void 0 : _a.endsWith(".saucelabs.com")))) {
1257
1257
  return "Session request was not authorized because you either did provide a wrong access key or tried to run in a region that has not been enabled for your user. If have registered a free trial account it is connected to a specific region. Ensure this region is set in your configuration (https://webdriver.io/docs/options.html#region).";
1258
1258
  }
1259
1259
  return err.message;
@@ -1359,7 +1359,8 @@ function command_default(method, endpointUri, commandInfo, doubleEncodeVariables
1359
1359
  })), ...parameters];
1360
1360
  const commandUsage = "".concat(command, "(").concat(commandParams.map((p) => p.name).join(", "), ")");
1361
1361
  const moreInfo = "\n\nFor more info see ".concat(ref, "\n");
1362
- if (typeof deprecated === "string" && !environment.value.variables.DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS) {
1362
+ const DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS = globalThis.process && globalThis.process.env ? globalThis.process.env.DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS : void 0;
1363
+ if (typeof deprecated === "string" && !DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS) {
1363
1364
  const warning = deprecated.replace("This command", 'The "'.concat(command, '" command'));
1364
1365
  log3.warn(warning);
1365
1366
  console.warn("\u26A0\uFE0F [WEBDRIVERIO DEPRECATION NOTICE] ".concat(warning));
@@ -1791,7 +1792,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
1791
1792
  // package.json
1792
1793
  var package_default = {
1793
1794
  name: "webdriver",
1794
- version: "9.16.2",
1795
+ version: "9.18.0",
1795
1796
  description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
1796
1797
  author: "Christian Bromann <mail@bromann.dev>",
1797
1798
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -1836,7 +1837,7 @@ var package_default = {
1836
1837
  "@wdio/utils": "workspace:*",
1837
1838
  "deepmerge-ts": "^7.0.3",
1838
1839
  "https-proxy-agent": "^7.0.6",
1839
- undici: "^6.20.1",
1840
+ undici: "^6.21.3",
1840
1841
  ws: "^8.8.0"
1841
1842
  }
1842
1843
  };
package/build/node.js CHANGED
@@ -1223,7 +1223,7 @@ It seems like the service failed to start or is rejecting any connections.`;
1223
1223
  if (err.message === "Response has empty body") {
1224
1224
  return "Make sure to connect to valid hostname:port or the port is not in use.\nIf you use a grid server " + w3cCapMessage;
1225
1225
  }
1226
- if (err.message.includes("failed serving request POST /wd/hub/session: Unauthorized") && params.hostname?.endsWith("saucelabs.com")) {
1226
+ if (err.message.includes("failed serving request POST /wd/hub/session: Unauthorized") && (params.hostname === "saucelabs.com" || params.hostname?.endsWith(".saucelabs.com"))) {
1227
1227
  return "Session request was not authorized because you either did provide a wrong access key or tried to run in a region that has not been enabled for your user. If have registered a free trial account it is connected to a specific region. Ensure this region is set in your configuration (https://webdriver.io/docs/options.html#region).";
1228
1228
  }
1229
1229
  return err.message;
@@ -1331,7 +1331,8 @@ function command_default(method, endpointUri, commandInfo, doubleEncodeVariables
1331
1331
 
1332
1332
  For more info see ${ref}
1333
1333
  `;
1334
- if (typeof deprecated === "string" && !environment.value.variables.DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS) {
1334
+ const DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS = globalThis.process && globalThis.process.env ? globalThis.process.env.DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS : void 0;
1335
+ if (typeof deprecated === "string" && !DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS) {
1335
1336
  const warning = deprecated.replace("This command", `The "${command}" command`);
1336
1337
  log3.warn(warning);
1337
1338
  console.warn(`\u26A0\uFE0F [WEBDRIVERIO DEPRECATION NOTICE] ${warning}`);
@@ -1722,7 +1723,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
1722
1723
  // package.json
1723
1724
  var package_default = {
1724
1725
  name: "webdriver",
1725
- version: "9.16.2",
1726
+ version: "9.18.0",
1726
1727
  description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
1727
1728
  author: "Christian Bromann <mail@bromann.dev>",
1728
1729
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -1767,7 +1768,7 @@ var package_default = {
1767
1768
  "@wdio/utils": "workspace:*",
1768
1769
  "deepmerge-ts": "^7.0.3",
1769
1770
  "https-proxy-agent": "^7.0.6",
1770
- undici: "^6.20.1",
1771
+ undici: "^6.21.3",
1771
1772
  ws: "^8.8.0"
1772
1773
  }
1773
1774
  };
@@ -2185,7 +2186,6 @@ environment.value = {
2185
2186
  killDriverProcess,
2186
2187
  variables: {
2187
2188
  WDIO_LOG_LEVEL: process.env.WDIO_LOG_LEVEL,
2188
- DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS: process.env.DISABLE_WEBDRIVERIO_DEPRECATION_WARNINGS,
2189
2189
  WDIO_UNIT_TESTS: process.env.WDIO_UNIT_TESTS,
2190
2190
  WEBDRIVER_CACHE_DIR: process.env.WEBDRIVER_CACHE_DIR || os.tmpdir(),
2191
2191
  PROXY_URL: process.env.HTTP_PROXY || process.env.HTTPS_PROXY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "9.17.0",
3
+ "version": "9.19.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.17.0",
42
- "@wdio/logger": "9.16.2",
41
+ "@wdio/config": "9.19.0",
42
+ "@wdio/logger": "9.18.0",
43
43
  "@wdio/protocols": "9.16.2",
44
- "@wdio/types": "9.16.2",
45
- "@wdio/utils": "9.17.0",
44
+ "@wdio/types": "9.19.0",
45
+ "@wdio/utils": "9.19.0",
46
46
  "deepmerge-ts": "^7.0.3",
47
47
  "https-proxy-agent": "^7.0.6",
48
- "undici": "^6.20.1",
48
+ "undici": "^6.21.3",
49
49
  "ws": "^8.8.0"
50
50
  },
51
- "gitHead": "796df04f0f5c744d5ef4bafd3759995fa4829d6f"
51
+ "gitHead": "be9a42358a6646d48c3ce5a341761f55aa605b24"
52
52
  }