@applitools/eyes 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,83 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.5.0...js/eyes@1.5.1) (2023-07-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fixed issue with getResults log appearing in console when file handler configured ([56b75c2](https://github.com/applitools/eyes.sdk.javascript1/commit/56b75c2185906c1581980985816a000c14000ac3))
9
+
10
+
11
+ ### Reverts
12
+
13
+ * revert removal of `nmgOptions` api ([b8d03c7](https://github.com/applitools/eyes.sdk.javascript1/commit/b8d03c77e8243397ecca233e46d56f7437d16df4))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/core bumped from 3.4.0 to 3.5.0
19
+ #### Features
20
+
21
+ * added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
22
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
23
+
24
+
25
+ #### Bug Fixes
26
+
27
+ * some fix ([660a137](https://github.com/applitools/eyes.sdk.javascript1/commit/660a1376a49dd28f8f399690502cd3d1f77665fa))
28
+
29
+
30
+
31
+ * @applitools/core-base bumped from 1.2.1 to 1.3.0
32
+ #### Features
33
+
34
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
35
+
36
+
37
+
38
+ * @applitools/req bumped from 1.3.3 to 1.4.0
39
+ #### Features
40
+
41
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
42
+ * @applitools/driver bumped from 1.12.4 to 1.13.0
43
+ #### Features
44
+
45
+ * added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
46
+ * @applitools/ec-client bumped from 1.5.0 to 1.6.0
47
+ #### Features
48
+
49
+ * added support of regional execution cloud servers ([#1711](https://github.com/applitools/eyes.sdk.javascript1/issues/1711)) ([2e26c69](https://github.com/applitools/eyes.sdk.javascript1/commit/2e26c6944bb15f6121fb37c1dba95aba162c1f6a))
50
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
51
+
52
+
53
+ #### Bug Fixes
54
+
55
+ * fixed auto tunnel cleanup after unexpected end of the process ([3c1ad08](https://github.com/applitools/eyes.sdk.javascript1/commit/3c1ad0837d2d3560becc6d89370aa878becb3270))
56
+
57
+
58
+
59
+ * @applitools/tunnel-client bumped from 0.1.1 to 1.0.0
60
+ #### Features
61
+
62
+ * added binaries and made them available in jfrog ([92033fe](https://github.com/applitools/eyes.sdk.javascript1/commit/92033fed7edc58bbc4a4e37269068418fe3afc3d))
63
+ * release as 1.0.0 ([93bf312](https://github.com/applitools/eyes.sdk.javascript1/commit/93bf31205b07d19bc2cb4f50b974c7bad0f49cea))
64
+
65
+
66
+
67
+ * @applitools/ufg-client bumped from 1.2.22 to 1.3.0
68
+ #### Features
69
+
70
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
71
+
72
+
73
+
74
+ * @applitools/spec-driver-webdriver bumped from 1.0.36 to 1.0.37
75
+
76
+ * @applitools/nml-client bumped from 1.5.0 to 1.5.1
77
+
78
+ * @applitools/screenshoter bumped from 3.8.1 to 3.8.2
79
+
80
+
3
81
  ## [1.5.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.4.1...js/eyes@1.5.0) (2023-06-29)
4
82
 
5
83
 
package/dist/Eyes.js CHANGED
@@ -231,8 +231,8 @@ class Eyes {
231
231
  }));
232
232
  }
233
233
  async check(checkSettingsOrTargetOrName, checkSettings) {
234
- var _a;
235
- var _b;
234
+ var _a, _b;
235
+ var _c;
236
236
  if (this._config.isDisabled)
237
237
  return null;
238
238
  if (!this.isOpen)
@@ -256,8 +256,9 @@ class Eyes {
256
256
  const { target, settings } = serialized;
257
257
  const config = this._config.toJSON();
258
258
  // TODO remove when major version of sdk should be released
259
- (_a = (_b = config.screenshot).fully) !== null && _a !== void 0 ? _a : (_b.fully = false);
260
- const [result] = await this._eyes.check({ target, settings, config });
259
+ (_a = (_c = config.screenshot).fully) !== null && _a !== void 0 ? _a : (_c.fully = false);
260
+ const type = this._runner.type === 'ufg' && ((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === 'addToAllDevices' ? 'classic' : undefined;
261
+ const [result] = await this._eyes.check({ type, target, settings, config });
261
262
  return new MatchResult_1.MatchResultData(result);
262
263
  }
263
264
  /** @deprecated */
package/dist/Runners.js CHANGED
@@ -54,7 +54,11 @@ class EyesRunner {
54
54
  /** @internal */
55
55
  async openEyes(options) {
56
56
  var _a;
57
- (_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager({ type: this.type, settings: this._managerSettings }));
57
+ (_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager({
58
+ type: this.type,
59
+ settings: this._managerSettings,
60
+ logger: options.logger,
61
+ }));
58
62
  return await this._manager.openEyes(options);
59
63
  }
60
64
  async getAllTestResults(throwErr = true) {
@@ -422,6 +422,16 @@ class CheckSettingsAutomationFluent extends CheckSettingsBaseFluent {
422
422
  return this;
423
423
  }
424
424
  /** @deprecated */
425
+ nmgOption(key, value) {
426
+ this._settings.nmgOptions = { ...this._settings.nmgOptions, [key]: value };
427
+ return this;
428
+ }
429
+ /** @deprecated */
430
+ nmgOptions(options) {
431
+ this._settings.nmgOptions = options;
432
+ return this;
433
+ }
434
+ /** @deprecated */
425
435
  visualGridOption(key, value) {
426
436
  return this.ufgOption(key, value);
427
437
  }
@@ -490,6 +500,7 @@ class CheckSettingsAutomationFluent extends CheckSettingsBaseFluent {
490
500
  : { breakpoints: (_a = this._settings.layoutBreakpoints) !== null && _a !== void 0 ? _a : false }
491
501
  : undefined,
492
502
  ufgOptions: this._settings.visualGridOptions,
503
+ nmgOptions: this._settings.nmgOptions,
493
504
  screenshotMode: this._settings.useSystemScreenshot ? 'default' : undefined,
494
505
  hooks: this._settings.hooks,
495
506
  pageId: this._settings.pageId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -45,12 +45,12 @@
45
45
  "test": "run --top-level mocha './test/**/*.spec.ts'"
46
46
  },
47
47
  "dependencies": {
48
- "@applitools/core": "3.4.0",
48
+ "@applitools/core": "3.5.0",
49
49
  "@applitools/logger": "2.0.5",
50
50
  "@applitools/utils": "1.5.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@applitools/req": "^1.3.3",
53
+ "@applitools/req": "^1.4.0",
54
54
  "@types/node": "^12.20.55"
55
55
  },
56
56
  "engines": {
@@ -78,6 +78,10 @@ export type CheckSettingsAutomation<TSpec extends Core.SpecType> = CheckSettings
78
78
  visualGridOptions?: {
79
79
  [key: string]: any;
80
80
  };
81
+ /** @deprecated */
82
+ nmgOptions?: {
83
+ [key: string]: any;
84
+ };
81
85
  useSystemScreenshot?: boolean;
82
86
  hooks?: {
83
87
  beforeCaptureScreenshot: string;
@@ -189,6 +193,12 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
189
193
  [key: string]: any;
190
194
  }): this;
191
195
  /** @deprecated */
196
+ nmgOption(key: string, value: any): this;
197
+ /** @deprecated */
198
+ nmgOptions(options: {
199
+ [key: string]: any;
200
+ }): this;
201
+ /** @deprecated */
192
202
  visualGridOption(key: string, value: any): this;
193
203
  /** @deprecated */
194
204
  visualGridOptions(options: {