@applitools/ec-client 1.2.33 → 1.2.34
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,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.34](https://github.com/applitools/eyes.sdk.javascript1/compare/js/ec-client@1.2.33...js/ec-client@1.2.34) (2023-06-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* solve mismatch between content type and body in some commands ([#1660](https://github.com/applitools/eyes.sdk.javascript1/issues/1660)) ([8d1d486](https://github.com/applitools/eyes.sdk.javascript1/commit/8d1d4863d09af8266e93c59f99fa9f5a497652a9))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @applitools/core-base bumped from 1.1.57 to 1.1.58
|
|
16
|
+
* @applitools/req bumped from 1.3.1 to 1.3.2
|
|
17
|
+
* @applitools/socket bumped from 1.1.2 to 1.1.3
|
|
18
|
+
|
|
3
19
|
## [1.2.33](https://github.com/applitools/eyes.sdk.javascript1/compare/js/ec-client-v1.2.32...js/ec-client@1.2.33) (2023-06-13)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -6,7 +6,7 @@ function makeEndSession({ req, tunnels }) {
|
|
|
6
6
|
var _a, _b;
|
|
7
7
|
var _c;
|
|
8
8
|
logger.log(`Request was intercepted with sessionId:`, session.sessionId);
|
|
9
|
-
await req(request.url, { io: { request, response }, logger });
|
|
9
|
+
await req(request.url, { body: null, io: { request, response }, logger });
|
|
10
10
|
if ((_a = session.tests) === null || _a === void 0 ? void 0 : _a.current) {
|
|
11
11
|
await session.tests.current.abort({ settings: { testMetadata: session.metadata }, logger });
|
|
12
12
|
(_b = (_c = session.tests).ended) !== null && _b !== void 0 ? _b : (_c.ended = []);
|
|
@@ -72,7 +72,7 @@ function makeExecuteScript({ req, core }) {
|
|
|
72
72
|
},
|
|
73
73
|
logger,
|
|
74
74
|
});
|
|
75
|
-
response.writeHead(200).end(JSON.stringify({ value: null }));
|
|
75
|
+
response.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify({ value: null }));
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
else if (requestBody.script === 'applitools:endTest') {
|
|
@@ -85,22 +85,24 @@ function makeExecuteScript({ req, core }) {
|
|
|
85
85
|
session.tests.ended.push(session.tests.current);
|
|
86
86
|
session.tests.current = undefined;
|
|
87
87
|
}
|
|
88
|
-
response.writeHead(200).end(JSON.stringify({ value: null }));
|
|
88
|
+
response.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify({ value: null }));
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
else if (requestBody.script === 'applitools:getResults') {
|
|
92
92
|
if ((_q = session.tests) === null || _q === void 0 ? void 0 : _q.ended) {
|
|
93
93
|
const results = await Promise.all(session.tests.ended.map(test => test.getResults({ logger })));
|
|
94
|
-
response.writeHead(200).end(JSON.stringify({ value: results.flat() }));
|
|
94
|
+
response.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify({ value: results.flat() }));
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
|
-
response.writeHead(200).end(JSON.stringify({ value: [] }));
|
|
97
|
+
response.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify({ value: [] }));
|
|
98
98
|
}
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
101
|
else if (requestBody.script === 'applitools:metadata') {
|
|
102
102
|
logger.log('Session metadata requested, returning', session.metadata);
|
|
103
|
-
response
|
|
103
|
+
response
|
|
104
|
+
.writeHead(200, { 'content-type': 'application/json' })
|
|
105
|
+
.end(JSON.stringify({ value: (_r = session.metadata) !== null && _r !== void 0 ? _r : [] }));
|
|
104
106
|
session.metadata = [];
|
|
105
107
|
return;
|
|
106
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/ec-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.34",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -52,12 +52,12 @@
|
|
|
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.1.
|
|
55
|
+
"@applitools/core-base": "1.1.58",
|
|
56
56
|
"@applitools/driver": "1.12.2",
|
|
57
57
|
"@applitools/execution-grid-tunnel": "2.1.0",
|
|
58
58
|
"@applitools/logger": "2.0.3",
|
|
59
|
-
"@applitools/req": "1.3.
|
|
60
|
-
"@applitools/socket": "1.1.
|
|
59
|
+
"@applitools/req": "1.3.2",
|
|
60
|
+
"@applitools/socket": "1.1.3",
|
|
61
61
|
"@applitools/spec-driver-webdriver": "1.0.34",
|
|
62
62
|
"@applitools/utils": "1.4.0",
|
|
63
63
|
"abort-controller": "3.0.0",
|
|
@@ -72,9 +72,12 @@
|
|
|
72
72
|
"@types/selenium-webdriver": "^4.0.19",
|
|
73
73
|
"@types/yargs": "^17.0.19",
|
|
74
74
|
"nock": "^13.2.4",
|
|
75
|
-
"selenium-webdriver": "^4.
|
|
75
|
+
"selenium-webdriver": "^4.10.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=12.13.0"
|
|
79
|
+
},
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public"
|
|
79
82
|
}
|
|
80
83
|
}
|