@applitools/core 3.11.0 → 3.11.2
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 +152 -0
- package/dist/core.js +13 -3
- package/dist/make-manager.js +3 -3
- package/dist/open-eyes.js +2 -2
- package/dist/troubleshoot/ufg.js +1 -1
- package/dist/ufg/check-and-close.js +0 -1
- package/dist/ufg/check.js +0 -1
- package/dist/ufg/core.js +2 -2
- package/dist/ufg/get-ufg-client.js +2 -2
- package/package.json +16 -16
- 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/check-and-close.d.ts +0 -1
- package/types/ufg/core.d.ts +3 -2
- package/types/ufg/get-ufg-client.d.ts +3 -2
- package/types/ufg/types.d.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,157 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.11.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.11.1...js/core@3.11.2) (2023-09-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Reverts
|
|
7
|
+
|
|
8
|
+
* perform major changes ([994cd70](https://github.com/applitools/eyes.sdk.javascript1/commit/994cd703ebe891bf68aecd49d77b5fb119f6ebe8))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Code Refactoring
|
|
12
|
+
|
|
13
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* @applitools/utils bumped to 1.6.1
|
|
19
|
+
#### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* add browser entry point declaration and test ([#1933](https://github.com/applitools/eyes.sdk.javascript1/issues/1933)) ([5ba0720](https://github.com/applitools/eyes.sdk.javascript1/commit/5ba0720d62a9af8a9a2e1c2437c569e6ab19afd8))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#### Code Refactoring
|
|
25
|
+
|
|
26
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
27
|
+
* @applitools/logger bumped to 2.0.11
|
|
28
|
+
#### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* add browser entry point declaration and test ([#1933](https://github.com/applitools/eyes.sdk.javascript1/issues/1933)) ([5ba0720](https://github.com/applitools/eyes.sdk.javascript1/commit/5ba0720d62a9af8a9a2e1c2437c569e6ab19afd8))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
* @applitools/socket bumped to 1.1.11
|
|
35
|
+
#### Code Refactoring
|
|
36
|
+
|
|
37
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
* @applitools/req bumped to 1.6.1
|
|
42
|
+
#### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* add browser entry point declaration and test ([#1933](https://github.com/applitools/eyes.sdk.javascript1/issues/1933)) ([5ba0720](https://github.com/applitools/eyes.sdk.javascript1/commit/5ba0720d62a9af8a9a2e1c2437c569e6ab19afd8))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
* @applitools/image bumped to 1.1.6
|
|
49
|
+
#### Code Refactoring
|
|
50
|
+
|
|
51
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
* @applitools/spec-driver-selenium bumped to 1.5.60
|
|
56
|
+
|
|
57
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.2
|
|
58
|
+
#### Code Refactoring
|
|
59
|
+
|
|
60
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* @applitools/screenshoter bumped to 3.8.12
|
|
65
|
+
|
|
66
|
+
* @applitools/nml-client bumped to 1.5.12
|
|
67
|
+
#### Code Refactoring
|
|
68
|
+
|
|
69
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.46
|
|
74
|
+
|
|
75
|
+
* @applitools/driver bumped to 1.14.2
|
|
76
|
+
#### Code Refactoring
|
|
77
|
+
|
|
78
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
* @applitools/tunnel-client bumped to 1.2.3
|
|
83
|
+
#### Code Refactoring
|
|
84
|
+
|
|
85
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
* @applitools/ufg-client bumped to 1.9.2
|
|
90
|
+
#### Code Refactoring
|
|
91
|
+
|
|
92
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
* @applitools/ec-client bumped to 1.7.10
|
|
97
|
+
#### Code Refactoring
|
|
98
|
+
|
|
99
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
* @applitools/core-base bumped to 1.6.1
|
|
104
|
+
#### Reverts
|
|
105
|
+
|
|
106
|
+
* perform major changes ([994cd70](https://github.com/applitools/eyes.sdk.javascript1/commit/994cd703ebe891bf68aecd49d77b5fb119f6ebe8))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
#### Code Refactoring
|
|
110
|
+
|
|
111
|
+
* use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## [3.11.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.11.0...js/core@3.11.1) (2023-09-21)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Bug Fixes
|
|
120
|
+
|
|
121
|
+
* 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))
|
|
122
|
+
* 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))
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Dependencies
|
|
126
|
+
|
|
127
|
+
* @applitools/snippets bumped to 2.4.24
|
|
128
|
+
#### Bug Fixes
|
|
129
|
+
|
|
130
|
+
* 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))
|
|
131
|
+
* @applitools/spec-driver-selenium bumped to 1.5.59
|
|
132
|
+
|
|
133
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.1
|
|
134
|
+
|
|
135
|
+
* @applitools/ufg-client bumped to 1.9.1
|
|
136
|
+
#### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* 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))
|
|
139
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.45
|
|
140
|
+
|
|
141
|
+
* @applitools/screenshoter bumped to 3.8.11
|
|
142
|
+
|
|
143
|
+
* @applitools/nml-client bumped to 1.5.11
|
|
144
|
+
|
|
145
|
+
* @applitools/ec-client bumped to 1.7.9
|
|
146
|
+
#### Bug Fixes
|
|
147
|
+
|
|
148
|
+
* change expiration time of the tunnel ([c019241](https://github.com/applitools/eyes.sdk.javascript1/commit/c0192411410135b23f3ae47dd62fbef67be66f1a))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
* @applitools/driver bumped to 1.14.1
|
|
153
|
+
|
|
154
|
+
|
|
3
155
|
## [3.11.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@3.10.4...js/core@3.11.0) (2023-09-13)
|
|
4
156
|
|
|
5
157
|
|
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/troubleshoot/ufg.js
CHANGED
|
@@ -35,7 +35,7 @@ const utils_1 = require("./utils");
|
|
|
35
35
|
const eyes_1 = require("./eyes");
|
|
36
36
|
const utils = __importStar(require("@applitools/utils"));
|
|
37
37
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
38
|
-
const value =
|
|
38
|
+
const value = new TextEncoder().encode(JSON.stringify({ resources: {}, domNodes: [] }));
|
|
39
39
|
const hash = (0, crypto_1.createHash)('sha256').update(value).digest('hex');
|
|
40
40
|
const contentType = 'x-applitools-html/cdt';
|
|
41
41
|
const resource = {
|
package/dist/ufg/check.js
CHANGED
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.11.
|
|
3
|
+
"version": "3.11.2",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
"compress": "GZip"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@applitools/core-base": "1.6.
|
|
68
|
+
"@applitools/core-base": "1.6.1",
|
|
69
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.
|
|
73
|
-
"@applitools/logger": "2.0.
|
|
74
|
-
"@applitools/nml-client": "1.5.
|
|
75
|
-
"@applitools/req": "1.6.
|
|
76
|
-
"@applitools/screenshoter": "3.8.
|
|
77
|
-
"@applitools/snippets": "2.4.
|
|
78
|
-
"@applitools/socket": "1.1.
|
|
79
|
-
"@applitools/spec-driver-webdriver": "1.0.
|
|
80
|
-
"@applitools/ufg-client": "1.9.
|
|
81
|
-
"@applitools/utils": "1.6.
|
|
71
|
+
"@applitools/driver": "1.14.2",
|
|
72
|
+
"@applitools/ec-client": "1.7.10",
|
|
73
|
+
"@applitools/logger": "2.0.11",
|
|
74
|
+
"@applitools/nml-client": "1.5.12",
|
|
75
|
+
"@applitools/req": "1.6.1",
|
|
76
|
+
"@applitools/screenshoter": "3.8.12",
|
|
77
|
+
"@applitools/snippets": "2.4.24",
|
|
78
|
+
"@applitools/socket": "1.1.11",
|
|
79
|
+
"@applitools/spec-driver-webdriver": "1.0.46",
|
|
80
|
+
"@applitools/ufg-client": "1.9.2",
|
|
81
|
+
"@applitools/utils": "1.6.1",
|
|
82
82
|
"@types/ws": "8.5.5",
|
|
83
83
|
"abort-controller": "3.0.0",
|
|
84
84
|
"chalk": "4.1.2",
|
|
@@ -89,11 +89,11 @@
|
|
|
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.2",
|
|
93
|
+
"@applitools/spec-driver-selenium": "^1.5.60",
|
|
94
94
|
"@applitools/test-server": "^1.2.2",
|
|
95
95
|
"@applitools/test-utils": "^1.5.17",
|
|
96
|
-
"@applitools/tunnel-client": "^1.2.
|
|
96
|
+
"@applitools/tunnel-client": "^1.2.3",
|
|
97
97
|
"@types/node": "^12.20.55",
|
|
98
98
|
"@types/selenium-webdriver": "^4.1.2",
|
|
99
99
|
"@types/yargs": "^17.0.22",
|
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;
|
|
@@ -24,7 +24,6 @@ export declare function makeCheckAndClose<TSpec extends SpecType>({ eyes, target
|
|
|
24
24
|
breakpoints: boolean | number[];
|
|
25
25
|
reload?: boolean | undefined;
|
|
26
26
|
} | undefined;
|
|
27
|
-
asyncCache?: import("@applitools/ufg-client").AsyncCache | undefined;
|
|
28
27
|
ufgOptions?: Record<string, any> | undefined;
|
|
29
28
|
autProxy?: (import("@applitools/req").Proxy & {
|
|
30
29
|
mode?: "Allow" | "Block" | 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>) & {
|
package/types/ufg/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type * as AutomationCore from '../automation/types';
|
|
|
3
3
|
import { type Selector, type SpecType } from '@applitools/driver';
|
|
4
4
|
import { type Logger } from '@applitools/logger';
|
|
5
5
|
import { type Proxy } from '@applitools/req';
|
|
6
|
-
import { type UFGClient, type UFGClientSettings, type DomSnapshot, type AndroidSnapshot, type IOSSnapshot
|
|
6
|
+
import { type UFGClient, type UFGClientSettings, type DomSnapshot, type AndroidSnapshot, type IOSSnapshot } from '@applitools/ufg-client';
|
|
7
7
|
export * from '../automation/types';
|
|
8
8
|
export type SnapshotTarget = MaybeArray<SnapshotResult<DomSnapshot>> | MaybeArray<AndroidSnapshot> | MaybeArray<IOSSnapshot>;
|
|
9
9
|
export type Target<TSpec extends SpecType> = SnapshotTarget | AutomationCore.Target<TSpec>;
|
|
@@ -52,7 +52,6 @@ export type CheckSettings<TSpec extends SpecType> = AutomationCore.CheckSettings
|
|
|
52
52
|
breakpoints: number[] | boolean;
|
|
53
53
|
reload?: boolean;
|
|
54
54
|
};
|
|
55
|
-
asyncCache?: AsyncCache;
|
|
56
55
|
ufgOptions?: Record<string, any>;
|
|
57
56
|
autProxy?: Proxy & {
|
|
58
57
|
mode?: 'Allow' | 'Block';
|