@wdio/utils 8.40.0 → 8.40.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.
@@ -85,7 +85,7 @@ export declare const SUPPORTED_BROWSERNAMES: {
85
85
  edge: string[];
86
86
  safari: string[];
87
87
  };
88
- export declare const DEFAULT_HOSTNAME = "0.0.0.0";
88
+ export declare const DEFAULT_HOSTNAME = "127.0.0.1";
89
89
  export declare const DEFAULT_PROTOCOL = "http";
90
90
  export declare const DEFAULT_PATH = "/";
91
91
  export declare const HOOK_DEFINITION: {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ErB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAY,CAAA;AACzC,eAAO,MAAM,gBAAgB,SAAS,CAAA;AACtC,eAAO,MAAM,YAAY,MAAM,CAAA;AAE/B,eAAO,MAAM,eAAe;;sBAEN,GAAG;CAsBxB,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ErB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAA;AAED,eAAO,MAAM,gBAAgB,cAAc,CAAA;AAC3C,eAAO,MAAM,gBAAgB,SAAS,CAAA;AACtC,eAAO,MAAM,YAAY,MAAM,CAAA;AAE/B,eAAO,MAAM,eAAe;;sBAEN,GAAG;CAsBxB,CAAA"}
@@ -85,7 +85,7 @@ export const SUPPORTED_BROWSERNAMES = {
85
85
  edge: ['edge', 'microsoftedge', 'msedge'],
86
86
  safari: ['safari', 'safari technology preview']
87
87
  };
88
- export const DEFAULT_HOSTNAME = '0.0.0.0';
88
+ export const DEFAULT_HOSTNAME = '127.0.0.1';
89
89
  export const DEFAULT_PROTOCOL = 'http';
90
90
  export const DEFAULT_PATH = '/';
91
91
  /* istanbul ignore next */
@@ -12,7 +12,7 @@ import { start as startGeckodriver } from 'geckodriver';
12
12
  import { start as startEdgedriver, findEdgePath } from 'edgedriver';
13
13
  import { parseParams, setupPuppeteerBrowser, setupChromedriver, getCacheDir } from './utils.js';
14
14
  import { isChrome, isFirefox, isEdge, isSafari, isAppiumCapability } from '../utils.js';
15
- import { SUPPORTED_BROWSERNAMES } from '../constants.js';
15
+ import { DEFAULT_HOSTNAME, SUPPORTED_BROWSERNAMES } from '../constants.js';
16
16
  const log = logger('@wdio/utils');
17
17
  const DRIVER_WAIT_TIMEOUT = 10 * 1000; // 10s
18
18
  export async function startWebDriver(options) {
@@ -20,7 +20,7 @@ export async function startWebDriver(options) {
20
20
  * in case we are running unit tests, just return
21
21
  */
22
22
  if (process.env.WDIO_SKIP_DRIVER_SETUP) {
23
- options.hostname = '0.0.0.0';
23
+ options.hostname = DEFAULT_HOSTNAME;
24
24
  options.port = 4321;
25
25
  return;
26
26
  }
@@ -142,7 +142,7 @@ export async function startWebDriver(options) {
142
142
  }
143
143
  await waitPort({ port, output: 'silent', timeout: DRIVER_WAIT_TIMEOUT })
144
144
  .catch((e) => { throw new Error(`Timed out to connect to ${driver}: ${e.message}`); });
145
- options.hostname = '0.0.0.0';
145
+ options.hostname = DEFAULT_HOSTNAME;
146
146
  options.port = port;
147
147
  log.info(`Started ${driver} in ${Date.now() - start}ms on port ${port}`);
148
148
  return driverProcess;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/utils",
3
- "version": "8.40.0",
3
+ "version": "8.40.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",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "9c3681f32fd96f81c9f1e07790edd76e6b40609a"
57
+ "gitHead": "4cade71f6be0b8c53c48918b9a6da37a6ad21835"
58
58
  }