@wdio/utils 9.6.3 → 9.7.2

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 CHANGED
@@ -910,7 +910,7 @@ function wrapCommand(commandName, fn) {
910
910
  Promise.resolve(promise).then((ctx) => cmd.call(ctx, ...args)),
911
911
  {
912
912
  get: (target, prop) => {
913
- if (typeof prop === "symbol") {
913
+ if (typeof prop === "symbol" || prop === "entries") {
914
914
  return () => ({
915
915
  i: 0,
916
916
  target,
@@ -920,6 +920,9 @@ function wrapCommand(commandName, fn) {
920
920
  throw new Error("Can not iterate over non array");
921
921
  }
922
922
  if (this.i < elems.length) {
923
+ if (prop === "entries") {
924
+ return { value: [this.i, elems[this.i++]], done: false };
925
+ }
923
926
  return { value: elems[this.i++], done: false };
924
927
  }
925
928
  return { done: true };
@@ -4,7 +4,7 @@ import { type GeckodriverParameters } from 'geckodriver';
4
4
  import { type EdgedriverParameters } from 'edgedriver';
5
5
  import type { InstallOptions } from '@puppeteer/browsers';
6
6
  import type { Capabilities } from '@wdio/types';
7
- export type ChromedriverParameters = Partial<InstallOptions> & Omit<EdgedriverParameters, 'port' | 'edgeDriverVersion' | 'customEdgeDriverPath'>;
7
+ export type ChromedriverParameters = (Partial<InstallOptions> & Omit<EdgedriverParameters, 'port' | 'edgeDriverVersion' | 'customEdgeDriverPath'> & Pick<GeckodriverParameters, 'spawnOpts'>);
8
8
  declare global {
9
9
  namespace WebdriverIO {
10
10
  interface ChromedriverOptions extends ChromedriverParameters {
@@ -1 +1 @@
1
- {"version":3,"file":"startWebDriver.d.ts","sourceRoot":"","sources":["../../src/node/startWebDriver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,MAAM,oBAAoB,CAAA;AAQ1D,OAAO,EAA8B,KAAK,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAC7G,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnF,O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AAmB,GAAG,sBAAsB,CAAC,GACjF,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAC3C,CAAA;AACD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,mBAAoB,SAAQ,sBAAsB;SAAG;QAC/D,UAAU,kBAAmB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC;SAAG;QAC3E,UAAU,iBAAkB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC;SAAG;QACzE,UAAU,mBAAoB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC;SAAG;KAChF;CACJ;AAKD,wBAAsB,cAAc,CAAE,OAAO,EAAE,YAAY,CAAC,YAAY,wCAwJvE"}
package/build/node.js CHANGED
@@ -318,7 +318,8 @@ If you like to run a local browser session make sure to pick from one of the fol
318
318
  chromedriverOptions.allowedIps = chromedriverOptions.allowedIps || ["0.0.0.0"];
319
319
  const driverParams = parseParams({ port, ...chromedriverOptions });
320
320
  driverProcess = cp2.spawn(chromedriverExcecuteablePath, driverParams, {
321
- env: { ...process.env, NODE_OPTIONS: "" }
321
+ env: { ...process.env, NODE_OPTIONS: "" },
322
+ ...chromedriverOptions.spawnOpts || {}
322
323
  });
323
324
  driver = `Chromedriver v${browserVersion} with params ${driverParams.join(" ")}`;
324
325
  } else if (isSafari(caps.browserName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["../src/shim.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAuBhE;;;GAGG;AACH,UAAU,mBAAoB,SAAQ,QAAQ,CAAC,KAAK;IAChD,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,mBAAmB,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAC,UAAU,CAAA;IAC3B,SA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IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAA;CACnC;AAED,wBAAsB,oBAAoB,CAAC,CAAC,EAAG,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,QAAQ,GAAG,QAAQ,EAAO,EAAE,IAAI,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAuE/J;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,CAiOpG;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,WAAW,EAAE,IAAI,GAAE,OAAO,EAAO,EAAE,OAAO,GAAE,MAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CA2C5K"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/utils",
3
- "version": "9.6.3",
3
+ "version": "9.7.2",
4
4
  "description": "A WDIO helper utility to provide several utility functions used across the project.",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "b3371191bb85dba78b26c1640d19e5a42aff755c"
56
+ "gitHead": "63ac0e07bef1ac9e9075bbef24bd9c9340085bdc"
57
57
  }