@wdio/sauce-service 8.14.3 → 8.14.5
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.
- package/build/service.d.ts +2 -2
- package/build/service.d.ts.map +1 -1
- package/build/service.js +3 -10
- package/package.json +2 -2
package/build/service.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
19
19
|
/**
|
|
20
20
|
* gather information about runner
|
|
21
21
|
*/
|
|
22
|
-
beforeSession(
|
|
23
|
-
before(
|
|
22
|
+
beforeSession(_: Options.Testrunner, __: never, ___: never, cid: string): void;
|
|
23
|
+
before(_: unknown, __: string[], browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): void;
|
|
24
24
|
beforeSuite(suite: Frameworks.Suite): Promise<void>;
|
|
25
25
|
beforeTest(test: Frameworks.Test): Promise<unknown>;
|
|
26
26
|
afterSuite(suite: Frameworks.Suite): void;
|
package/build/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAoB,GAAG,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAI9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAMpD,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,QAAQ,CAAC,eAAe;IAgB7D,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAhBnB,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,oBAAoB,CAAI;IAChC,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,iBAAiB,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Aa,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,YAAY;IAOtE;;OAEG;IACG,KAAK,CAAE,MAAM,EAAE,MAAM;IAqC3B;;;;OAIG;YACW,WAAW;IAezB,QAAQ,CAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IAmB9C,SAAS,CAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,UAAQ,EAAE,WAAW,CAAC,EAAE,MAAM;IAMlG;;OAEG;IACH,OAAO,CAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,UAAQ,EAAE,WAAW,CAAC,EAAE,MAAM;IAgDvE;;OAEG;IACG,aAAa,CAAE,UAAU,EAAE,MAAM;YAezB,WAAW;CAe5B"}
|
package/build/service.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import ip from 'ip';
|
|
4
|
-
import SauceLabs from 'saucelabs';
|
|
5
3
|
import logger from '@wdio/logger';
|
|
4
|
+
import SauceLabs from 'saucelabs';
|
|
6
5
|
import { isRDC, ansiRegex } from './utils.js';
|
|
7
6
|
import { DEFAULT_OPTIONS } from './constants.js';
|
|
8
7
|
const jobDataProperties = ['name', 'tags', 'public', 'build', 'custom-data'];
|
|
@@ -32,7 +31,7 @@ export default class SauceService {
|
|
|
32
31
|
/**
|
|
33
32
|
* gather information about runner
|
|
34
33
|
*/
|
|
35
|
-
beforeSession(
|
|
34
|
+
beforeSession(_, __, ___, cid) {
|
|
36
35
|
this._cid = cid;
|
|
37
36
|
/**
|
|
38
37
|
* if no user and key is specified even though a sauce service was
|
|
@@ -47,14 +46,8 @@ export default class SauceService {
|
|
|
47
46
|
this._isServiceEnabled = false;
|
|
48
47
|
this._config.key = 'unknown_key';
|
|
49
48
|
}
|
|
50
|
-
/**
|
|
51
|
-
* update baseUrl if localhost so it can be reached by Sauce Connect
|
|
52
|
-
*/
|
|
53
|
-
if (config.baseUrl && config.baseUrl.includes('localhost')) {
|
|
54
|
-
config.baseUrl = config.baseUrl.replace(/(localhost|127\.0\.0\.1)/, ip.address());
|
|
55
|
-
}
|
|
56
49
|
}
|
|
57
|
-
before(
|
|
50
|
+
before(_, __, browser) {
|
|
58
51
|
this._browser = browser;
|
|
59
52
|
// Ensure capabilities are not null in case of multiremote
|
|
60
53
|
// Changed from `this._browser.capabilities` to this to get the correct
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/sauce-service",
|
|
3
|
-
"version": "8.14.
|
|
3
|
+
"version": "8.14.5",
|
|
4
4
|
"description": "WebdriverIO service that provides a better integration into Sauce Labs",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-sauce-service",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "62434fe2a35ba215430db69b07d4330c30c33e64"
|
|
47
47
|
}
|