@applitools/nml-client 1.7.5 → 1.8.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.0](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.5...js/nml-client@1.8.0) (2024-04-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * refactor check to have a modular structure ([#2307](https://github.com/Applitools-Dev/sdk/issues/2307)) ([b9818f4](https://github.com/Applitools-Dev/sdk/commit/b9818f46e0a579ad0a4a6beaf142171aea7ce0fd))
9
+
3
10
  ## [1.7.5](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.4...js/nml-client@1.7.5) (2024-03-18)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/nml-client",
3
- "version": "1.7.5",
3
+ "version": "1.8.0",
4
4
  "description": "Client to integrate the SDKs to the Native Mobile Library (NML)",
5
5
  "homepage": "https://applitools.com",
6
6
  "bugs": {
@@ -11,7 +11,7 @@ export interface NMLRequests {
11
11
  takeSnapshots<TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>(options: {
12
12
  settings: SnapshotSettings;
13
13
  logger?: Logger;
14
- }): Promise<TSnapshot[]>;
14
+ }): Promise<TSnapshot extends any ? TSnapshot[] : never>;
15
15
  }
16
16
  export declare function makeNMLRequests({ settings, logger: mainLogger, }: {
17
17
  settings: BrokerServerSettings;
@@ -8,5 +8,5 @@ type Options = {
8
8
  export declare function makeTakeSnapshots({ requests, logger: defaultLogger }: Options): <TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>({ settings, logger, }: {
9
9
  settings: SnapshotSettings;
10
10
  logger?: Logger | undefined;
11
- }) => Promise<TSnapshot[]>;
11
+ }) => Promise<TSnapshot extends any ? TSnapshot[] : never>;
12
12
  export {};
package/types/types.d.ts CHANGED
@@ -12,7 +12,7 @@ export interface NMLClient {
12
12
  takeSnapshots<TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>(options: {
13
13
  settings: SnapshotSettings;
14
14
  logger?: Logger;
15
- }): Promise<TSnapshot[]>;
15
+ }): Promise<TSnapshot extends any ? TSnapshot[] : never>;
16
16
  }
17
17
  export interface BrokerServerSettings {
18
18
  brokerUrl: string;