webdriver 8.23.0 → 8.24.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.
@@ -21,7 +21,7 @@ export class RequestLibError extends Error {
21
21
  body;
22
22
  code;
23
23
  }
24
- const ONE_SECOND = 1000 * 1;
24
+ const MAX_RETRY_TIMEOUT = 100; // 100ms
25
25
  const DEFAULT_HEADERS = {
26
26
  'Content-Type': 'application/json; charset=utf-8',
27
27
  'Connection': 'keep-alive',
@@ -73,7 +73,7 @@ export default class WebDriverRequest extends EventEmitter {
73
73
  retry: {
74
74
  limit: options.connectionRetryCount,
75
75
  methods: RETRY_METHODS,
76
- calculateDelay: ({ computedValue }) => Math.min(ONE_SECOND, computedValue / 10)
76
+ calculateDelay: ({ computedValue }) => Math.min(MAX_RETRY_TIMEOUT, computedValue / 10)
77
77
  },
78
78
  timeout: { response: options.connectionRetryTimeout }
79
79
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "8.23.0",
3
+ "version": "8.24.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": "8.23.0",
41
+ "@wdio/config": "8.24.0",
42
42
  "@wdio/logger": "8.16.17",
43
43
  "@wdio/protocols": "8.23.0",
44
- "@wdio/types": "8.23.0",
45
- "@wdio/utils": "8.23.0",
44
+ "@wdio/types": "8.24.0",
45
+ "@wdio/utils": "8.24.0",
46
46
  "deepmerge-ts": "^5.1.0",
47
47
  "got": "^ 12.6.1",
48
48
  "ky": "^0.33.0",
49
49
  "ws": "^8.8.0"
50
50
  },
51
- "gitHead": "b17ce5f554deb8588cc156ad9676bd4bd13defe7"
51
+ "gitHead": "5fe7908a837461102ada6edf71c160f2c66dd88f"
52
52
  }