@applitools/core 3.10.4 → 3.11.1
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/CHANGELOG.md +59 -0
- package/dist/core.js +13 -3
- package/dist/make-manager.js +3 -3
- package/dist/open-eyes.js +2 -2
- package/dist/ufg/core.js +2 -2
- package/dist/ufg/get-ufg-client.js +2 -2
- package/package.json +11 -11
- package/types/core.d.ts +3 -2
- package/types/make-manager.d.ts +3 -2
- package/types/open-eyes.d.ts +3 -2
- package/types/ufg/core.d.ts +3 -2
- package/types/ufg/get-ufg-client.d.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.11.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.11.0...js/core@3.11.1) (2023-09-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add support to shadow dom iframe ([#1925](https://github.com/applitools/eyes.sdk.javascript1/issues/1925)) ([a06b955](https://github.com/applitools/eyes.sdk.javascript1/commit/a06b9555a3b37918fe43a90e92c0a94f765151cc))
|
|
9
|
+
* async cache key - avoid undefined keys and ready promise ([#1929](https://github.com/applitools/eyes.sdk.javascript1/issues/1929)) ([8654f99](https://github.com/applitools/eyes.sdk.javascript1/commit/8654f99d92403f1e59bf8e2f6fbc32ba467e3037))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* @applitools/snippets bumped to 2.4.24
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* add support to shadow dom iframe ([#1925](https://github.com/applitools/eyes.sdk.javascript1/issues/1925)) ([a06b955](https://github.com/applitools/eyes.sdk.javascript1/commit/a06b9555a3b37918fe43a90e92c0a94f765151cc))
|
|
18
|
+
* @applitools/spec-driver-selenium bumped to 1.5.59
|
|
19
|
+
|
|
20
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.1
|
|
21
|
+
|
|
22
|
+
* @applitools/ufg-client bumped to 1.9.1
|
|
23
|
+
#### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* async cache key - avoid undefined keys and ready promise ([#1929](https://github.com/applitools/eyes.sdk.javascript1/issues/1929)) ([8654f99](https://github.com/applitools/eyes.sdk.javascript1/commit/8654f99d92403f1e59bf8e2f6fbc32ba467e3037))
|
|
26
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.45
|
|
27
|
+
|
|
28
|
+
* @applitools/screenshoter bumped to 3.8.11
|
|
29
|
+
|
|
30
|
+
* @applitools/nml-client bumped to 1.5.11
|
|
31
|
+
|
|
32
|
+
* @applitools/ec-client bumped to 1.7.9
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* change expiration time of the tunnel ([c019241](https://github.com/applitools/eyes.sdk.javascript1/commit/c0192411410135b23f3ae47dd62fbef67be66f1a))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* @applitools/driver bumped to 1.14.1
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [3.11.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.10.4...js/core@3.11.0) (2023-09-13)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* change cache to support distributed cache ([#1913](https://github.com/applitools/eyes.sdk.javascript1/issues/1913)) ([32cc257](https://github.com/applitools/eyes.sdk.javascript1/commit/32cc2574500ac512167f4199c456d8b0349954f7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* upgrade dom-capture to get font-family in DOM ([f62cee4](https://github.com/applitools/eyes.sdk.javascript1/commit/f62cee495ba3b301dda04160e4e13c7e380ef40b))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Dependencies
|
|
56
|
+
|
|
57
|
+
* @applitools/ufg-client bumped to 1.9.0
|
|
58
|
+
#### Features
|
|
59
|
+
|
|
60
|
+
* change cache to support distributed cache ([#1913](https://github.com/applitools/eyes.sdk.javascript1/issues/1913)) ([32cc257](https://github.com/applitools/eyes.sdk.javascript1/commit/32cc2574500ac512167f4199c456d8b0349954f7))
|
|
61
|
+
|
|
3
62
|
## [3.10.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.10.3...js/core@3.10.4) (2023-09-12)
|
|
4
63
|
|
|
5
64
|
|
package/dist/core.js
CHANGED
|
@@ -40,7 +40,7 @@ const close_batch_1 = require("./close-batch");
|
|
|
40
40
|
const delete_test_1 = require("./delete-test");
|
|
41
41
|
const extract_environment_1 = require("./utils/extract-environment");
|
|
42
42
|
const utils = __importStar(require("@applitools/utils"));
|
|
43
|
-
function makeCore({ spec, clients, concurrency, base: defaultBase, environment: defaultEnvironment, agentId = 'core', cwd = process.cwd(), logger: defaultLogger, } = {}) {
|
|
43
|
+
function makeCore({ spec, clients, concurrency, base: defaultBase, environment: defaultEnvironment, agentId = 'core', cwd = process.cwd(), logger: defaultLogger, asyncCache, } = {}) {
|
|
44
44
|
const logger = (0, logger_1.makeLogger)({ logger: defaultLogger, format: { label: 'core' } });
|
|
45
45
|
const environment = (0, extract_environment_1.extractEnvironment)(defaultEnvironment);
|
|
46
46
|
logger.log(`Core is initialized ${defaultBase ? 'with' : 'without'} custom base core and environment`, environment);
|
|
@@ -53,11 +53,21 @@ function makeCore({ spec, clients, concurrency, base: defaultBase, environment:
|
|
|
53
53
|
getNMLClient: (0, get_nml_client_1.makeGetNMLClient)({ client: clients === null || clients === void 0 ? void 0 : clients.nml, logger }),
|
|
54
54
|
getECClient: (0, get_ec_client_1.makeGetECClient)({ logger }),
|
|
55
55
|
getAccountInfo: (0, get_account_info_1.makeGetAccountInfo)({ core, logger }),
|
|
56
|
-
makeManager: (0, make_manager_1.makeMakeManager)({
|
|
56
|
+
makeManager: (0, make_manager_1.makeMakeManager)({
|
|
57
|
+
spec,
|
|
58
|
+
clients,
|
|
59
|
+
concurrency,
|
|
60
|
+
core,
|
|
61
|
+
base: defaultBase,
|
|
62
|
+
agentId,
|
|
63
|
+
environment,
|
|
64
|
+
asyncCache,
|
|
65
|
+
logger,
|
|
66
|
+
}),
|
|
57
67
|
locate: (0, locate_1.makeLocate)({ spec, core, logger }),
|
|
58
68
|
locateText: (0, locate_text_1.makeLocateText)({ spec, core, logger }),
|
|
59
69
|
extractText: (0, extract_text_1.makeExtractText)({ spec, core, logger }),
|
|
60
|
-
openEyes: (0, open_eyes_1.makeOpenEyes)({ spec, clients, core, concurrency, environment, logger }),
|
|
70
|
+
openEyes: (0, open_eyes_1.makeOpenEyes)({ spec, clients, core, concurrency, environment, asyncCache, logger }),
|
|
61
71
|
closeBatch: (0, close_batch_1.makeCloseBatch)({ core, logger }),
|
|
62
72
|
deleteTest: (0, delete_test_1.makeDeleteTest)({ core, logger }),
|
|
63
73
|
};
|
package/dist/make-manager.js
CHANGED
|
@@ -30,7 +30,7 @@ const core_2 = require("./ufg/core");
|
|
|
30
30
|
const open_eyes_1 = require("./open-eyes");
|
|
31
31
|
const get_manager_results_1 = require("./get-manager-results");
|
|
32
32
|
const utils = __importStar(require("@applitools/utils"));
|
|
33
|
-
function makeMakeManager({ spec, clients, concurrency: defaultConcurrency = utils.general.getEnvValue('CONCURRENCY', 'number'), core, base, agentId: defaultAgentId, environment, cwd = process.cwd(), logger: mainLogger, }) {
|
|
33
|
+
function makeMakeManager({ spec, clients, concurrency: defaultConcurrency = utils.general.getEnvValue('CONCURRENCY', 'number'), core, base, agentId: defaultAgentId, environment, cwd = process.cwd(), logger: mainLogger, asyncCache, }) {
|
|
34
34
|
return async function makeManager({ type = 'classic', settings, logger = mainLogger, } = {}) {
|
|
35
35
|
var _a, _b, _c, _d, _e;
|
|
36
36
|
var _f;
|
|
@@ -43,12 +43,12 @@ function makeMakeManager({ spec, clients, concurrency: defaultConcurrency = util
|
|
|
43
43
|
logger.log('Command "makeManager" is called with settings', settings);
|
|
44
44
|
base !== null && base !== void 0 ? base : (base = (0, core_base_1.makeCore)({ agentId: settings.agentId, concurrency: settings.concurrency, cwd, logger }));
|
|
45
45
|
const cores = {
|
|
46
|
-
ufg: (0, core_2.makeCore)({ spec, base, fetchConcurrency: settings.fetchConcurrency, logger }),
|
|
46
|
+
ufg: (0, core_2.makeCore)({ spec, base, fetchConcurrency: settings.fetchConcurrency, asyncCache, logger }),
|
|
47
47
|
classic: (0, core_1.makeCore)({ spec, base, logger }),
|
|
48
48
|
};
|
|
49
49
|
const storage = [];
|
|
50
50
|
return {
|
|
51
|
-
openEyes: utils.general.wrap((0, open_eyes_1.makeOpenEyes)({ type, clients, batch: settings.batch, spec, core, cores, environment, logger }), async (openEyes, options) => {
|
|
51
|
+
openEyes: utils.general.wrap((0, open_eyes_1.makeOpenEyes)({ type, clients, batch: settings.batch, spec, core, cores, environment, asyncCache, logger }), async (openEyes, options) => {
|
|
52
52
|
const eyes = await openEyes(options);
|
|
53
53
|
storage.push(eyes);
|
|
54
54
|
return eyes;
|
package/dist/open-eyes.js
CHANGED
|
@@ -34,7 +34,7 @@ const close_1 = require("./close");
|
|
|
34
34
|
const abort_1 = require("./abort");
|
|
35
35
|
const get_eyes_results_1 = require("./get-eyes-results");
|
|
36
36
|
const utils = __importStar(require("@applitools/utils"));
|
|
37
|
-
function makeOpenEyes({ type: defaultType = 'classic', clients, concurrency, batch, core, cores, spec, environment, logger: mainLogger, }) {
|
|
37
|
+
function makeOpenEyes({ type: defaultType = 'classic', clients, concurrency, batch, core, cores, spec, environment, logger: mainLogger, asyncCache, }) {
|
|
38
38
|
return async function openEyes({ type = defaultType, settings, config, target, logger = mainLogger, }) {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
40
40
|
var _v, _w, _x, _y;
|
|
@@ -75,7 +75,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, concurrency, bat
|
|
|
75
75
|
settings: settings,
|
|
76
76
|
target: driver,
|
|
77
77
|
cores: cores !== null && cores !== void 0 ? cores : {
|
|
78
|
-
ufg: (0, core_2.makeCore)({ spec, clients, base: core.base, concurrency: concurrency !== null && concurrency !== void 0 ? concurrency : 5, logger }),
|
|
78
|
+
ufg: (0, core_2.makeCore)({ spec, clients, base: core.base, concurrency: concurrency !== null && concurrency !== void 0 ? concurrency : 5, asyncCache, logger }),
|
|
79
79
|
classic: (0, core_1.makeCore)({ spec, clients, base: core.base, logger }),
|
|
80
80
|
},
|
|
81
81
|
logger,
|
package/dist/ufg/core.js
CHANGED
|
@@ -35,7 +35,7 @@ const get_nml_client_1 = require("../automation/get-nml-client");
|
|
|
35
35
|
const get_ufg_client_1 = require("./get-ufg-client");
|
|
36
36
|
const open_eyes_1 = require("./open-eyes");
|
|
37
37
|
const utils = __importStar(require("@applitools/utils"));
|
|
38
|
-
function makeCore({ spec, clients, base, concurrency, fetchConcurrency, agentId = 'core-ufg', cwd = process.cwd(), logger: defaultLogger, }) {
|
|
38
|
+
function makeCore({ spec, clients, base, concurrency, fetchConcurrency, agentId = 'core-ufg', cwd = process.cwd(), logger: defaultLogger, asyncCache, }) {
|
|
39
39
|
const logger = (0, logger_1.makeLogger)({ logger: defaultLogger, format: { label: 'core-ufg' } });
|
|
40
40
|
logger.log(`Core ufg is initialized ${base ? 'with' : 'without'} custom base core`);
|
|
41
41
|
base !== null && base !== void 0 ? base : (base = (0, core_base_1.makeCore)({ concurrency, agentId, cwd, logger }));
|
|
@@ -48,7 +48,7 @@ function makeCore({ spec, clients, base, concurrency, fetchConcurrency, agentId
|
|
|
48
48
|
locate: (0, locate_1.makeLocate)({ spec, core, logger }),
|
|
49
49
|
locateText: (0, locate_text_1.makeLocateText)({ spec, core, logger }),
|
|
50
50
|
extractText: (0, extract_text_1.makeExtractText)({ spec, core, logger }),
|
|
51
|
-
getUFGClient: (0, get_ufg_client_1.makeGetUFGClient)({ client: clients === null || clients === void 0 ? void 0 : clients.ufg, fetchConcurrency, logger }),
|
|
51
|
+
getUFGClient: (0, get_ufg_client_1.makeGetUFGClient)({ client: clients === null || clients === void 0 ? void 0 : clients.ufg, fetchConcurrency, asyncCache, logger }),
|
|
52
52
|
getNMLClient: (0, get_nml_client_1.makeGetNMLClient)({ client: clients === null || clients === void 0 ? void 0 : clients.nml, logger }),
|
|
53
53
|
openEyes: (0, open_eyes_1.makeOpenEyes)({ spec, core, logger }),
|
|
54
54
|
};
|
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.makeGetUFGClient = void 0;
|
|
27
27
|
const ufg_client_1 = require("@applitools/ufg-client");
|
|
28
28
|
const utils = __importStar(require("@applitools/utils"));
|
|
29
|
-
function makeGetUFGClient({ client, fetchConcurrency, logger: mainLogger }) {
|
|
29
|
+
function makeGetUFGClient({ client, fetchConcurrency, logger: mainLogger, asyncCache }) {
|
|
30
30
|
// we are caching by the server config, therefor if the user creates another Runner / manager with the same server config but different
|
|
31
31
|
// fetchConcurrency, it will not take any affect.
|
|
32
32
|
const getUFGClientWithCache = utils.general.cachify(getUFGClient, ([options]) => client ? 'default' : [{ ...options.settings, fetchConcurrency: undefined }]);
|
|
@@ -39,7 +39,7 @@ function makeGetUFGClient({ client, fetchConcurrency, logger: mainLogger }) {
|
|
|
39
39
|
? utils.general.getEnvValue('TUNNEL_IDS')
|
|
40
40
|
: undefined;
|
|
41
41
|
return (0, ufg_client_1.makeUFGClient)({
|
|
42
|
-
settings: { ...settings, fetchConcurrency, tunnelIds },
|
|
42
|
+
settings: { ...settings, fetchConcurrency, tunnelIds, asyncCache },
|
|
43
43
|
logger,
|
|
44
44
|
});
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@applitools/core-base": "1.6.0",
|
|
69
|
-
"@applitools/dom-capture": "11.2.
|
|
69
|
+
"@applitools/dom-capture": "11.2.3",
|
|
70
70
|
"@applitools/dom-snapshot": "4.7.11",
|
|
71
|
-
"@applitools/driver": "1.14.
|
|
72
|
-
"@applitools/ec-client": "1.7.
|
|
71
|
+
"@applitools/driver": "1.14.1",
|
|
72
|
+
"@applitools/ec-client": "1.7.9",
|
|
73
73
|
"@applitools/logger": "2.0.10",
|
|
74
|
-
"@applitools/nml-client": "1.5.
|
|
74
|
+
"@applitools/nml-client": "1.5.11",
|
|
75
75
|
"@applitools/req": "1.6.0",
|
|
76
|
-
"@applitools/screenshoter": "3.8.
|
|
77
|
-
"@applitools/snippets": "2.4.
|
|
76
|
+
"@applitools/screenshoter": "3.8.11",
|
|
77
|
+
"@applitools/snippets": "2.4.24",
|
|
78
78
|
"@applitools/socket": "1.1.10",
|
|
79
|
-
"@applitools/spec-driver-webdriver": "1.0.
|
|
80
|
-
"@applitools/ufg-client": "1.
|
|
79
|
+
"@applitools/spec-driver-webdriver": "1.0.45",
|
|
80
|
+
"@applitools/ufg-client": "1.9.1",
|
|
81
81
|
"@applitools/utils": "1.6.0",
|
|
82
82
|
"@types/ws": "8.5.5",
|
|
83
83
|
"abort-controller": "3.0.0",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@applitools/bongo": "^5.6.1",
|
|
92
|
-
"@applitools/spec-driver-puppeteer": "^1.2.
|
|
93
|
-
"@applitools/spec-driver-selenium": "^1.5.
|
|
92
|
+
"@applitools/spec-driver-puppeteer": "^1.2.1",
|
|
93
|
+
"@applitools/spec-driver-selenium": "^1.5.59",
|
|
94
94
|
"@applitools/test-server": "^1.2.2",
|
|
95
95
|
"@applitools/test-utils": "^1.5.17",
|
|
96
96
|
"@applitools/tunnel-client": "^1.2.2",
|
package/types/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Core } from './types';
|
|
2
2
|
import type { Core as BaseCore } from '@applitools/core-base';
|
|
3
|
-
import { type UFGClient } from '@applitools/ufg-client';
|
|
3
|
+
import { type AsyncCache, type UFGClient } from '@applitools/ufg-client';
|
|
4
4
|
import { type NMLClient } from '@applitools/nml-client';
|
|
5
5
|
import { type SpecType, type SpecDriver } from '@applitools/driver';
|
|
6
6
|
import { type Logger } from '@applitools/logger';
|
|
@@ -16,6 +16,7 @@ type Options<TSpec extends SpecType> = {
|
|
|
16
16
|
environment?: Record<string, any>;
|
|
17
17
|
cwd?: string;
|
|
18
18
|
logger?: Logger;
|
|
19
|
+
asyncCache?: AsyncCache;
|
|
19
20
|
};
|
|
20
|
-
export declare function makeCore<TSpec extends SpecType>({ spec, clients, concurrency, base: defaultBase, environment: defaultEnvironment, agentId, cwd, logger: defaultLogger, }?: Options<TSpec>): Core<TSpec, 'classic' | 'ufg'>;
|
|
21
|
+
export declare function makeCore<TSpec extends SpecType>({ spec, clients, concurrency, base: defaultBase, environment: defaultEnvironment, agentId, cwd, logger: defaultLogger, asyncCache, }?: Options<TSpec>): Core<TSpec, 'classic' | 'ufg'>;
|
|
21
22
|
export {};
|
package/types/make-manager.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Core, EyesManager, ManagerSettings } from './types';
|
|
2
2
|
import type { Core as BaseCore } from '@applitools/core-base';
|
|
3
|
-
import { type UFGClient } from '@applitools/ufg-client';
|
|
3
|
+
import { type AsyncCache, type UFGClient } from '@applitools/ufg-client';
|
|
4
4
|
import { type NMLClient } from '@applitools/nml-client';
|
|
5
5
|
import { type Logger } from '@applitools/logger';
|
|
6
6
|
import { type SpecType, type SpecDriver } from '@applitools/driver';
|
|
@@ -17,8 +17,9 @@ type Options<TSpec extends SpecType> = {
|
|
|
17
17
|
environment?: Record<string, any>;
|
|
18
18
|
cwd?: string;
|
|
19
19
|
logger: Logger;
|
|
20
|
+
asyncCache?: AsyncCache;
|
|
20
21
|
};
|
|
21
|
-
export declare function makeMakeManager<TSpec extends SpecType>({ spec, clients, concurrency: defaultConcurrency, core, base, agentId: defaultAgentId, environment, cwd, logger: mainLogger, }: Options<TSpec>): <TType extends "classic" | "ufg" = "classic">({ type, settings, logger, }?: {
|
|
22
|
+
export declare function makeMakeManager<TSpec extends SpecType>({ spec, clients, concurrency: defaultConcurrency, core, base, agentId: defaultAgentId, environment, cwd, logger: mainLogger, asyncCache, }: Options<TSpec>): <TType extends "classic" | "ufg" = "classic">({ type, settings, logger, }?: {
|
|
22
23
|
type?: TType | undefined;
|
|
23
24
|
settings?: ManagerSettings | undefined;
|
|
24
25
|
logger?: Logger | undefined;
|
package/types/open-eyes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DriverTarget, Core, TypedCore, Batch, Eyes, Config, OpenSettings } from './types';
|
|
2
|
-
import { type UFGClient } from '@applitools/ufg-client';
|
|
2
|
+
import { type AsyncCache, type UFGClient } from '@applitools/ufg-client';
|
|
3
3
|
import { type NMLClient } from '@applitools/nml-client';
|
|
4
4
|
import { type Logger } from '@applitools/logger';
|
|
5
5
|
import { type SpecType, type SpecDriver } from '@applitools/driver';
|
|
@@ -18,8 +18,9 @@ type Options<TSpec extends SpecType, TType extends 'classic' | 'ufg'> = {
|
|
|
18
18
|
spec?: SpecDriver<TSpec>;
|
|
19
19
|
environment?: Record<string, any>;
|
|
20
20
|
logger: Logger;
|
|
21
|
+
asyncCache?: AsyncCache;
|
|
21
22
|
};
|
|
22
|
-
export declare function makeOpenEyes<TSpec extends SpecType, TDefaultType extends 'classic' | 'ufg' = 'classic'>({ type: defaultType, clients, concurrency, batch, core, cores, spec, environment, logger: mainLogger, }: Options<TSpec, TDefaultType>): <TType extends "classic" | "ufg" = TDefaultType>({ type, settings, config, target, logger, }: {
|
|
23
|
+
export declare function makeOpenEyes<TSpec extends SpecType, TDefaultType extends 'classic' | 'ufg' = 'classic'>({ type: defaultType, clients, concurrency, batch, core, cores, spec, environment, logger: mainLogger, asyncCache, }: Options<TSpec, TDefaultType>): <TType extends "classic" | "ufg" = TDefaultType>({ type, settings, config, target, logger, }: {
|
|
23
24
|
type?: TType | undefined;
|
|
24
25
|
settings?: Partial<OpenSettings<TDefaultType> & OpenSettings<TType>> | undefined;
|
|
25
26
|
config?: (Config<TSpec, TDefaultType> & Config<TSpec, TType>) | undefined;
|
package/types/ufg/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Core } from './types';
|
|
2
|
-
import { type UFGClient } from '@applitools/ufg-client';
|
|
2
|
+
import { type AsyncCache, type UFGClient } from '@applitools/ufg-client';
|
|
3
3
|
import { type NMLClient } from '@applitools/nml-client';
|
|
4
4
|
import { type SpecType, type SpecDriver } from '@applitools/driver';
|
|
5
5
|
import { type Logger } from '@applitools/logger';
|
|
@@ -16,6 +16,7 @@ type Options<TSpec extends SpecType> = {
|
|
|
16
16
|
agentId?: string;
|
|
17
17
|
cwd?: string;
|
|
18
18
|
logger?: Logger;
|
|
19
|
+
asyncCache?: AsyncCache;
|
|
19
20
|
};
|
|
20
|
-
export declare function makeCore<TSpec extends SpecType = never>({ spec, clients, base, concurrency, fetchConcurrency, agentId, cwd, logger: defaultLogger, }: Options<TSpec>): Core<TSpec>;
|
|
21
|
+
export declare function makeCore<TSpec extends SpecType = never>({ spec, clients, base, concurrency, fetchConcurrency, agentId, cwd, logger: defaultLogger, asyncCache, }: Options<TSpec>): Core<TSpec>;
|
|
21
22
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type Logger } from '@applitools/logger';
|
|
2
|
-
import { type UFGClient, type UFGClientSettings } from '@applitools/ufg-client';
|
|
2
|
+
import { type AsyncCache, type UFGClient, type UFGClientSettings } from '@applitools/ufg-client';
|
|
3
3
|
type Options = {
|
|
4
4
|
client?: UFGClient;
|
|
5
5
|
fetchConcurrency?: number;
|
|
6
6
|
logger: Logger;
|
|
7
|
+
asyncCache?: AsyncCache;
|
|
7
8
|
};
|
|
8
|
-
export declare function makeGetUFGClient({ client, fetchConcurrency, logger: mainLogger }: Options): (({ settings, logger }: {
|
|
9
|
+
export declare function makeGetUFGClient({ client, fetchConcurrency, logger: mainLogger, asyncCache }: Options): (({ settings, logger }: {
|
|
9
10
|
settings: UFGClientSettings;
|
|
10
11
|
logger?: Logger | undefined;
|
|
11
12
|
}) => Promise<UFGClient>) & {
|