@applitools/eyes-selenium 4.58.5 → 4.59.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
@@ -6,6 +6,13 @@
6
6
 
7
7
 
8
8
 
9
+ ## 4.59.0 - 2022/6/1
10
+
11
+ ### Features
12
+ - Dorp support for Node.js versions <=12
13
+ ### Bug fixes
14
+ - Fixed incorrect calculation of coded regions in classic mode when using CSS stitching
15
+
9
16
  ## 4.58.5 - 2022/5/27
10
17
 
11
18
  ### Features
package/dist/api.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.58.5",
3
+ "version": "4.59.0",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -33,11 +33,6 @@
33
33
  },
34
34
  "main": "./dist/index.js",
35
35
  "types": "./types/index.d.ts",
36
- "directories": {
37
- "lib": "./lib",
38
- "example": "./example",
39
- "test": "./test"
40
- },
41
36
  "files": [
42
37
  "dist",
43
38
  "types"
@@ -66,39 +61,40 @@
66
61
  }
67
62
  },
68
63
  "dependencies": {
69
- "@applitools/eyes-api": "1.4.1",
70
- "@applitools/eyes-sdk-core": "13.6.23",
71
- "@applitools/spec-driver-selenium": "1.3.6",
72
- "@applitools/visual-grid-client": "15.12.35"
64
+ "@applitools/eyes-api": "1.5.0",
65
+ "@applitools/eyes-sdk-core": "13.6.25",
66
+ "@applitools/spec-driver-selenium": "1.3.7",
67
+ "@applitools/visual-grid-client": "15.12.36"
73
68
  },
74
69
  "devDependencies": {
75
- "@applitools/api-extractor": "1.2.7",
76
- "@applitools/bongo": "^2.1.0",
70
+ "@applitools/api-extractor": "1.2.8",
71
+ "@applitools/bongo": "^2.1.1",
77
72
  "@applitools/scripts": "1.1.0",
78
73
  "@applitools/sdk-coverage-tests": "2.3.18",
79
74
  "@applitools/sdk-shared": "0.9.11",
80
75
  "@applitools/test-utils": "1.3.2",
81
- "@types/selenium-webdriver": "^4.0.11",
82
- "@typescript-eslint/eslint-plugin": "^4.15.1",
83
- "@typescript-eslint/parser": "^4.15.1",
76
+ "@types/node": "12",
77
+ "@types/selenium-webdriver": "^4.1.1",
78
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
79
+ "@typescript-eslint/parser": "^5.27.0",
84
80
  "chromedriver": "^87.0.4",
85
- "eslint": "^7.9.0",
86
- "eslint-config-prettier": "^7.2.0",
81
+ "eslint": "^8.16.0",
82
+ "eslint-config-prettier": "^8.5.0",
87
83
  "eslint-plugin-mocha-no-only": "^1.1.1",
88
84
  "eslint-plugin-node": "^11.1.0",
89
- "eslint-plugin-prettier": "^3.3.1",
85
+ "eslint-plugin-prettier": "^4.0.0",
90
86
  "husky": "^4.3.8",
91
- "mocha": "^9.1.2",
92
- "prettier": "^2.1.2",
93
- "selenium-webdriver": "^4.1.1",
87
+ "mocha": "^10.0.0",
88
+ "prettier": "^2.6.2",
89
+ "selenium-webdriver": "^4.2.0",
94
90
  "spec-xunit-file": "0.0.1-3",
95
- "ttypescript": "^1.5.12",
96
- "typescript": "^4.5.4"
91
+ "ttypescript": "^1.5.13",
92
+ "typescript": "^4.7.2"
97
93
  },
98
94
  "peerDependencies": {
99
95
  "selenium-webdriver": ">=3.6.0"
100
96
  },
101
97
  "engines": {
102
- "node": ">=8.9.0"
98
+ "node": ">=12.13.0"
103
99
  }
104
100
  }
package/types/index.d.ts CHANGED
@@ -414,10 +414,10 @@ export class Configuration implements Required<ConfigurationPlain> {
414
414
  setConcurrentSessions(concurrentSessions: number): Configuration;
415
415
  get browsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>;
416
416
  set browsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>);
417
- getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>;
418
- setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>): Configuration;
419
- addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>): Configuration;
420
- addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }): Configuration;
417
+ getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>;
418
+ setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
419
+ addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
420
+ addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo): Configuration;
421
421
  addBrowser(width: number, height: number, name?: BrowserTypePlain): Configuration;
422
422
  addDeviceEmulation(deviceName: DeviceNamePlain, screenOrientation?: ScreenOrientationPlain): Configuration;
423
423
  get visualGridOptions(): { [key: string]: any; };
@@ -741,7 +741,7 @@ export enum SessionType {
741
741
  SEQUENTIAL = 'SEQUENTIAL',
742
742
  PROGRESSION = 'PROGRESSION'
743
743
  }
744
- export type StitchModePlain = "Scroll" | "CSS";
744
+ export type StitchModePlain = "CSS" | "Scroll";
745
745
  export enum StitchMode {
746
746
  SCROLL = 'Scroll',
747
747
  CSS = 'CSS'
@@ -929,8 +929,8 @@ export type ImageMatchSettingsPlain = {
929
929
  layoutRegions?: Array<RegionPlain>;
930
930
  strictRegions?: Array<RegionPlain>;
931
931
  contentRegions?: Array<RegionPlain>;
932
- floatingRegions?: Array<FloatingMatchSettingsPlain | RegionPlain>;
933
- accessibilityRegions?: Array<AccessibilityMatchSettingsPlain | RegionPlain>;
932
+ floatingRegions?: Array<RegionPlain | FloatingMatchSettingsPlain>;
933
+ accessibilityRegions?: Array<RegionPlain | AccessibilityMatchSettingsPlain>;
934
934
  accessibilitySettings?: AccessibilitySettings;
935
935
  };
936
936
  export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
@@ -981,16 +981,16 @@ export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
981
981
  set content(content: Array<RegionPlain>);
982
982
  getContentRegions(): Array<Region>;
983
983
  setContentRegions(contentRegions: Array<RegionPlain>): void;
984
- get floatingRegions(): Array<FloatingMatchSettingsPlain | RegionPlain>;
985
- set floatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain | RegionPlain>);
986
- get floating(): Array<FloatingMatchSettingsPlain | RegionPlain>;
987
- set floating(floating: Array<FloatingMatchSettingsPlain | RegionPlain>);
984
+ get floatingRegions(): Array<RegionPlain | FloatingMatchSettingsPlain>;
985
+ set floatingRegions(floatingRegions: Array<RegionPlain | FloatingMatchSettingsPlain>);
986
+ get floating(): Array<RegionPlain | FloatingMatchSettingsPlain>;
987
+ set floating(floating: Array<RegionPlain | FloatingMatchSettingsPlain>);
988
988
  getFloatingRegions(): Array<FloatingMatchSettings>;
989
989
  setFloatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain>): void;
990
- get accessibilityRegions(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
991
- set accessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
992
- get accessibility(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
993
- set accessibility(accessibility: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
990
+ get accessibilityRegions(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
991
+ set accessibilityRegions(accessibilityRegions: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
992
+ get accessibility(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
993
+ set accessibility(accessibility: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
994
994
  getAccessibilityRegions(): Array<AccessibilityMatchSettings>;
995
995
  setAccessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain>): void;
996
996
  get accessibilitySettings(): AccessibilitySettings;
@@ -1019,7 +1019,7 @@ export class Location implements Required<LocationPlain> {
1019
1019
  getY(): number;
1020
1020
  setY(y: number): void;
1021
1021
  }
1022
- export type LogHandlerPlain = CustomLogHandlerPlain | FileLogHandlerPlain | ConsoleLogHandlerPlain;
1022
+ export type LogHandlerPlain = CustomLogHandlerPlain | ConsoleLogHandlerPlain | FileLogHandlerPlain;
1023
1023
  export type CustomLogHandlerPlain = {
1024
1024
  log(message: any): void;
1025
1025
  warn?(message: any): void;
@@ -1454,7 +1454,6 @@ export class Logger {
1454
1454
  open(): void;
1455
1455
  close(): void;
1456
1456
  tag(name: string, value: any): void;
1457
- extend(options?: import('node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
1458
1457
  extend(label?: string): Logger;
1459
1458
  }
1460
1459
  export function closeBatch(spec: { closeBatches(options: { settings: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }; }): Promise<void>; }): (options: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }) => Promise<void>;