@applitools/eyes-puppeteer 1.18.2 → 1.18.3

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,151 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.18.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.18.2...js/eyes-puppeteer@1.18.3) (2023-08-18)
4
+
5
+
6
+ ### Code Refactoring
7
+
8
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.5.1
14
+ #### Code Refactoring
15
+
16
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
17
+ * @applitools/logger bumped to 2.0.8
18
+ #### Code Refactoring
19
+
20
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
21
+
22
+
23
+
24
+ * @applitools/socket bumped to 1.1.8
25
+ #### Code Refactoring
26
+
27
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
28
+
29
+
30
+
31
+ * @applitools/req bumped to 1.5.3
32
+ #### Code Refactoring
33
+
34
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
35
+
36
+
37
+
38
+ * @applitools/image bumped to 1.1.3
39
+ #### Code Refactoring
40
+
41
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
42
+
43
+
44
+
45
+ * @applitools/snippets bumped to 2.4.23
46
+ #### Code Refactoring
47
+
48
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
49
+ * @applitools/spec-driver-webdriver bumped to 1.0.42
50
+ #### Code Refactoring
51
+
52
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
53
+
54
+
55
+
56
+ * @applitools/spec-driver-selenium bumped to 1.5.56
57
+ #### Code Refactoring
58
+
59
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
60
+
61
+
62
+
63
+ * @applitools/spec-driver-puppeteer bumped to 1.1.73
64
+ #### Code Refactoring
65
+
66
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
67
+
68
+
69
+
70
+ * @applitools/driver bumped to 1.13.5
71
+ #### Bug Fixes
72
+
73
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
74
+
75
+
76
+ #### Code Refactoring
77
+
78
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
79
+
80
+
81
+
82
+ * @applitools/screenshoter bumped to 3.8.8
83
+ #### Code Refactoring
84
+
85
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
86
+
87
+
88
+
89
+ * @applitools/nml-client bumped to 1.5.8
90
+ #### Code Refactoring
91
+
92
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
93
+
94
+
95
+
96
+ * @applitools/tunnel-client bumped to 1.2.0
97
+ #### Features
98
+
99
+ * replace and destroy tunnels by tunnel id ([#1878](https://github.com/applitools/eyes.sdk.javascript1/issues/1878)) ([22bcc15](https://github.com/applitools/eyes.sdk.javascript1/commit/22bcc15b31457e3da56cdb6f73bee3dcb7e051a1))
100
+
101
+
102
+ #### Code Refactoring
103
+
104
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
105
+
106
+
107
+
108
+ * @applitools/ufg-client bumped to 1.7.1
109
+ #### Code Refactoring
110
+
111
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
112
+
113
+
114
+
115
+ * @applitools/ec-client bumped to 1.7.5
116
+ #### Code Refactoring
117
+
118
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
119
+
120
+
121
+
122
+ * @applitools/core-base bumped to 1.5.1
123
+ #### Code Refactoring
124
+
125
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
126
+
127
+
128
+
129
+ * @applitools/core bumped to 3.9.1
130
+ #### Bug Fixes
131
+
132
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
133
+
134
+
135
+ #### Code Refactoring
136
+
137
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
138
+
139
+
140
+
141
+ * @applitools/eyes bumped to 1.7.3
142
+ #### Code Refactoring
143
+
144
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
145
+
146
+
147
+
148
+
3
149
  ## [1.18.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.18.1...js/eyes-puppeteer@1.18.2) (2023-08-10)
4
150
 
5
151
 
package/dist/api.js CHANGED
@@ -29,10 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.closeBatch = exports.BatchClose = exports.Configuration = exports.Target = exports.TargetAutomation = exports.CheckSettings = exports.CheckSettingsAutomation = exports.Eyes = void 0;
30
30
  const extract_environment_1 = require("./extract-environment");
31
31
  const eyes = __importStar(require("@applitools/eyes"));
32
- const spec = __importStar(require("@applitools/spec-driver-puppeteer"));
32
+ const spec = __importStar(require("./spec-driver"));
33
33
  __exportStar(require("@applitools/eyes"), exports);
34
- const environment = (0, extract_environment_1.extractEnvironment)();
35
- const sdk = { spec, agentId: `eyes.puppeteer/${require('../package.json').version}`, environment };
34
+ const sdk = {
35
+ spec: spec,
36
+ agentId: `eyes.puppeteer/${require('../package.json').version}`,
37
+ environment: (0, extract_environment_1.extractEnvironment)(),
38
+ };
36
39
  class Eyes extends eyes.Eyes {
37
40
  }
38
41
  exports.Eyes = Eyes;
@@ -40,16 +43,16 @@ Eyes._sdk = sdk;
40
43
  class CheckSettingsAutomation extends eyes.CheckSettingsAutomation {
41
44
  }
42
45
  exports.CheckSettingsAutomation = CheckSettingsAutomation;
43
- CheckSettingsAutomation._spec = spec;
46
+ CheckSettingsAutomation._spec = sdk.spec;
44
47
  class CheckSettings extends CheckSettingsAutomation {
45
48
  }
46
49
  exports.CheckSettings = CheckSettings;
47
- exports.TargetAutomation = { ...eyes.TargetAutomation, spec };
48
- exports.Target = { ...eyes.Target, spec };
50
+ exports.TargetAutomation = { ...eyes.TargetAutomation, spec: sdk.spec };
51
+ exports.Target = { ...eyes.Target, spec: sdk.spec };
49
52
  class Configuration extends eyes.Configuration {
50
53
  }
51
54
  exports.Configuration = Configuration;
52
- Configuration._spec = spec;
55
+ Configuration._spec = sdk.spec;
53
56
  class BatchClose extends eyes.BatchClose {
54
57
  }
55
58
  exports.BatchClose = BatchClose;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.18.2",
3
+ "version": "1.18.3",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -39,16 +39,16 @@
39
39
  "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
40
40
  "test": "yarn test:coverage",
41
41
  "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-puppeteer' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
42
- "up:framework": "run --top-level add-silent puppeteer"
42
+ "up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
43
43
  },
44
44
  "dependencies": {
45
- "@applitools/eyes": "1.7.2",
46
- "@applitools/spec-driver-puppeteer": "1.1.72"
45
+ "@applitools/eyes": "1.7.3",
46
+ "@applitools/spec-driver-puppeteer": "1.1.73"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@applitools/api-extractor": "^1.2.21",
50
- "@applitools/bongo": "^5.4.3",
51
- "@applitools/generic": "^3.3.8",
50
+ "@applitools/bongo": "^5.6.1",
51
+ "@applitools/generic": "^3.3.9",
52
52
  "@applitools/test-utils": "^1.5.17",
53
53
  "@types/node": "^12.20.55",
54
54
  "puppeteer": "^19.11.1"
package/types/index.d.ts CHANGED
@@ -2,7 +2,13 @@ export type Driver = import('puppeteer').Page & { __applitoolsBrand?: undefined;
2
2
  export type Context = import('puppeteer').Frame & { __applitoolsBrand?: undefined; };
3
3
  export type Element = import('puppeteer').ElementHandle & { __applitoolsBrand?: undefined; };
4
4
  export type Selector = string & { __applitoolsBrand?: undefined; };
5
- export type SpecType = { driver: Driver; context: Context; element: Element; selector: Selector; };
5
+ export type SpecType = {
6
+ driver: Driver;
7
+ context: Context;
8
+ element: Element;
9
+ selector: Selector;
10
+ secondary: never;
11
+ };
6
12
  export class Eyes {
7
13
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
8
14
  static getExecutionCloudUrl(config?: undefined | ConfigurationPlain): Promise<string>;
@@ -352,7 +358,7 @@ export type TargetAutomation = {
352
358
  webview(webview?: undefined | string): CheckSettingsAutomation;
353
359
  webview(webview?: undefined | boolean): CheckSettingsAutomation;
354
360
  };
355
- export const Target: TargetImage & TargetAutomation;
361
+ export type Target = TargetImage & TargetAutomation;
356
362
  export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
357
363
  export type ConfigurationPlain = {
358
364
  debugScreenshots?: undefined | { save: boolean; path?: undefined | string; prefix?: undefined | string; };