@applitools/core 1.4.0 → 1.4.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/dist/make-eg-client.js
CHANGED
|
@@ -24,19 +24,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.makeMakeEGClient = void 0;
|
|
27
|
-
const execution_grid_client_1 = require("@applitools/execution-grid-client");
|
|
28
27
|
const utils = __importStar(require("@applitools/utils"));
|
|
29
28
|
function makeMakeEGClient({ core, logger: defaultLogger }) {
|
|
30
|
-
return async function
|
|
29
|
+
return async function makeEGClient({ settings, logger = defaultLogger, } = {}) {
|
|
31
30
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32
31
|
var _j, _k;
|
|
32
|
+
const { makeEGClient } = require('@applitools/execution-grid-client');
|
|
33
33
|
const serverUrl = (_c = (_b = (_a = settings.capabilities.eyesServerUrl) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('EYES_SERVER_URL')) !== null && _b !== void 0 ? _b : utils.general.getEnvValue('SERVER_URL')) !== null && _c !== void 0 ? _c : 'https://eyesapi.applitools.com';
|
|
34
34
|
const apiKey = ((_d = (_j = settings.capabilities).apiKey) !== null && _d !== void 0 ? _d : (_j.apiKey = utils.general.getEnvValue('API_KEY')));
|
|
35
35
|
const proxy = (_e = settings.proxy) !== null && _e !== void 0 ? _e : (utils.general.getEnvValue('PROXY_URL') && { url: utils.general.getEnvValue('PROXY_URL') });
|
|
36
|
-
const
|
|
36
|
+
const account = await core.getAccountInfo({ settings: { serverUrl, apiKey, proxy }, logger });
|
|
37
37
|
(_f = settings.capabilities) !== null && _f !== void 0 ? _f : (settings.capabilities = {});
|
|
38
|
-
(_g = (_k = settings.capabilities).useSelfHealing) !== null && _g !== void 0 ? _g : (_k.useSelfHealing = (_h = utils.general.getEnvValue('USE_SELF_HEALING', 'boolean')) !== null && _h !== void 0 ? _h :
|
|
39
|
-
const client = await
|
|
38
|
+
(_g = (_k = settings.capabilities).useSelfHealing) !== null && _g !== void 0 ? _g : (_k.useSelfHealing = (_h = utils.general.getEnvValue('USE_SELF_HEALING', 'boolean')) !== null && _h !== void 0 ? _h : account.selfHealingEnabled);
|
|
39
|
+
const client = await makeEGClient({ settings, logger });
|
|
40
40
|
return client;
|
|
41
41
|
};
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -61,31 +61,32 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@applitools/core-base": "1.1.
|
|
64
|
+
"@applitools/core-base": "1.1.30",
|
|
65
65
|
"@applitools/dom-capture": "11.2.0",
|
|
66
66
|
"@applitools/dom-snapshot": "4.7.3",
|
|
67
67
|
"@applitools/driver": "1.11.25",
|
|
68
|
-
"@applitools/execution-grid-client": "1.2.2",
|
|
69
68
|
"@applitools/logger": "1.1.40",
|
|
70
|
-
"@applitools/nml-client": "1.3.
|
|
69
|
+
"@applitools/nml-client": "1.3.27",
|
|
71
70
|
"@applitools/req": "1.1.27",
|
|
72
71
|
"@applitools/screenshoter": "3.7.22",
|
|
73
72
|
"@applitools/snippets": "2.4.13",
|
|
74
|
-
"@applitools/ufg-client": "1.1.
|
|
73
|
+
"@applitools/ufg-client": "1.1.19",
|
|
75
74
|
"@applitools/utils": "1.3.26",
|
|
76
75
|
"abort-controller": "3.0.0",
|
|
77
76
|
"chalk": "4.1.2",
|
|
78
77
|
"node-fetch": "2.6.7",
|
|
79
78
|
"throat": "6.0.1"
|
|
80
79
|
},
|
|
80
|
+
"optionalDependencies": {
|
|
81
|
+
"@applitools/execution-grid-client": "^1.2.3"
|
|
82
|
+
},
|
|
81
83
|
"devDependencies": {
|
|
82
84
|
"@applitools/bongo": "^2.2.2",
|
|
83
|
-
"@applitools/execution-grid-client": "^1.1.39",
|
|
84
85
|
"@applitools/sdk-fake-eyes-server": "^2.1.3",
|
|
85
86
|
"@applitools/spec-driver-puppeteer": "^1.1.36",
|
|
86
87
|
"@applitools/spec-driver-selenium": "^1.5.23",
|
|
87
88
|
"@applitools/spec-driver-webdriverio": "^1.4.20",
|
|
88
|
-
"@applitools/test-server": "^1.1.
|
|
89
|
+
"@applitools/test-server": "^1.1.21",
|
|
89
90
|
"@applitools/test-utils": "^1.5.8",
|
|
90
91
|
"@types/mocha": "^9.1.1",
|
|
91
92
|
"@types/node": "12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Core as BaseCore } from '@applitools/core-base';
|
|
2
|
-
import { type Logger } from '@applitools/logger';
|
|
3
2
|
import { type EGClient, type EGClientSettings } from '@applitools/execution-grid-client';
|
|
3
|
+
import { type Logger } from '@applitools/logger';
|
|
4
4
|
type Options = {
|
|
5
5
|
core: BaseCore;
|
|
6
6
|
logger: Logger;
|