@applitools/core 4.46.0 → 4.47.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 +52 -0
- package/dist/index.js +1 -0
- package/dist/make-manager.js +2 -1
- package/dist/universal/core-server.js +2 -2
- package/dist/utils/constants.js +4 -0
- package/package.json +17 -17
- package/types/index.d.ts +1 -0
- package/types/universal/core-server.d.ts +3 -1
- package/types/utils/constants.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.47.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.47.0...js/core@4.47.1) (2025-09-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove duplicate tests on different sessions for same batch ([#3184](https://github.com/Applitools-Dev/sdk/issues/3184)) ([ede0d1f](https://github.com/Applitools-Dev/sdk/commit/ede0d1fd8018e14c19811903d78c273bce048f84))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/logger bumped to 2.2.4
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* remove duplicate tests on different sessions for same batch ([#3184](https://github.com/Applitools-Dev/sdk/issues/3184)) ([ede0d1f](https://github.com/Applitools-Dev/sdk/commit/ede0d1fd8018e14c19811903d78c273bce048f84))
|
|
17
|
+
* @applitools/dom-snapshot bumped to 4.13.7
|
|
18
|
+
|
|
19
|
+
* @applitools/socket bumped to 1.3.5
|
|
20
|
+
|
|
21
|
+
* @applitools/req bumped to 1.8.4
|
|
22
|
+
|
|
23
|
+
* @applitools/dom-capture bumped to 11.6.5
|
|
24
|
+
|
|
25
|
+
* @applitools/driver bumped to 1.23.5
|
|
26
|
+
|
|
27
|
+
* @applitools/spec-driver-webdriver bumped to 1.4.5
|
|
28
|
+
|
|
29
|
+
* @applitools/spec-driver-selenium bumped to 1.7.5
|
|
30
|
+
|
|
31
|
+
* @applitools/spec-driver-puppeteer bumped to 1.6.5
|
|
32
|
+
|
|
33
|
+
* @applitools/screenshoter bumped to 3.12.5
|
|
34
|
+
|
|
35
|
+
* @applitools/nml-client bumped to 1.11.5
|
|
36
|
+
|
|
37
|
+
* @applitools/tunnel-client bumped to 1.11.2
|
|
38
|
+
|
|
39
|
+
* @applitools/ufg-client bumped to 1.17.4
|
|
40
|
+
|
|
41
|
+
* @applitools/core-base bumped to 1.27.4
|
|
42
|
+
|
|
43
|
+
* @applitools/ec-client bumped to 1.12.7
|
|
44
|
+
|
|
45
|
+
* @applitools/test-server bumped to 1.3.3
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [4.47.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.46.0...js/core@4.47.0) (2025-09-15)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
|
|
53
|
+
* update default concurrency ([#3230](https://github.com/Applitools-Dev/sdk/issues/3230)) ([f548cda](https://github.com/Applitools-Dev/sdk/commit/f548cda77d74b68890abc7c53f566b145e6484ba))
|
|
54
|
+
|
|
3
55
|
## [4.46.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.45.0...js/core@4.46.0) (2025-09-09)
|
|
4
56
|
|
|
5
57
|
|
package/dist/index.js
CHANGED
|
@@ -35,3 +35,4 @@ __exportStar(require("./autonomous/core"), exports);
|
|
|
35
35
|
__exportStar(require("@applitools/driver/dist/debug"), exports);
|
|
36
36
|
exports.formatters = __importStar(require("./utils/format-results"));
|
|
37
37
|
exports.logs = __importStar(require("./troubleshoot/logs"));
|
|
38
|
+
__exportStar(require("./utils/constants"), exports);
|
package/dist/make-manager.js
CHANGED
|
@@ -30,13 +30,14 @@ 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
|
+
const constants_1 = require("./utils/constants");
|
|
33
34
|
function makeMakeManager({ spec, clients, core, base: defaultBase, agentId: defaultAgentId, environment, cwd = process.cwd(), logger: mainLogger, asyncCache, offlineLocationPath, maskLog, }) {
|
|
34
35
|
return async function makeManager({ type = 'classic', settings, logger = mainLogger, } = {}) {
|
|
35
36
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
36
37
|
var _h, _j;
|
|
37
38
|
logger = logger.extend(mainLogger, { tags: [`manager-${type}-${utils.general.shortid()}`], maskLog });
|
|
38
39
|
settings !== null && settings !== void 0 ? settings : (settings = {});
|
|
39
|
-
(_a = settings.concurrency) !== null && _a !== void 0 ? _a : (settings.concurrency = (_b = utils.general.getEnvValue('CONCURRENCY', 'number')) !== null && _b !== void 0 ? _b : (utils.types.isInteger(settings.legacyConcurrency) ? settings.legacyConcurrency * 5 :
|
|
40
|
+
(_a = settings.concurrency) !== null && _a !== void 0 ? _a : (settings.concurrency = (_b = utils.general.getEnvValue('CONCURRENCY', 'number')) !== null && _b !== void 0 ? _b : (utils.types.isInteger(settings.legacyConcurrency) ? settings.legacyConcurrency * 5 : constants_1.DEFAULT_CONCURRENCY));
|
|
40
41
|
(_c = settings.batch) !== null && _c !== void 0 ? _c : (settings.batch = {});
|
|
41
42
|
(_d = (_h = settings.batch).id) !== null && _d !== void 0 ? _d : (_h.id = (_e = utils.general.getEnvValue('BATCH_ID')) !== null && _e !== void 0 ? _e : `generated-${utils.general.guid()}`);
|
|
42
43
|
(_f = (_j = settings.batch).buildId) !== null && _f !== void 0 ? _f : (_j.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
|
|
@@ -15,10 +15,10 @@ const history_1 = require("./history");
|
|
|
15
15
|
const os_1 = __importDefault(require("os"));
|
|
16
16
|
const path_1 = __importDefault(require("path"));
|
|
17
17
|
async function makeCoreServer({ environment: defaultEnvironment, agentIdPrefix = `eyes-universal/${require('../../package.json').version}`, debug = false, shutdownMode = 'lazy', idleTimeout = 900000, // 15min
|
|
18
|
-
printStdout = false, isProcess = false, maskLog = false, ...handlerOptions } = {}) {
|
|
18
|
+
printStdout = false, isProcess = false, maskLog = false, logger = undefined, ...handlerOptions } = {}) {
|
|
19
19
|
var _a, _b;
|
|
20
20
|
const logDirname = (_a = process.env.APPLITOOLS_LOG_DIR) !== null && _a !== void 0 ? _a : path_1.default.resolve(os_1.default.tmpdir(), `applitools-logs`);
|
|
21
|
-
const baseLogger = (0, logger_1.makeLogger)({
|
|
21
|
+
const baseLogger = logger !== null && logger !== void 0 ? logger : (0, logger_1.makeLogger)({
|
|
22
22
|
handler: { type: 'rolling file', name: 'universal', dirname: logDirname },
|
|
23
23
|
level: 'info',
|
|
24
24
|
format: { label: 'core-universal', colors: false },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.47.1",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@applitools/core-base": "1.27.
|
|
83
|
-
"@applitools/dom-capture": "11.6.
|
|
84
|
-
"@applitools/dom-snapshot": "4.13.
|
|
85
|
-
"@applitools/driver": "1.23.
|
|
86
|
-
"@applitools/ec-client": "1.12.
|
|
87
|
-
"@applitools/logger": "2.2.
|
|
88
|
-
"@applitools/nml-client": "1.11.
|
|
89
|
-
"@applitools/req": "1.8.
|
|
90
|
-
"@applitools/screenshoter": "3.12.
|
|
82
|
+
"@applitools/core-base": "1.27.4",
|
|
83
|
+
"@applitools/dom-capture": "11.6.5",
|
|
84
|
+
"@applitools/dom-snapshot": "4.13.7",
|
|
85
|
+
"@applitools/driver": "1.23.5",
|
|
86
|
+
"@applitools/ec-client": "1.12.7",
|
|
87
|
+
"@applitools/logger": "2.2.4",
|
|
88
|
+
"@applitools/nml-client": "1.11.5",
|
|
89
|
+
"@applitools/req": "1.8.4",
|
|
90
|
+
"@applitools/screenshoter": "3.12.5",
|
|
91
91
|
"@applitools/snippets": "2.7.0",
|
|
92
|
-
"@applitools/socket": "1.3.
|
|
93
|
-
"@applitools/spec-driver-webdriver": "1.4.
|
|
94
|
-
"@applitools/ufg-client": "1.17.
|
|
92
|
+
"@applitools/socket": "1.3.5",
|
|
93
|
+
"@applitools/spec-driver-webdriver": "1.4.5",
|
|
94
|
+
"@applitools/ufg-client": "1.17.4",
|
|
95
95
|
"@applitools/utils": "1.12.0",
|
|
96
96
|
"@types/ws": "8.5.5",
|
|
97
97
|
"abort-controller": "3.0.0",
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@applitools/bongo": "^5.10.0",
|
|
108
108
|
"@applitools/sea": "^1.0.0",
|
|
109
|
-
"@applitools/spec-driver-puppeteer": "^1.6.
|
|
110
|
-
"@applitools/spec-driver-selenium": "^1.7.
|
|
111
|
-
"@applitools/test-server": "^1.3.
|
|
109
|
+
"@applitools/spec-driver-puppeteer": "^1.6.5",
|
|
110
|
+
"@applitools/spec-driver-selenium": "^1.7.5",
|
|
111
|
+
"@applitools/test-server": "^1.3.3",
|
|
112
112
|
"@applitools/test-utils": "^1.5.17",
|
|
113
|
-
"@applitools/tunnel-client": "^1.11.
|
|
113
|
+
"@applitools/tunnel-client": "^1.11.2",
|
|
114
114
|
"@types/mocha": "^10.0.7",
|
|
115
115
|
"@types/node": "^12.20.55",
|
|
116
116
|
"@types/selenium-webdriver": "^4.1.2",
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ServerOptions } from './ws-server';
|
|
2
|
+
import { type Logger } from '@applitools/logger';
|
|
2
3
|
export type Options = ServerOptions & {
|
|
3
4
|
environment?: Record<string, any>;
|
|
4
5
|
agentIdPrefix?: string;
|
|
@@ -8,9 +9,10 @@ export type Options = ServerOptions & {
|
|
|
8
9
|
printStdout?: boolean;
|
|
9
10
|
isProcess?: boolean;
|
|
10
11
|
maskLog?: boolean;
|
|
12
|
+
logger?: Logger;
|
|
11
13
|
};
|
|
12
14
|
export declare function makeCoreServer({ environment: defaultEnvironment, agentIdPrefix, debug, shutdownMode, idleTimeout, // 15min
|
|
13
|
-
printStdout, isProcess, maskLog, ...handlerOptions }?: Options): Promise<{
|
|
15
|
+
printStdout, isProcess, maskLog, logger, ...handlerOptions }?: Options): Promise<{
|
|
14
16
|
port: number;
|
|
15
17
|
close?: () => void;
|
|
16
18
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_CONCURRENCY = 100;
|