@applitools/ec-client 1.10.13 → 1.10.15
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 +44 -0
- package/dist/tunnels/manager-server.js +9 -1
- package/dist/tunnels/manager.js +17 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.10.15](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.10.14...js/ec-client@1.10.15) (2025-06-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/tunnel-client bumped to 1.8.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* update build script to include individual zip creation ([#3008](https://github.com/Applitools-Dev/sdk/issues/3008)) ([46a0cfc](https://github.com/Applitools-Dev/sdk/commit/46a0cfcc472ab69384560095d90a7fa58b4b9186))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* @applitools/req bumped to 1.7.13
|
|
16
|
+
|
|
17
|
+
* @applitools/spec-driver-webdriver bumped to 1.2.6
|
|
18
|
+
|
|
19
|
+
* @applitools/core-base bumped to 1.25.4
|
|
20
|
+
#### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Differentiate Between Invalid and Missing API Key Errors ([6ac17d4](https://github.com/Applitools-Dev/sdk/commit/6ac17d40d7aff45b3de5c949dc7d4673b9739bfd))
|
|
23
|
+
* export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
* @applitools/test-server bumped to 1.2.3
|
|
28
|
+
#### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* basic auth protected resources | FLD-2761 | FMRI-120 ([#2444](https://github.com/Applitools-Dev/sdk/issues/2444)) ([b48cf49](https://github.com/Applitools-Dev/sdk/commit/b48cf49dec50bbf1ed2ba111608a48cf09962565))
|
|
31
|
+
* export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
|
|
32
|
+
* storybook navigation timeouts ([#2701](https://github.com/Applitools-Dev/sdk/issues/2701)) ([64e3a40](https://github.com/Applitools-Dev/sdk/commit/64e3a40a524ae76ec457ae9c2d1170fbaea5e982))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [1.10.14](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.10.13...js/ec-client@1.10.14) (2025-05-14)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* @applitools/core-base bumped to 1.25.3
|
|
43
|
+
#### Performance Improvements
|
|
44
|
+
|
|
45
|
+
* batchify log event ([#2970](https://github.com/Applitools-Dev/sdk/issues/2970)) ([9b1556f](https://github.com/Applitools-Dev/sdk/commit/9b1556f0c9ddc64a52b8b3f928c18e35f6fbbc17))
|
|
46
|
+
|
|
3
47
|
## [1.10.13](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.10.12...js/ec-client@1.10.13) (2025-05-11)
|
|
4
48
|
|
|
5
49
|
|
|
@@ -52,7 +52,15 @@ async function makeTunnelManagerServer({ settings, path, idleTimeout = 600000, /
|
|
|
52
52
|
});
|
|
53
53
|
logger.log('Server is started');
|
|
54
54
|
const manager = await (0, manager_1.makeTunnelManager)({ settings, logger });
|
|
55
|
-
(_a = process.send) === null || _a === void 0 ? void 0 : _a.call(process, { name: 'started', payload: { path } })
|
|
55
|
+
(_a = process.send) === null || _a === void 0 ? void 0 : _a.call(process, { name: 'started', payload: { path } }, (error) => {
|
|
56
|
+
if (error) {
|
|
57
|
+
logger.error('Failed to send started message', { error });
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
logger.log('Started message is sent');
|
|
62
|
+
}
|
|
63
|
+
});
|
|
56
64
|
let idle;
|
|
57
65
|
let serverClosed = false;
|
|
58
66
|
if (idleTimeout)
|
package/dist/tunnels/manager.js
CHANGED
|
@@ -36,7 +36,23 @@ 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:
|
|
39
|
+
destroy: async (tunnels) => {
|
|
40
|
+
await Promise.all(tunnels.map(async (tunnel) => {
|
|
41
|
+
var _a;
|
|
42
|
+
try {
|
|
43
|
+
await client.destroy(tunnel.tunnelId);
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
// Log but don't throw if tunnel is already deleted
|
|
47
|
+
if ((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('TUNNEL_NOT_FOUND')) {
|
|
48
|
+
logger.log(`Tunnel ${tunnel.tunnelId} was already deleted`);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
},
|
|
40
56
|
...settings === null || settings === void 0 ? void 0 : settings.pool,
|
|
41
57
|
});
|
|
42
58
|
pools.set(key, pool);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/ec-client",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.15",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -52,20 +52,20 @@
|
|
|
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.25.
|
|
55
|
+
"@applitools/core-base": "1.25.4",
|
|
56
56
|
"@applitools/driver": "1.21.4",
|
|
57
57
|
"@applitools/logger": "2.1.4",
|
|
58
|
-
"@applitools/req": "1.7.
|
|
58
|
+
"@applitools/req": "1.7.13",
|
|
59
59
|
"@applitools/socket": "1.2.5",
|
|
60
|
-
"@applitools/spec-driver-webdriver": "1.2.
|
|
61
|
-
"@applitools/tunnel-client": "1.
|
|
60
|
+
"@applitools/spec-driver-webdriver": "1.2.6",
|
|
61
|
+
"@applitools/tunnel-client": "1.8.0",
|
|
62
62
|
"@applitools/utils": "1.8.2",
|
|
63
63
|
"abort-controller": "3.0.0",
|
|
64
64
|
"webdriver": "7.31.1",
|
|
65
65
|
"yargs": "^17.7.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@applitools/test-server": "^1.2.
|
|
68
|
+
"@applitools/test-server": "^1.2.3",
|
|
69
69
|
"@applitools/test-utils": "^1.5.17",
|
|
70
70
|
"@types/node": "^12.20.55",
|
|
71
71
|
"@types/node-fetch": "^2.6.1",
|