@applitools/ec-client 1.2.22 → 1.2.24
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/dist/commands/execute-script.js +2 -2
- package/dist/req-proxy.js +4 -1
- package/package.json +13 -13
|
@@ -59,9 +59,9 @@ function makeExecuteScript({ req, core }) {
|
|
|
59
59
|
serverUrl: session.credentials.eyesServerUrl,
|
|
60
60
|
apiKey: session.credentials.apiKey,
|
|
61
61
|
proxy: session.proxy,
|
|
62
|
-
appName: (_g = (_f = options === null || options === void 0 ? void 0 : options.appName) !== null && _f !== void 0 ? _f : session.options.appName) !== null && _g !== void 0 ? _g : (await driver.getTitle()),
|
|
62
|
+
appName: (_g = (_f = options === null || options === void 0 ? void 0 : options.appName) !== null && _f !== void 0 ? _f : session.options.appName) !== null && _g !== void 0 ? _g : ((await driver.getTitle()) || 'default'),
|
|
63
63
|
testName: (_h = options === null || options === void 0 ? void 0 : options.testName) !== null && _h !== void 0 ? _h : session.options.testName,
|
|
64
|
-
properties: [{
|
|
64
|
+
properties: [{ name: 'Execution Cloud', value: 'Yes' }],
|
|
65
65
|
batch: { ...session.options.batch, ...options === null || options === void 0 ? void 0 : options.batch },
|
|
66
66
|
environment: {
|
|
67
67
|
hostingApp: `${(_j = environment.browserName) !== null && _j !== void 0 ? _j : ''} ${(_k = environment.browserVersion) !== null && _k !== void 0 ? _k : ''}`.trim(),
|
package/dist/req-proxy.js
CHANGED
|
@@ -63,7 +63,10 @@ function makeReqProxy(config) {
|
|
|
63
63
|
io.response.sendDate = false;
|
|
64
64
|
if (io.handle !== false) {
|
|
65
65
|
io.response.writeHead(response.status, Object.fromEntries(response.headers.entries()));
|
|
66
|
-
response.body
|
|
66
|
+
if (response.body)
|
|
67
|
+
response.body.pipe(io.response);
|
|
68
|
+
else
|
|
69
|
+
io.response.end();
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/ec-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"default": "./dist/index.js"
|
|
28
28
|
},
|
|
29
29
|
"./cli": {
|
|
30
|
-
"types": "./types/cli.d.ts",
|
|
31
|
-
"default": "./dist/cli.js"
|
|
30
|
+
"types": "./types/cli/cli.d.ts",
|
|
31
|
+
"default": "./dist/cli/cli.js"
|
|
32
32
|
},
|
|
33
33
|
"./types": {
|
|
34
34
|
"types": "./types/types.d.ts",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"main": "./dist/index.js",
|
|
44
44
|
"types": "./types/index.d.ts",
|
|
45
45
|
"bin": {
|
|
46
|
-
"ec-client": "./dist/cli.js",
|
|
47
|
-
"eg-client": "./dist/cli.js"
|
|
46
|
+
"ec-client": "./dist/cli/cli.js",
|
|
47
|
+
"eg-client": "./dist/cli/cli.js"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist",
|
|
@@ -63,21 +63,21 @@
|
|
|
63
63
|
"postversion": "bongo postversion"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@applitools/core-base": "1.1.
|
|
67
|
-
"@applitools/driver": "1.11.
|
|
66
|
+
"@applitools/core-base": "1.1.52",
|
|
67
|
+
"@applitools/driver": "1.11.46",
|
|
68
68
|
"@applitools/execution-grid-tunnel": "1.0.24",
|
|
69
|
-
"@applitools/logger": "1.1.
|
|
70
|
-
"@applitools/req": "1.
|
|
71
|
-
"@applitools/socket": "1.0.
|
|
72
|
-
"@applitools/spec-driver-webdriver": "1.0.
|
|
73
|
-
"@applitools/utils": "1.3.
|
|
69
|
+
"@applitools/logger": "1.1.52",
|
|
70
|
+
"@applitools/req": "1.2.2",
|
|
71
|
+
"@applitools/socket": "1.0.13",
|
|
72
|
+
"@applitools/spec-driver-webdriver": "1.0.26",
|
|
73
|
+
"@applitools/utils": "1.3.35",
|
|
74
74
|
"abort-controller": "3.0.0",
|
|
75
75
|
"webdriver": "7",
|
|
76
76
|
"yargs": "17.6.2"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@applitools/bongo": "^3.0.3",
|
|
80
|
-
"@applitools/test-server": "^1.1.
|
|
80
|
+
"@applitools/test-server": "^1.1.31",
|
|
81
81
|
"@applitools/test-utils": "^1.5.16",
|
|
82
82
|
"@types/node": "^12.20.55",
|
|
83
83
|
"@types/node-fetch": "^2.6.1",
|