@applitools/eyes 1.29.4 → 1.31.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/CHANGELOG.md CHANGED
@@ -1,5 +1,185 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.31.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.30.0...js/eyes@1.31.0) (2025-01-13)
4
+
5
+
6
+ ### Features
7
+
8
+ * jsonFilePath in offline mode ([#2734](https://github.com/Applitools-Dev/sdk/issues/2734)) ([2f9fbe8](https://github.com/Applitools-Dev/sdk/commit/2f9fbe8fc3c5212db6b7cc58a98b041c3ffd5572))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/dom-snapshot bumped to 4.11.14
14
+ #### Bug Fixes
15
+
16
+ * remove side-eyes and fix code scanning issues ([#2712](https://github.com/Applitools-Dev/sdk/issues/2712)) ([cda98e4](https://github.com/Applitools-Dev/sdk/commit/cda98e4748c73cd97c11f646a2b5e26ff9416892))
17
+
18
+
19
+
20
+ * @applitools/snippets bumped to 2.6.4
21
+ #### Bug Fixes
22
+
23
+ * remove side-eyes and fix code scanning issues ([#2712](https://github.com/Applitools-Dev/sdk/issues/2712)) ([cda98e4](https://github.com/Applitools-Dev/sdk/commit/cda98e4748c73cd97c11f646a2b5e26ff9416892))
24
+ * @applitools/dom-capture bumped to 11.5.4
25
+ #### Bug Fixes
26
+
27
+ * remove side-eyes and fix code scanning issues ([#2712](https://github.com/Applitools-Dev/sdk/issues/2712)) ([cda98e4](https://github.com/Applitools-Dev/sdk/commit/cda98e4748c73cd97c11f646a2b5e26ff9416892))
28
+ * @applitools/driver bumped to 1.20.3
29
+
30
+ * @applitools/spec-driver-webdriver bumped to 1.1.23
31
+
32
+ * @applitools/spec-driver-selenium bumped to 1.5.94
33
+
34
+ * @applitools/spec-driver-puppeteer bumped to 1.4.23
35
+
36
+ * @applitools/screenshoter bumped to 3.10.3
37
+
38
+ * @applitools/nml-client bumped to 1.8.22
39
+
40
+ * @applitools/ec-client bumped to 1.10.1
41
+
42
+ * @applitools/core bumped to 4.29.0
43
+ #### Features
44
+
45
+ * jsonFilePath in offline mode ([#2734](https://github.com/Applitools-Dev/sdk/issues/2734)) ([2f9fbe8](https://github.com/Applitools-Dev/sdk/commit/2f9fbe8fc3c5212db6b7cc58a98b041c3ffd5572))
46
+
47
+
48
+ #### Bug Fixes
49
+
50
+ * support batching tests in distributed env - close batch only when required ([#2733](https://github.com/Applitools-Dev/sdk/issues/2733)) ([2e59e4a](https://github.com/Applitools-Dev/sdk/commit/2e59e4a76edcc02b8888dfc78a42749bae76f79c))
51
+
52
+
53
+
54
+
55
+ ## [1.30.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-v1.29.4...js/eyes@1.30.0) (2024-12-31)
56
+
57
+
58
+ ### Features
59
+
60
+ * ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
61
+ * add an option to keep the navigation bar for android devices ([#2608](https://github.com/Applitools-Dev/sdk/issues/2608)) ([e7647e0](https://github.com/Applitools-Dev/sdk/commit/e7647e0105a7aa47e6bf3b20ab033f1e389ca849))
62
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
63
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
64
+ * disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0))
65
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
66
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
67
+ * ios 18 devices enum ([#2584](https://github.com/Applitools-Dev/sdk/issues/2584)) ([8eab653](https://github.com/Applitools-Dev/sdk/commit/8eab653f99733839bdec43d86089edc35abcf8e8))
68
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
69
+ * offline cli with config ([#2646](https://github.com/Applitools-Dev/sdk/issues/2646)) ([0589dc4](https://github.com/Applitools-Dev/sdk/commit/0589dc429a0c94451e957932106f258dadfd88cc))
70
+ * remove Android NMG API ([#2566](https://github.com/Applitools-Dev/sdk/issues/2566)) ([750c0f0](https://github.com/Applitools-Dev/sdk/commit/750c0f0263e5ff06f86055e7ba0c3fb47cadb620))
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * don't pass RectangleSize to core ([#2673](https://github.com/Applitools-Dev/sdk/issues/2673)) ([47653ea](https://github.com/Applitools-Dev/sdk/commit/47653eae44d4c9693cc84e9209bb08f8d070c4af))
76
+ * offline cli chalk error ([c7c659a](https://github.com/Applitools-Dev/sdk/commit/c7c659aa889080f2fc7763152db2447211fe1487))
77
+ * organize configuration alphabetically and add getters and setters ([684490d](https://github.com/Applitools-Dev/sdk/commit/684490d8d85d1dd0f07bafdcc38febfcf7c58d08))
78
+ * trigger playwright release ([1d3ea3e](https://github.com/Applitools-Dev/sdk/commit/1d3ea3e4d2059c12d8013f04c18f5facffbc5846))
79
+ * trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
80
+ * update ios devices enums ([9b4614f](https://github.com/Applitools-Dev/sdk/commit/9b4614f09bbbe42cf99824d76893f9067aab2cc4))
81
+
82
+
83
+ ### Code Refactoring
84
+
85
+ * start linting "no-floating-promises" (wip) ([#2539](https://github.com/Applitools-Dev/sdk/issues/2539)) ([51b91cb](https://github.com/Applitools-Dev/sdk/commit/51b91cb15603f7d68e4bd6a16eb0f80e3f380295))
86
+
87
+
88
+ ### Dependencies
89
+
90
+ * @applitools/utils bumped to 1.7.7
91
+ #### Bug Fixes
92
+
93
+ * shim process execution functions for browser environment ([#2698](https://github.com/Applitools-Dev/sdk/issues/2698)) ([8d77db4](https://github.com/Applitools-Dev/sdk/commit/8d77db48e1c7fd54cad92c89a819a924255e5868))
94
+ * @applitools/logger bumped to 2.1.0
95
+ #### Features
96
+
97
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
98
+
99
+
100
+
101
+ * @applitools/dom-snapshot bumped to 4.11.13
102
+ #### Bug Fixes
103
+
104
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
105
+
106
+
107
+
108
+ * @applitools/socket bumped to 1.2.0
109
+ #### Features
110
+
111
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
112
+
113
+
114
+
115
+ * @applitools/core-base bumped to 1.22.0
116
+ #### Features
117
+
118
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
119
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
120
+
121
+
122
+
123
+ * @applitools/req bumped to 1.7.6
124
+
125
+ * @applitools/image bumped to 1.1.16
126
+
127
+ * @applitools/dom-capture bumped to 11.5.3
128
+ #### Bug Fixes
129
+
130
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
131
+ * @applitools/driver bumped to 1.20.2
132
+
133
+ * @applitools/spec-driver-puppeteer bumped to 1.4.22
134
+
135
+ * @applitools/tunnel-client bumped to 1.6.0
136
+ #### Features
137
+
138
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
139
+
140
+
141
+
142
+ * @applitools/ec-client bumped to 1.10.0
143
+ #### Features
144
+
145
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
146
+
147
+
148
+
149
+ * @applitools/spec-driver-webdriver bumped to 1.1.22
150
+
151
+ * @applitools/spec-driver-selenium bumped to 1.5.93
152
+
153
+ * @applitools/screenshoter bumped to 3.10.2
154
+
155
+ * @applitools/nml-client bumped to 1.8.21
156
+
157
+ * @applitools/ufg-client bumped to 1.16.0
158
+ #### Features
159
+
160
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
161
+
162
+
163
+ #### Bug Fixes
164
+
165
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
166
+
167
+
168
+
169
+ * @applitools/core bumped to 4.28.0
170
+ #### Features
171
+
172
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
173
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
174
+
175
+
176
+ #### Bug Fixes
177
+
178
+ * take snapshots with coded regions on pages that has cross origin frames ([#2705](https://github.com/Applitools-Dev/sdk/issues/2705)) ([5972fec](https://github.com/Applitools-Dev/sdk/commit/5972fec890a1454a9f96c4eddcf17634e72111aa))
179
+
180
+
181
+
182
+
3
183
  ## [1.29.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.29.3...js/eyes@1.29.4) (2024-12-22)
4
184
 
5
185
 
package/dist/Eyes.js CHANGED
@@ -46,7 +46,7 @@ class Eyes {
46
46
  return this.constructor._sdk;
47
47
  }
48
48
  static async getExecutionCloudUrl(config) {
49
- const { core } = (0, SDK_1.initSDK)(this._sdk);
49
+ const { core } = (0, SDK_1.initSDK)(this._sdk, config === null || config === void 0 ? void 0 : config.maskLog);
50
50
  const client = await core.getECClient({
51
51
  settings: {
52
52
  proxy: config === null || config === void 0 ? void 0 : config.proxy,
@@ -58,8 +58,8 @@ class Eyes {
58
58
  }
59
59
  static async setViewportSize(driver, size) {
60
60
  var _a;
61
- const { core } = (0, SDK_1.initSDK)(this._sdk);
62
- await ((_a = core.setViewportSize) === null || _a === void 0 ? void 0 : _a.call(core, { target: driver, size }));
61
+ const { core } = (0, SDK_1.initSDK)(this._sdk, true);
62
+ await ((_a = core.setViewportSize) === null || _a === void 0 ? void 0 : _a.call(core, { target: driver, size: { width: size.width, height: size.height } }));
63
63
  }
64
64
  static setMobileCapabilities(capabilities, config) {
65
65
  var _a, _b;
@@ -92,7 +92,8 @@ class Eyes {
92
92
  this._state = {};
93
93
  this._events = new Map();
94
94
  this._handlers = new SessionEventHandlers_1.SessionEventHandlers();
95
- const sdk = (0, SDK_1.initSDK)(this._sdk);
95
+ const maskLog = utils.types.instanceOf(runnerOrConfig, Runners_1.EyesRunner) ? runnerOrConfig._maskLog : undefined;
96
+ const sdk = (0, SDK_1.initSDK)(this._sdk, maskLog);
96
97
  this._spec = sdk.spec;
97
98
  this._core = sdk.core;
98
99
  if (utils.types.instanceOf(runnerOrConfig, Runners_1.EyesRunner)) {
@@ -205,7 +206,10 @@ class Eyes {
205
206
  config.open.testName = testNameOrViewportSize;
206
207
  if (utils.types.has(viewportSizeOrSessionType, ['width', 'height'])) {
207
208
  (_e = (_g = config.open).environment) !== null && _e !== void 0 ? _e : (_g.environment = {});
208
- config.open.environment.viewportSize = viewportSizeOrSessionType;
209
+ config.open.environment.viewportSize = {
210
+ width: viewportSizeOrSessionType.width,
211
+ height: viewportSizeOrSessionType.height,
212
+ };
209
213
  }
210
214
  if (utils.types.isEnumValue(sessionType, SessionType_1.SessionTypeEnum))
211
215
  config.open.sessionType = sessionType;
@@ -447,6 +451,7 @@ class Eyes {
447
451
  async setViewportSize(size) {
448
452
  var _a, _b;
449
453
  utils.guard.notNull(size, { name: 'size' });
454
+ size = { width: size.width, height: size.height }; // ensure no extra props, and convert getters to enumerable props
450
455
  if (!this._driver) {
451
456
  this._config.setViewportSize(size);
452
457
  }
package/dist/Runners.js CHANGED
@@ -33,10 +33,12 @@ const TestResultsSummary_1 = require("./output/TestResultsSummary");
33
33
  const utils = __importStar(require("@applitools/utils"));
34
34
  class EyesRunner {
35
35
  constructor(options) {
36
+ var _a;
36
37
  /** @internal */
37
38
  this._managerSettings = {};
38
39
  /** @internal */
39
40
  this._getResultsSettings = {};
41
+ this._maskLog = (_a = options === null || options === void 0 ? void 0 : options.maskLog) !== null && _a !== void 0 ? _a : false;
40
42
  if (options) {
41
43
  this._managerSettings = {
42
44
  concurrency: options.testConcurrency,
package/dist/SDK.js CHANGED
@@ -23,17 +23,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.initSDK = void 0;
26
+ exports.getCoreWithCache = exports.initSDK = void 0;
27
27
  const core_1 = require("@applitools/core");
28
28
  const utils = __importStar(require("@applitools/utils"));
29
- function initSDK(options) {
29
+ function initSDK(options, maskLog) {
30
+ if (options)
31
+ options.maskLog = maskLog;
30
32
  return {
31
- core: getCoreWithCache(options),
33
+ core: (0, exports.getCoreWithCache)(options),
32
34
  spec: options === null || options === void 0 ? void 0 : options.spec,
33
35
  };
34
36
  }
35
37
  exports.initSDK = initSDK;
36
- const getCoreWithCache = utils.general.cachify(getCore);
38
+ exports.getCoreWithCache = utils.general.cachify(getCore);
37
39
  function getCore({ makeCore = core_1.makeCore, ...options } = {}) {
38
40
  var _a;
39
41
  (_a = options.agentId) !== null && _a !== void 0 ? _a : (options.agentId = `js/eyes/${require('../package.json').version}`);
package/dist/cli/cli.js CHANGED
@@ -29,6 +29,10 @@ void yargs_1.default
29
29
  description: 'path to configuration file (applitools.config.js / applitools.config.ts)',
30
30
  type: 'string',
31
31
  },
32
+ jsonFilePath: {
33
+ description: 'path to json file with the test results',
34
+ type: 'string',
35
+ },
32
36
  })
33
37
  .fail((_msg, err, _yargs) => {
34
38
  if (err) {
@@ -483,6 +483,26 @@ class ConfigurationData {
483
483
  this.gitMergeBaseTimestamp = gitMergeBaseTimestamp;
484
484
  return this;
485
485
  }
486
+ get latestCommitInfo() {
487
+ return this._config.latestCommitInfo;
488
+ }
489
+ set latestCommitInfo(latestCommitInfo) {
490
+ if (latestCommitInfo) {
491
+ utils.guard.isString(latestCommitInfo.sha, { name: 'latestCommitInfo.sha' });
492
+ // TODO implement utils.guard.isISODate (didn't do it to avoid releasing utils and then all packages for this small thing)
493
+ utils.guard.custom(latestCommitInfo.timestamp, (timestamp) => isISODate(timestamp), {
494
+ name: 'latestCommitInfo.timestamp',
495
+ });
496
+ }
497
+ this._config.latestCommitInfo = latestCommitInfo;
498
+ }
499
+ getLatestCommitInfo() {
500
+ return this.latestCommitInfo;
501
+ }
502
+ setLatestCommitInfo(latestCommitInfo) {
503
+ this.latestCommitInfo = latestCommitInfo;
504
+ return this;
505
+ }
486
506
  get hideCaret() {
487
507
  return this._config.hideCaret;
488
508
  }
@@ -968,7 +988,7 @@ class ConfigurationData {
968
988
  this._config.viewportSize = viewportSize;
969
989
  }
970
990
  getViewportSize() {
971
- return this.viewportSize && new RectangleSize_1.RectangleSizeData(this.viewportSize);
991
+ return this.viewportSize && new RectangleSize_1.RectangleSizeData(this.viewportSize); // this is not a copy constructor, the RectangleSizeData saves the reference
972
992
  }
973
993
  setViewportSize(viewportSize) {
974
994
  this.viewportSize = viewportSize;
@@ -1050,7 +1070,10 @@ class ConfigurationData {
1050
1070
  os: this.hostOS,
1051
1071
  displayOs: this.hostOSInfo,
1052
1072
  deviceName: this.deviceInfo,
1053
- viewportSize: this.viewportSize,
1073
+ viewportSize: this.viewportSize && {
1074
+ width: this.viewportSize.width,
1075
+ height: this.viewportSize.height,
1076
+ },
1054
1077
  }),
1055
1078
  branchName: this.branchName,
1056
1079
  parentBranchName: this.parentBranchName,
@@ -1059,6 +1082,7 @@ class ConfigurationData {
1059
1082
  ignoreBaseline: this.ignoreBaseline,
1060
1083
  gitBranchingTimestamp: this.gitMergeBaseTimestamp,
1061
1084
  ignoreGitBranching: this.ignoreGitMergeBase,
1085
+ latestCommitInfo: this.latestCommitInfo,
1062
1086
  saveDiffs: this.saveDiffs,
1063
1087
  keepBatchOpen: this.dontCloseBatches,
1064
1088
  disableBrokerUrlCache: this.disableNMLUrlCache,
@@ -1130,3 +1154,7 @@ class ConfigurationData {
1130
1154
  }
1131
1155
  }
1132
1156
  exports.ConfigurationData = ConfigurationData;
1157
+ // TODO: should be in utils
1158
+ function isISODate(str) {
1159
+ return /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\+\d{2}:\d{2})?/.test(str);
1160
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.29.4",
3
+ "version": "1.31.0",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -46,13 +46,13 @@
46
46
  "test": "run --top-level mocha './test/**/*.spec.ts'"
47
47
  },
48
48
  "dependencies": {
49
- "@applitools/core": "4.27.1",
50
- "@applitools/logger": "2.0.20",
51
- "@applitools/utils": "1.7.6",
49
+ "@applitools/core": "4.29.0",
50
+ "@applitools/logger": "2.1.0",
51
+ "@applitools/utils": "1.7.7",
52
52
  "chalk": "4.1.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@applitools/req": "^1.7.5",
55
+ "@applitools/req": "^1.7.6",
56
56
  "@types/node": "^12.20.55"
57
57
  },
58
58
  "engines": {
package/types/Eyes.d.ts CHANGED
@@ -39,7 +39,9 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType> {
39
39
  private _spec?;
40
40
  private _events;
41
41
  private _handlers;
42
- static getExecutionCloudUrl(config?: Configuration): Promise<string>;
42
+ static getExecutionCloudUrl(config?: Configuration & {
43
+ maskLog?: boolean;
44
+ }): Promise<string>;
43
45
  static setViewportSize(driver: unknown, size: RectangleSize): Promise<void>;
44
46
  static setMobileCapabilities<TCapabilities extends Record<string, any>>(capabilities: TCapabilities, config?: Configuration): TCapabilities;
45
47
  constructor(runner?: EyesRunner, config?: Configuration<TSpec>);
@@ -5,6 +5,7 @@ import { TestResultsSummaryData } from './output/TestResultsSummary';
5
5
  export declare abstract class EyesRunner {
6
6
  private _core?;
7
7
  private _manager?;
8
+ readonly _maskLog: boolean;
8
9
  abstract readonly type: 'classic' | 'ufg';
9
10
  /** @internal */
10
11
  protected readonly _managerSettings: Core.ManagerSettings;
package/types/SDK.d.ts CHANGED
@@ -3,9 +3,17 @@ export interface SDK<TSpec extends SpecType = SpecType> {
3
3
  spec?: SpecDriver<TSpec>;
4
4
  agentId?: string;
5
5
  environment?: Record<string, any>;
6
+ maskLog?: boolean;
6
7
  makeCore?: typeof makeDefaultCore;
7
8
  }
8
- export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>): {
9
+ export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>, maskLog?: boolean): {
9
10
  core: Core<TSpec, 'classic' | 'ufg'>;
10
11
  spec?: SpecDriver<TSpec>;
11
12
  };
13
+ export declare const getCoreWithCache: typeof getCore & {
14
+ getCachedValues(): Core<SpecType, "classic" | "ufg">[];
15
+ setCachedValue(key: any, value: Core<SpecType, "classic" | "ufg">): void;
16
+ clearCache(): void;
17
+ };
18
+ declare function getCore<TSpec extends SpecType = SpecType>({ makeCore, ...options }?: SDK<TSpec>): Core<TSpec, 'classic' | 'ufg'>;
19
+ export {};
@@ -18,6 +18,7 @@ import { AUTProxySettings } from './AUTProxySettings';
18
18
  import { BatchInfo, BatchInfoData } from './BatchInfo';
19
19
  import { PropertyData, PropertyDataData } from './PropertyData';
20
20
  import { ImageMatchSettings } from './ImageMatchSettings';
21
+ import { LatestCommitInfo } from './LatestCommitInfo';
21
22
  export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
22
23
  accessibilityValidation?: AccessibilitySettings;
23
24
  agentId?: string;
@@ -49,6 +50,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
49
50
  environmentName?: string;
50
51
  forceFullPageScreenshot?: boolean;
51
52
  gitMergeBaseTimestamp?: string;
53
+ latestCommitInfo?: LatestCommitInfo;
52
54
  hideCaret?: boolean;
53
55
  hideScrollbars?: boolean;
54
56
  hostApp?: string;
@@ -234,6 +236,10 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
234
236
  set gitMergeBaseTimestamp(gitMergeBaseTimestamp: string);
235
237
  getGitMergeBaseTimestamp(): string;
236
238
  setGitMergeBaseTimestamp(gitMergeBaseTimestamp: string): this;
239
+ get latestCommitInfo(): LatestCommitInfo;
240
+ set latestCommitInfo(latestCommitInfo: LatestCommitInfo);
241
+ getLatestCommitInfo(): LatestCommitInfo;
242
+ setLatestCommitInfo(latestCommitInfo: LatestCommitInfo): this;
237
243
  get hideCaret(): boolean;
238
244
  set hideCaret(hideCaret: boolean);
239
245
  getHideCaret(): boolean;
@@ -0,0 +1,4 @@
1
+ export type LatestCommitInfo = {
2
+ timestamp: string;
3
+ sha: string;
4
+ };
@@ -4,6 +4,7 @@ export type RunnerOptions = {
4
4
  /** @internal */
5
5
  legacyConcurrency?: number;
6
6
  removeDuplicateTests?: boolean;
7
+ maskLog?: boolean;
7
8
  };
8
9
  /** @deprecated */
9
10
  export declare class RunnerOptionsFluent {