webdriver 8.19.0 → 8.20.3

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,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { EventEmitter } from 'node:events';
3
3
  import WebSocket from 'ws';
4
4
  import type { CommandData } from './remoteTypes.js';
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  function command(method, encodeUri, commandInfo, doubleEncodeVariables = false) {
2
4
  return async function protocolCommand(...args) {
3
5
  const commandESM = await import('../command.js');
@@ -36,4 +38,3 @@ class WebDriver {
36
38
  }
37
39
  module.exports = WebDriver;
38
40
  exports.command = command;
39
-
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { ChildProcess } from 'node:child_process';
3
3
  import type { CommandEndpoint, BidiResponse } from '@wdio/protocols';
4
4
  import type { BidiHandler } from './bidi/handler.js';
package/build/index.d.ts CHANGED
@@ -25,4 +25,6 @@ export default class WebDriver {
25
25
  export { getPrototype, DEFAULTS, command, getEnvironmentVars };
26
26
  export * from './types.js';
27
27
  export * from './bidi/handler.js';
28
+ export * as local from './bidi/localTypes.js';
29
+ export * as remote from './bidi/remoteTypes.js';
28
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAA;AAExD,OAAO,OAAO,MAAM,cAAc,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAyB,YAAY,EAAE,kBAAkB,EAAsB,MAAM,YAAY,CAAA;AACxG,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAgB,MAAM,YAAY,CAAA;AA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AAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAC/C,OAAO,CAAC,MAAM,CAAC;IAkDlB;;OAEG;IACH,MAAM,CAAC,eAAe,CAClB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACzC,MAAM;IA0BT;;;;;;OAMG;WACU,aAAa,CAAC,QAAQ,EAAE,MAAM;IAW3C,MAAM,KAAK,SAAS,qBAEnB;CACJ;AAED;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAC9D,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAA"}
package/build/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import path from 'node:path';
2
1
  import logger from '@wdio/logger';
3
2
  import { webdriverMonad, sessionEnvironmentDetector, startWebDriver } from '@wdio/utils';
4
3
  import { validateConfig } from '@wdio/config';
@@ -15,12 +14,6 @@ export default class WebDriver {
15
14
  if (params.logLevel && (!options.logLevels || !options.logLevels.webdriver)) {
16
15
  logger.setLevel('webdriver', params.logLevel);
17
16
  }
18
- /**
19
- * Store all log events in a file
20
- */
21
- if (params.outputDir && !process.env.WDIO_LOG_PATH) {
22
- process.env.WDIO_LOG_PATH = path.join(params.outputDir, 'wdio.log');
23
- }
24
17
  log.info('Initiate new session using the WebDriver protocol');
25
18
  const driverProcess = await startWebDriver(params);
26
19
  const requestedCapabilities = { ...params.capabilities };
@@ -105,3 +98,5 @@ export default class WebDriver {
105
98
  export { getPrototype, DEFAULTS, command, getEnvironmentVars };
106
99
  export * from './types.js';
107
100
  export * from './bidi/handler.js';
101
+ export * as local from './bidi/localTypes.js';
102
+ export * as remote from './bidi/remoteTypes.js';
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { URL as URLType } from 'node:url';
3
3
  import type WebDriverRequest from './index.js';
4
4
  export default class RequestFactory {
@@ -1,5 +1,5 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
3
  import { EventEmitter } from 'node:events';
4
4
  import type { URL } from 'node:url';
5
5
  import type { Options } from '@wdio/types';
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { URL } from 'node:url';
3
3
  import type { Options } from '@wdio/types';
4
4
  import WebDriverRequest from './index.js';
package/build/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { EventEmitter } from 'node:events';
3
3
  import type { Options, Capabilities } from '@wdio/types';
4
4
  import type { ProtocolCommands } from '@wdio/protocols';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "8.19.0",
3
+ "version": "8.20.3",
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.19.0",
41
+ "@wdio/config": "8.20.3",
42
42
  "@wdio/logger": "8.16.17",
43
- "@wdio/protocols": "8.18.0",
44
- "@wdio/types": "8.19.0",
45
- "@wdio/utils": "8.19.0",
43
+ "@wdio/protocols": "8.20.3",
44
+ "@wdio/types": "8.20.0",
45
+ "@wdio/utils": "8.20.3",
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": "5179b3b3d0bced033e719890baf4517137ac1576"
51
+ "gitHead": "963b578edcfd5636994662122ebac35b0bd641f1"
52
52
  }