@applitools/ec-client 1.7.4 → 1.7.6

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,116 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.6](https://github.com/applitools/eyes.sdk.javascript1/compare/js/ec-client@1.7.5...js/ec-client@1.7.6) (2023-08-30)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.5.2
9
+ #### Bug Fixes
10
+
11
+ * fixed some types ([498b1d7](https://github.com/applitools/eyes.sdk.javascript1/commit/498b1d7c547df04773b64b66ee39cccb402c093e))
12
+ * @applitools/logger bumped to 2.0.9
13
+
14
+ * @applitools/socket bumped to 1.1.9
15
+
16
+ * @applitools/req bumped to 1.5.4
17
+
18
+ * @applitools/image bumped to 1.1.4
19
+
20
+ * @applitools/spec-driver-webdriver bumped to 1.0.43
21
+
22
+ * @applitools/driver bumped to 1.13.6
23
+
24
+ * @applitools/tunnel-client bumped to 1.2.1
25
+
26
+ * @applitools/core-base bumped to 1.5.2
27
+
28
+
29
+ ## [1.7.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/ec-client@1.7.4...js/ec-client@1.7.5) (2023-08-18)
30
+
31
+
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
+ ### Dependencies
38
+
39
+ * @applitools/utils bumped to 1.5.1
40
+ #### Code Refactoring
41
+
42
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
43
+ * @applitools/logger bumped to 2.0.8
44
+ #### Code Refactoring
45
+
46
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
47
+
48
+
49
+
50
+ * @applitools/socket bumped to 1.1.8
51
+ #### Code Refactoring
52
+
53
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
54
+
55
+
56
+
57
+ * @applitools/req bumped to 1.5.3
58
+ #### Code Refactoring
59
+
60
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
61
+
62
+
63
+
64
+ * @applitools/image bumped to 1.1.3
65
+ #### Code Refactoring
66
+
67
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
68
+
69
+
70
+
71
+ * @applitools/snippets bumped to 2.4.23
72
+ #### Code Refactoring
73
+
74
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
75
+ * @applitools/spec-driver-webdriver bumped to 1.0.42
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/driver bumped to 1.13.5
83
+ #### Bug Fixes
84
+
85
+ * 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))
86
+
87
+
88
+ #### Code Refactoring
89
+
90
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
91
+
92
+
93
+
94
+ * @applitools/tunnel-client bumped to 1.2.0
95
+ #### Features
96
+
97
+ * 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))
98
+
99
+
100
+ #### Code Refactoring
101
+
102
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
103
+
104
+
105
+
106
+ * @applitools/core-base bumped to 1.5.1
107
+ #### Code Refactoring
108
+
109
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
110
+
111
+
112
+
113
+
3
114
  ## [1.7.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/ec-client@1.7.3...js/ec-client@1.7.4) (2023-08-03)
4
115
 
5
116
 
@@ -43,12 +43,12 @@ function makeExecuteScript({ req, core }) {
43
43
  session.tests.current = undefined;
44
44
  }
45
45
  const driver = await (0, driver_1.makeDriver)({
46
- driver: spec.transformDriver({
46
+ driver: {
47
47
  sessionId: session.sessionId,
48
48
  serverUrl: session.serverUrl,
49
49
  capabilities: session.capabilities,
50
50
  proxy: session.proxy,
51
- }),
51
+ },
52
52
  spec,
53
53
  logger,
54
54
  });
@@ -36,7 +36,7 @@ async function makeTunnelManager({ settings, logger, }) {
36
36
  if (!pool) {
37
37
  pool = makePool({
38
38
  create: () => { var _a; return Promise.all(Array.from({ length: (_a = settings === null || settings === void 0 ? void 0 : settings.groupSize) !== null && _a !== void 0 ? _a : 1 }, () => client.create(credentials))); },
39
- destroy: tunnels => Promise.all(tunnels.map(client.destroy)).then(() => undefined),
39
+ destroy: tunnels => Promise.all(tunnels.map(tunnel => client.destroy(tunnel.tunnelId))).then(() => undefined),
40
40
  ...settings === null || settings === void 0 ? void 0 : settings.pool,
41
41
  });
42
42
  pools.set(key, pool);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/ec-client",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -52,16 +52,16 @@
52
52
  "test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/*.spec.ts'"
53
53
  },
54
54
  "dependencies": {
55
- "@applitools/core-base": "1.5.0",
56
- "@applitools/driver": "1.13.4",
57
- "@applitools/logger": "2.0.7",
58
- "@applitools/req": "1.5.2",
59
- "@applitools/socket": "1.1.7",
60
- "@applitools/spec-driver-webdriver": "1.0.41",
61
- "@applitools/tunnel-client": "1.1.3",
62
- "@applitools/utils": "1.5.0",
55
+ "@applitools/core-base": "1.5.2",
56
+ "@applitools/driver": "1.13.6",
57
+ "@applitools/logger": "2.0.9",
58
+ "@applitools/req": "1.5.4",
59
+ "@applitools/socket": "1.1.9",
60
+ "@applitools/spec-driver-webdriver": "1.0.43",
61
+ "@applitools/tunnel-client": "1.2.1",
62
+ "@applitools/utils": "1.5.2",
63
63
  "abort-controller": "3.0.0",
64
- "webdriver": "7.30.0",
64
+ "webdriver": "7.31.1",
65
65
  "yargs": "^17.7.2"
66
66
  },
67
67
  "devDependencies": {
@@ -0,0 +1,15 @@
1
+ import { type Logger } from '@applitools/logger';
2
+ import { type AbortSignal } from 'abort-controller';
3
+ export type Queue = {
4
+ readonly corked: boolean;
5
+ readonly pause: never;
6
+ run<TResult>(task: Task<TResult>): Promise<TResult>;
7
+ cancel(task: (signal: AbortSignal) => Promise<any>): void;
8
+ cork(): void;
9
+ uncork(): void;
10
+ };
11
+ type Task<TResult> = (signal: AbortSignal) => Promise<TResult>;
12
+ export declare function makeQueue({ logger }: {
13
+ logger: Logger;
14
+ }): Queue;
15
+ export {};