@wdio/utils 8.15.0 → 8.15.4

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.
@@ -24,11 +24,14 @@ export declare function setupChromedriver(cacheDir: string, driverVersion?: stri
24
24
  export declare function setupGeckodriver(cacheDir: string, driverVersion?: string): Promise<string>;
25
25
  export declare function setupEdgedriver(cacheDir: string, driverVersion?: string): Promise<string>;
26
26
  /**
27
- * helper method to determine if we need to start a browser driver
28
- * which is: whenever the user has set connection options that differ from
29
- * the default, or a port is set
27
+ * helper method to determine if we need to setup a browser driver
28
+ * which is:
29
+ * - whenever the user has set connection options that differ
30
+ * from the default, or a port is set
31
+ * - whenever the user defines `user` and `key` which later will
32
+ * update the connection options
30
33
  */
31
- export declare function definesRemoteDriver(options: Pick<Options.WebDriver, 'protocol' | 'hostname' | 'port' | 'path'>): boolean;
34
+ export declare function definesRemoteDriver(options: Pick<Options.WebDriver, 'user' | 'key' | 'protocol' | 'hostname' | 'port' | 'path'>): boolean;
32
35
  export declare function isChrome(browserName?: string): boolean;
33
36
  export declare function isSafari(browserName?: string): boolean;
34
37
  export declare function isFirefox(browserName?: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/driver/utils.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAOxD,wBAAgB,WAAW,CAAC,MAAM,EAAE,oBAAoB,YAYvD;AAED,wBAAgB,kBAAkB,uBAOjC;AAED,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,MAAM,sBAenD;AAGD,eAAO,MAAM,wBAAwB,aAAc,MAAM,mBAAmB,MAAM,cAAc,MAAM,SAOrG,CAAA;AAED,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAA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CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,YAAY;;;;;;;;;;;;GAmDlF;AAED,wBAAgB,WAAW,CAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,YAAY,UASzG;AAED,wBAAsB,iBAAiB,CAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;;GA8DhF;AAED,wBAAgB,gBAAgB,CAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,mBAEzE;AAED,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,mBAExE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC,WAQ/H;AAED,wBAAgB,QAAQ,CAAE,WAAW,CAAC,EAAE,MAAM,WAE7C;AACD,wBAAgB,QAAQ,CAAE,WAAW,CAAC,EAAE,MAAM,WAE7C;AACD,wBAAgB,SAAS,CAAE,WAAW,CAAC,EAAE,MAAM,WAE9C;AACD,wBAAgB,MAAM,CAAE,WAAW,CAAC,EAAE,MAAM,WAE3C"}
@@ -183,15 +183,19 @@ export function setupEdgedriver(cacheDir, driverVersion) {
183
183
  return downloadEdgedriver(driverVersion, cacheDir);
184
184
  }
185
185
  /**
186
- * helper method to determine if we need to start a browser driver
187
- * which is: whenever the user has set connection options that differ from
188
- * the default, or a port is set
186
+ * helper method to determine if we need to setup a browser driver
187
+ * which is:
188
+ * - whenever the user has set connection options that differ
189
+ * from the default, or a port is set
190
+ * - whenever the user defines `user` and `key` which later will
191
+ * update the connection options
189
192
  */
190
193
  export function definesRemoteDriver(options) {
191
194
  return Boolean((options.protocol && options.protocol !== DEFAULT_PROTOCOL) ||
192
195
  (options.hostname && options.hostname !== DEFAULT_HOSTNAME) ||
193
196
  Boolean(options.port) ||
194
- (options.path && options.path !== DEFAULT_PATH));
197
+ (options.path && options.path !== DEFAULT_PATH) ||
198
+ Boolean(options.user && options.key));
195
199
  }
196
200
  export function isChrome(browserName) {
197
201
  return Boolean(browserName && SUPPORTED_BROWSERNAMES.chrome.includes(browserName.toLowerCase()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/utils",
3
- "version": "8.15.0",
3
+ "version": "8.15.4",
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",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "78e199c5ffd74bdf3a5576952c3834c29afa989f"
50
+ "gitHead": "528fe3a1d3d37a44f58882a65170971f38461add"
51
51
  }