@applitools/eyes-puppeteer 1.17.18 → 1.18.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,46 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.18.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.17.19...js/eyes-puppeteer@1.18.0) (2023-08-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/core bumped to 3.8.0
14
+ #### Features
15
+
16
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
17
+ * @applitools/eyes bumped to 1.7.0
18
+ #### Features
19
+
20
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
21
+
22
+
23
+
24
+
25
+ ## [1.17.19](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.17.18...js/eyes-puppeteer@1.17.19) (2023-08-08)
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * @applitools/ufg-client bumped to 1.7.0
31
+ #### Features
32
+
33
+ * allow providing custom headers for resource fetching ([#1852](https://github.com/applitools/eyes.sdk.javascript1/issues/1852)) ([372cb96](https://github.com/applitools/eyes.sdk.javascript1/commit/372cb96b905a0661c36e2fa10a7855208fb55bb0))
34
+ * @applitools/core bumped to 3.7.0
35
+ #### Features
36
+
37
+ * allow providing custom headers for resource fetching ([#1852](https://github.com/applitools/eyes.sdk.javascript1/issues/1852)) ([372cb96](https://github.com/applitools/eyes.sdk.javascript1/commit/372cb96b905a0661c36e2fa10a7855208fb55bb0))
38
+
39
+
40
+
41
+ * @applitools/eyes bumped to 1.6.7
42
+
43
+
3
44
  ## [1.17.18](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.17.17...js/eyes-puppeteer@1.17.18) (2023-08-03)
4
45
 
5
46
 
package/dist/api.js CHANGED
@@ -27,10 +27,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  };
28
28
  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
+ const extract_environment_1 = require("./extract-environment");
30
31
  const eyes = __importStar(require("@applitools/eyes"));
31
32
  const spec = __importStar(require("@applitools/spec-driver-puppeteer"));
32
33
  __exportStar(require("@applitools/eyes"), exports);
33
- const sdk = { agentId: `eyes.puppeteer/${require('../package.json').version}`, spec };
34
+ const environment = (0, extract_environment_1.extractEnvironment)();
35
+ const sdk = { spec, agentId: `eyes.puppeteer/${require('../package.json').version}`, environment };
34
36
  class Eyes extends eyes.Eyes {
35
37
  }
36
38
  exports.Eyes = Eyes;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractEnvironment = void 0;
4
+ function extractEnvironment() {
5
+ const versions = {};
6
+ try {
7
+ const { name, version } = require('puppeteer/package.json');
8
+ versions[name] = version;
9
+ }
10
+ catch {
11
+ try {
12
+ const { name, version } = require('puppeteer-core/package.json');
13
+ versions[name] = version;
14
+ }
15
+ catch {
16
+ // NOTE: ignore error
17
+ }
18
+ }
19
+ return { versions };
20
+ }
21
+ exports.extractEnvironment = extractEnvironment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.17.18",
3
+ "version": "1.18.0",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -42,13 +42,13 @@
42
42
  "up:framework": "run --top-level add-silent puppeteer"
43
43
  },
44
44
  "dependencies": {
45
- "@applitools/eyes": "1.6.6",
45
+ "@applitools/eyes": "1.7.0",
46
46
  "@applitools/spec-driver-puppeteer": "1.1.72"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@applitools/api-extractor": "^1.2.21",
50
- "@applitools/bongo": "^5.4.2",
51
- "@applitools/generic": "^3.3.5",
50
+ "@applitools/bongo": "^5.4.3",
51
+ "@applitools/generic": "^3.3.6",
52
52
  "@applitools/test-utils": "^1.5.17",
53
53
  "@types/node": "^12.20.55",
54
54
  "puppeteer": "^19.11.1"