@wdio/sauce-service 8.18.2 → 8.20.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.
- package/build/launcher.d.ts +2 -3
- package/build/launcher.d.ts.map +1 -1
- package/build/launcher.js +2 -5
- package/build/service.d.ts +2 -2
- package/build/service.d.ts.map +1 -1
- package/build/service.js +1 -2
- package/package.json +7 -7
package/build/launcher.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SauceConnectOptions, type SauceConnectInstance } from 'saucelabs';
|
|
2
2
|
import type { Services, Capabilities, Options } from '@wdio/types';
|
|
3
3
|
import type { SauceServiceConfig } from './types.js';
|
|
4
4
|
export default class SauceLauncher implements Services.ServiceInstance {
|
|
5
5
|
private _options;
|
|
6
|
-
private _capabilities;
|
|
7
6
|
private _config;
|
|
8
7
|
private _api;
|
|
9
8
|
private _sauceConnectProcess?;
|
|
10
|
-
constructor(_options: SauceServiceConfig,
|
|
9
|
+
constructor(_options: SauceServiceConfig, _: never, _config: Options.Testrunner);
|
|
11
10
|
/**
|
|
12
11
|
* modify config and launch sauce connect
|
|
13
12
|
*/
|
package/build/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC5B,MAAM,WAAW,CAAA;AAElB,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAMpD,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,QAAQ,CAAC,eAAe;IAK9D,OAAO,CAAC,QAAQ;IAEhB,OAAO,CAAC,OAAO;IANnB,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAsB;gBAGvC,QAAQ,EAAE,kBAAkB,EACpC,CAAC,EAAE,KAAK,EACA,OAAO,EAAE,OAAO,CAAC,UAAU;IAKvC;;OAEG;IACG,SAAS,CACX,MAAM,EAAE,OAAO,CAAC,UAAU,EAC1B,YAAY,EAAE,YAAY,CAAC,kBAAkB;IAmE3C,WAAW,CAAE,gBAAgB,EAAE,mBAAmB,EAAE,UAAU,SAAI,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA4BxG;;OAEG;IACH,UAAU;CAOb"}
|
package/build/launcher.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { performance, PerformanceObserver } from 'node:perf_hooks';
|
|
2
2
|
import ip from 'ip';
|
|
3
|
-
import SauceLabs from 'saucelabs';
|
|
3
|
+
import { default as SauceLabs } from 'saucelabs';
|
|
4
4
|
import logger from '@wdio/logger';
|
|
5
5
|
import { makeCapabilityFactory } from './utils.js';
|
|
6
6
|
import path from 'node:path';
|
|
@@ -8,15 +8,12 @@ const MAX_SC_START_TRIALS = 3;
|
|
|
8
8
|
const log = logger('@wdio/sauce-service');
|
|
9
9
|
export default class SauceLauncher {
|
|
10
10
|
_options;
|
|
11
|
-
_capabilities;
|
|
12
11
|
_config;
|
|
13
12
|
_api;
|
|
14
13
|
_sauceConnectProcess;
|
|
15
|
-
constructor(_options,
|
|
14
|
+
constructor(_options, _, _config) {
|
|
16
15
|
this._options = _options;
|
|
17
|
-
this._capabilities = _capabilities;
|
|
18
16
|
this._config = _config;
|
|
19
|
-
// @ts-expect-error https://github.com/saucelabs/node-saucelabs/issues/153
|
|
20
17
|
this._api = new SauceLabs.default(this._config);
|
|
21
18
|
}
|
|
22
19
|
/**
|
package/build/service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { default as SauceLabs } from 'saucelabs';
|
|
2
2
|
import type { Services, Capabilities, Options, Frameworks } from '@wdio/types';
|
|
3
3
|
import type { SauceServiceConfig } from './types.js';
|
|
4
4
|
export default class SauceService implements Services.ServiceInstance {
|
|
@@ -63,7 +63,7 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
63
63
|
/**
|
|
64
64
|
* VM message data
|
|
65
65
|
*/
|
|
66
|
-
getBody(failures: number, calledOnReload?: boolean, browserName?: string): Partial<Job>;
|
|
66
|
+
getBody(failures: number, calledOnReload?: boolean, browserName?: string): Partial<SauceLabs.Job>;
|
|
67
67
|
/**
|
|
68
68
|
* Update the running Sauce Labs Job with an annotation
|
|
69
69
|
*/
|
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":"AAGA,OAAO,EACH,OAAO,IAAI,SAAS,EAGvB,MAAM,WAAW,CAAA;AAElB,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,CAAO;IAChC,OAAO,CAAC,aAAa,CAAQ;IAE7B,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACv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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,7 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { default as SauceLabs } from 'saucelabs';
|
|
3
4
|
import logger from '@wdio/logger';
|
|
4
|
-
import SauceLabs from 'saucelabs';
|
|
5
5
|
import { isRDC, ansiRegex } from './utils.js';
|
|
6
6
|
import { DEFAULT_OPTIONS } from './constants.js';
|
|
7
7
|
const jobDataProperties = ['name', 'tags', 'public', 'build', 'custom-data'];
|
|
@@ -24,7 +24,6 @@ export default class SauceService {
|
|
|
24
24
|
this._capabilities = _capabilities;
|
|
25
25
|
this._config = _config;
|
|
26
26
|
this._options = { ...DEFAULT_OPTIONS, ...options };
|
|
27
|
-
// @ts-expect-error https://github.com/saucelabs/node-saucelabs/issues/153
|
|
28
27
|
this._api = new SauceLabs.default(this._config);
|
|
29
28
|
this._maxErrorStackLength = this._options.maxErrorStackLength || this._maxErrorStackLength;
|
|
30
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/sauce-service",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.20.0",
|
|
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",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"typeScriptVersion": "3.8.3",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@wdio/logger": "8.16.17",
|
|
34
|
-
"@wdio/types": "8.
|
|
35
|
-
"@wdio/utils": "8.
|
|
34
|
+
"@wdio/types": "8.20.0",
|
|
35
|
+
"@wdio/utils": "8.20.0",
|
|
36
36
|
"ip": "^1.1.8",
|
|
37
|
-
"saucelabs": "7.
|
|
38
|
-
"webdriverio": "8.
|
|
37
|
+
"saucelabs": "7.4.0",
|
|
38
|
+
"webdriverio": "8.20.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/ip": "^1.1.0",
|
|
42
|
-
"@wdio/globals": "8.
|
|
42
|
+
"@wdio/globals": "8.20.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6aa9e33233a6abc832bb16d2e24aaaa382e206b6"
|
|
48
48
|
}
|