@applitools/eyes-cypress 3.50.1 → 3.50.2
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 +7 -0
- package/dist/plugin/server.js +2 -1
- package/package.json +1 -1
- package/src/plugin/server.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.50.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.50.1...js/eyes-cypress@3.50.2) (2025-02-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add env variable for cypress host name to use different conventions of localhost ([#2793](https://github.com/Applitools-Dev/sdk/issues/2793)) ([8ad8b5b](https://github.com/Applitools-Dev/sdk/commit/8ad8b5ba6f8b9f06643c9c9ed119a25ce385482c))
|
|
9
|
+
|
|
3
10
|
## [3.50.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.50.0...js/eyes-cypress@3.50.1) (2025-02-10)
|
|
4
11
|
|
|
5
12
|
|
package/dist/plugin/server.js
CHANGED
|
@@ -20,7 +20,8 @@ function makeStartServer({ logger, eyesConfig }) {
|
|
|
20
20
|
key,
|
|
21
21
|
cert,
|
|
22
22
|
});
|
|
23
|
-
|
|
23
|
+
const hostName = process.env.APPLITOOLS_CYPRESS_HOST_NAME || undefined;
|
|
24
|
+
await (0, util_1.promisify)(https.listen.bind(https))(hostName ? { host: hostName, port: 0 } : undefined);
|
|
24
25
|
const port = https.address().port;
|
|
25
26
|
logger.log('cypress-sdk server is going to be created with port', port);
|
|
26
27
|
const wss = new ws_1.Server({ server: https, path: '/eyes', maxPayload: 254 * 1024 * 1024 });
|
package/package.json
CHANGED
package/src/plugin/server.ts
CHANGED
|
@@ -27,7 +27,9 @@ export default function makeStartServer({logger, eyesConfig}: {logger: Logger; e
|
|
|
27
27
|
key,
|
|
28
28
|
cert,
|
|
29
29
|
})
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
const hostName = process.env.APPLITOOLS_CYPRESS_HOST_NAME || undefined
|
|
32
|
+
await promisify(https.listen.bind(https))(hostName ? {host: hostName, port: 0} : undefined)
|
|
31
33
|
|
|
32
34
|
const port = (https.address() as AddressInfo).port
|
|
33
35
|
logger.log('cypress-sdk server is going to be created with port', port)
|