@applitools/eyes-storybook 3.37.8 → 3.38.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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.38.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.37.8...js/eyes-storybook@3.38.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
+
3
18
  ## [3.37.8](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.37.7...js/eyes-storybook@3.37.8) (2023-08-08)
4
19
 
5
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.37.8",
3
+ "version": "3.38.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "applitools",
@@ -57,7 +57,7 @@
57
57
  "postinstall": "node src/postinstall"
58
58
  },
59
59
  "dependencies": {
60
- "@applitools/core": "3.7.0",
60
+ "@applitools/core": "3.8.0",
61
61
  "@applitools/driver": "1.13.4",
62
62
  "@applitools/functional-commons": "1.6.0",
63
63
  "@applitools/logger": "2.0.7",
@@ -0,0 +1,12 @@
1
+ function extractEnvironment() {
2
+ const versions = {};
3
+ try {
4
+ const {name, version} = require('storybook/package.json');
5
+ versions[name] = version;
6
+ } catch {
7
+ // NOTE: ignore error
8
+ }
9
+ return {versions};
10
+ }
11
+
12
+ module.exports = {extractEnvironment};
@@ -21,6 +21,7 @@ const {Driver} = require('@applitools/driver');
21
21
  const spec = require('@applitools/spec-driver-puppeteer');
22
22
  const {refineErrorMessage} = require('./errMessages');
23
23
  const executeRenders = require('./executeRenders');
24
+ const {extractEnvironment} = require('./extractEnvironment');
24
25
  const {makeCore} = require('@applitools/core');
25
26
  const {makeUFGClient} = require('@applitools/ufg-client');
26
27
  const makeGetStoriesWithConfig = require('./getStoriesWithConfig');
@@ -65,7 +66,8 @@ async function eyesStorybook({
65
66
  if (config.puppeteerExtraHTTPHeaders) {
66
67
  await page.setExtraHTTPHeaders(config.puppeteerExtraHTTPHeaders);
67
68
  }
68
- const core = await makeCore({spec, agentId, logger});
69
+ const environment = extractEnvironment();
70
+ const core = await makeCore({spec, agentId, environment, logger});
69
71
  const manager = await core.makeManager({
70
72
  type: 'ufg',
71
73
  settings: {concurrency: config.testConcurrency},