@applitools/tunnel-client
Advanced tools
Comparing version 1.5.0 to 1.5.1
# Changelog | ||
## [1.5.1](https://github.com/Applitools-Dev/sdk/compare/js/tunnel-client@1.5.0...js/tunnel-client@1.5.1) (2024-04-15) | ||
### Bug Fixes | ||
* create tunnels in australia when passed region in create ([#2322](https://github.com/Applitools-Dev/sdk/issues/2322)) ([f679989](https://github.com/Applitools-Dev/sdk/commit/f6799894b9630d2c56cd85a34d377f488ed75b9c)) | ||
### Dependencies | ||
* @applitools/utils bumped to 1.7.1 | ||
#### Bug Fixes | ||
* region intersection algorithm ([#2290](https://github.com/Applitools-Dev/sdk/issues/2290)) ([aaa8d0c](https://github.com/Applitools-Dev/sdk/commit/aaa8d0cbcb0e39d23d652c2caf9d27bfaed0d2eb)) | ||
* @applitools/logger bumped to 2.0.15 | ||
* @applitools/socket bumped to 1.1.15 | ||
* @applitools/req bumped to 1.6.6 | ||
## [1.5.0](https://github.com/Applitools-Dev/sdk/compare/js/tunnel-client@1.4.1...js/tunnel-client@1.5.0) (2024-04-10) | ||
@@ -4,0 +25,0 @@ |
@@ -50,7 +50,11 @@ "use strict"; | ||
} | ||
const getTunnelService = utils.general.cachify(async () => { | ||
const getTunnelService = utils.general.cachify(async (region) => { | ||
if (settings === null || settings === void 0 ? void 0 : settings.serviceUrl) { | ||
return { url: settings.serviceUrl, close: () => Promise.resolve() }; | ||
} | ||
const { port, cleanupFunction } = await (0, execution_grid_tunnel_1.startEgTunnelService)({ region: settings === null || settings === void 0 ? void 0 : settings.region, useTcpTunnel, logger }); | ||
const { port, cleanupFunction } = await (0, execution_grid_tunnel_1.startEgTunnelService)({ | ||
region: region !== null && region !== void 0 ? region : settings === null || settings === void 0 ? void 0 : settings.region, | ||
useTcpTunnel, | ||
logger, | ||
}); | ||
return { | ||
@@ -63,3 +67,3 @@ url: `http://localhost:${port}`, | ||
}; | ||
}); | ||
}, () => 'get-tunnel-service'); | ||
const tunnels = new Map(); | ||
@@ -82,3 +86,3 @@ const queues = new Map(); | ||
async function create(credentials) { | ||
const service = await getTunnelService(); | ||
const service = await getTunnelService(credentials.region); | ||
const queueKey = `${credentials.apiKey}$${credentials.eyesServerUrl}`; | ||
@@ -85,0 +89,0 @@ let queue = queues.get(queueKey); |
{ | ||
"name": "@applitools/tunnel-client", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"homepage": "https://applitools.com", | ||
@@ -73,6 +73,6 @@ "bugs": { | ||
"@applitools/execution-grid-tunnel": "3.0.3", | ||
"@applitools/logger": "2.0.14", | ||
"@applitools/req": "1.6.5", | ||
"@applitools/socket": "1.1.14", | ||
"@applitools/utils": "1.7.0", | ||
"@applitools/logger": "2.0.15", | ||
"@applitools/req": "1.6.6", | ||
"@applitools/socket": "1.1.15", | ||
"@applitools/utils": "1.7.1", | ||
"abort-controller": "3.0.0", | ||
@@ -79,0 +79,0 @@ "yargs": "17.7.2" |
65035
680
+ Added@applitools/logger@2.0.15(transitive)
+ Added@applitools/req@1.6.6(transitive)
+ Added@applitools/socket@1.1.15(transitive)
+ Added@applitools/utils@1.7.1(transitive)
- Removed@applitools/logger@2.0.14(transitive)
- Removed@applitools/req@1.6.5(transitive)
- Removed@applitools/socket@1.1.14(transitive)
- Removed@applitools/utils@1.7.0(transitive)
Updated@applitools/logger@2.0.15
Updated@applitools/req@1.6.6
Updated@applitools/socket@1.1.15
Updated@applitools/utils@1.7.1