@wdio/webdriver-mock-service 8.34.1 → 9.0.0-alpha.9

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,9 +1,9 @@
1
1
  import nock from 'nock';
2
- import { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol } from '@wdio/protocols';
2
+ import { WebDriverProtocol, MJsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol } from '@wdio/protocols';
3
3
  const REGEXP_SESSION_ID = /\/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}/;
4
4
  const SESSION_ID = 'XXX';
5
5
  const protocols = [
6
- JsonWProtocol, WebDriverProtocol, MJsonWProtocol, AppiumProtocol,
6
+ WebDriverProtocol, MJsonWProtocol, AppiumProtocol,
7
7
  ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol
8
8
  ];
9
9
  const protocolFlattened = new Map();
package/build/index.d.ts CHANGED
@@ -27,4 +27,9 @@ export default class WebdriverMockService implements Services.ServiceInstance {
27
27
  * export for 3rd party usage
28
28
  */
29
29
  export { WebDriverMock };
30
+ export declare const launcher: {
31
+ new (): {
32
+ onPrepare(config: WebdriverIO.Config): void;
33
+ };
34
+ };
30
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAEpD,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAW9C,MAAM,CAAC,OAAO,OAAO,oBAAqB,YAAW,QAAQ,CAAC,eAAe;IACzE,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,KAAK,CAAsB;;IAMnC,IAAI;IAgBJ,a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AAsB;IAUtB,wBAAwB;IASxB,gBAAgB;IAShB,SAAS;CAIZ;AAED;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAA;AAExB,eAAO,MAAM,QAAQ;;0BACC,YAAY,MAAM;;CAIvC,CAAA"}
package/build/index.js CHANGED
@@ -181,3 +181,9 @@ export default class WebdriverMockService {
181
181
  * export for 3rd party usage
182
182
  */
183
183
  export { WebDriverMock };
184
+ export const launcher = class WebdriverMockLauncher {
185
+ onPrepare(config) {
186
+ config.hostname = 'localhost';
187
+ config.port = 4444;
188
+ }
189
+ };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wdio/webdriver-mock-service",
3
- "version": "8.34.1",
3
+ "version": "9.0.0-alpha.9+9220932b7",
4
4
  "description": "A WebdriverIO service to stub all endpoints for internal testing purposes.",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-webdriver-mock-service",
7
7
  "license": "MIT",
8
8
  "engines": {
9
- "node": "^16.13 || >=18"
9
+ "node": ">=18"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -26,17 +26,17 @@
26
26
  "typeScriptVersion": "3.8.3",
27
27
  "dependencies": {
28
28
  "@types/uuid": "^9.0.0",
29
- "@wdio/protocols": "8.32.0",
30
- "@wdio/types": "8.32.4",
31
- "nock": "^13.2.4",
29
+ "@wdio/protocols": "9.0.0-alpha.9+9220932b7",
30
+ "@wdio/types": "9.0.0-alpha.9+9220932b7",
31
+ "nock": "14.0.0-beta.5",
32
32
  "uuid": "^9.0.0",
33
- "webdriverio": "8.34.1"
33
+ "webdriverio": "9.0.0-alpha.9+9220932b7"
34
34
  },
35
35
  "devDependencies": {
36
- "@wdio/globals": "8.34.1"
36
+ "@wdio/globals": "9.0.0-alpha.9+9220932b7"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "224614b872993c0a3ef196014f1f986af4b08311"
41
+ "gitHead": "9220932b7048d9b5b6c8397dda54842625be7ef2"
42
42
  }