webdriver 7.16.0 → 7.16.9

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":"browser.d.ts","sourceRoot":"","sources":["../../src/request/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,gBAAgB,MAAM,SAAS,CAAA;AAGtC,aAAK,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAClD,aAAK,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;AAU7D,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,gBAAgB;gBAE3C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAe;IAI5G,SAAS,CAAC,cAAc,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,iBAAiB;cAIzE,WAAW,CAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB;;;;CA2BpE"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/request/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,gBAAgB,MAAM,SAAS,CAAA;AAGtC,aAAK,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAClD,aAAK,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;AAU7D,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,gBAAgB;gBAE3C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAe;IAI5G,SAAS,CAAC,cAAc,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,iBAAiB;cAIzE,WAAW,CAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB;;;;CA8BpE"}
@@ -28,10 +28,11 @@ class BrowserRequest extends index_1.default {
28
28
  log.info(`Browser-based webdriver does not support the '${String(opt)}' option; behavior may be unexpected`);
29
29
  continue;
30
30
  }
31
+ // @ts-expect-error
31
32
  kyOptions[opt] = options[opt];
32
33
  }
33
34
  if (options.username && options.password) {
34
- const encodedAuth = btoa(`${options.username}:${options.password}`);
35
+ const encodedAuth = Buffer.from(`${options.username}:${options.password}`, 'utf8').toString('base64');
35
36
  kyOptions.headers = {
36
37
  ...kyOptions.headers,
37
38
  Authorization: `Basic ${encodedAuth}`
package/build/utils.js CHANGED
@@ -38,7 +38,7 @@ async function startWebDriverSession(params) {
38
38
  throw new Error(`Invalid or unsupported WebDriver capabilities found ("${invalidWebDriverCaps.join('", "')}"). ` +
39
39
  'Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities).' +
40
40
  'If you run your tests on a remote vendor, like Sauce Labs or BrowserStack, make sure that you put them ' +
41
- 'into vendor specific capabilities, e.g. "sauce:options" or "browserstack:options". Please reach out to ' +
41
+ 'into vendor specific capabilities, e.g. "sauce:options" or "bstack:options". Please reach out to ' +
42
42
  'to your vendor support team if you have further questions.');
43
43
  }
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "7.16.0",
3
+ "version": "7.16.9",
4
4
  "description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -26,14 +26,14 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@types/node": "^16.11.1",
29
- "@wdio/config": "7.16.0",
29
+ "@wdio/config": "7.16.3",
30
30
  "@wdio/logger": "7.16.0",
31
- "@wdio/protocols": "7.16.0",
32
- "@wdio/types": "7.16.0",
33
- "@wdio/utils": "7.16.0",
31
+ "@wdio/protocols": "7.16.7",
32
+ "@wdio/types": "7.16.3",
33
+ "@wdio/utils": "7.16.3",
34
34
  "got": "^11.0.2",
35
35
  "ky": "^0.28.5",
36
36
  "lodash.merge": "^4.6.1"
37
37
  },
38
- "gitHead": "2b650b1def58bc7a6c22cb093548c19e63b75f80"
38
+ "gitHead": "6bde2017b37bd3bf80feb3ebb0f9b7df89ce0c7f"
39
39
  }