@applitools/nml-client 1.6.2 → 1.6.4

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.6.3...js/nml-client@1.6.4) (2024-01-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove local environment id ([#2152](https://github.com/applitools/eyes.sdk.javascript1/issues/2152)) ([59aaeae](https://github.com/applitools/eyes.sdk.javascript1/commit/59aaeaed474fbde78b76ae7ac803960e3ecd8166))
9
+
10
+ ## [1.6.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.6.2...js/nml-client@1.6.3) (2024-01-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * environment for each check for local environment ([#2135](https://github.com/applitools/eyes.sdk.javascript1/issues/2135)) ([f3a4483](https://github.com/applitools/eyes.sdk.javascript1/commit/f3a44831d41e190aa259367b17e930e7b6f39a04))
16
+
3
17
  ## [1.6.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.6.1...js/nml-client@1.6.2) (2023-12-19)
4
18
 
5
19
 
@@ -51,7 +51,7 @@ function makeNMLRequests({ settings, logger: mainLogger, }) {
51
51
  const { localEnvironment, renderEnvironments, environmentSettings } = settings.environments.reduce((result, environment) => {
52
52
  var _a;
53
53
  if (!utils.types.has(environment, 'iosDeviceInfo') && !utils.types.has(environment, 'androidDeviceInfo')) {
54
- result.localEnvironment = { ...environment, environmentId: utils.general.guid() };
54
+ result.localEnvironment = environment;
55
55
  }
56
56
  else {
57
57
  const deviceInfo = utils.types.has(environment, 'iosDeviceInfo')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/nml-client",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Client to integrate the SDKs to the Native Mobile Library (NML)",
5
5
  "homepage": "https://applitools.com",
6
6
  "bugs": {
package/types/types.d.ts CHANGED
@@ -37,18 +37,15 @@ export interface AndroidDeviceEnvironment {
37
37
  };
38
38
  }
39
39
  export interface LocalEnvironment {
40
+ environmentId: string;
40
41
  os: string;
41
42
  deviceName: string;
42
43
  viewportSize: Size;
43
44
  }
44
45
  export type Environment = IOSDeviceEnvironment | AndroidDeviceEnvironment | LocalEnvironment;
45
- export interface ActualEnvironment {
46
+ export type ActualEnvironment = LocalEnvironment & {
46
47
  requested?: IOSDeviceEnvironment | AndroidDeviceEnvironment;
47
- environmentId: string;
48
- os: string;
49
- deviceName: string;
50
- viewportSize: Size;
51
- }
48
+ };
52
49
  export type Selector = string | {
53
50
  selector: string;
54
51
  type?: string;