@reportportal/client-javascript 5.0.9 → 5.0.10
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/VERSION +1 -1
- package/package.json +2 -2
- package/statistics/constants.js +4 -1
- package/statistics/statistics.js +5 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.0.
|
|
1
|
+
5.0.11-SNAPSHOT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reportportal/client-javascript",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "ReportPortal client for Node.js",
|
|
5
5
|
"author": "ReportPortal.io",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
28
|
"axios-retry": "^3.4.0",
|
|
29
29
|
"glob": "^7.2.3",
|
|
30
|
-
"ini": "^
|
|
30
|
+
"ini": "^2.0.0",
|
|
31
31
|
"uniqid": "^5.4.0",
|
|
32
32
|
"uuid": "^9.0.0"
|
|
33
33
|
},
|
package/statistics/constants.js
CHANGED
|
@@ -10,7 +10,10 @@ const RP_FOLDER = '.rp';
|
|
|
10
10
|
const RP_PROPERTIES_FILE = 'rp.properties';
|
|
11
11
|
const RP_FOLDER_PATH = path.join(os.homedir(), RP_FOLDER);
|
|
12
12
|
const RP_PROPERTIES_FILE_PATH = path.join(RP_FOLDER_PATH, RP_PROPERTIES_FILE);
|
|
13
|
-
const CLIENT_INFO =
|
|
13
|
+
const CLIENT_INFO = Buffer.from(
|
|
14
|
+
'Ry1XUDU3UlNHOFhMOmVFazhPMGJ0UXZ5MmI2VXVRT19TOFE=',
|
|
15
|
+
'base64',
|
|
16
|
+
).toString('binary');
|
|
14
17
|
const [MEASUREMENT_ID, API_KEY] = CLIENT_INFO.split(':');
|
|
15
18
|
const EVENT_NAME = 'start_launch';
|
|
16
19
|
|
package/statistics/statistics.js
CHANGED
|
@@ -21,7 +21,11 @@ class Statistics {
|
|
|
21
21
|
) {
|
|
22
22
|
params.agent_name = agentParams.name;
|
|
23
23
|
}
|
|
24
|
-
if (
|
|
24
|
+
if (
|
|
25
|
+
agentParams &&
|
|
26
|
+
Object.prototype.hasOwnProperty.call(agentParams, 'version') &&
|
|
27
|
+
agentParams.version
|
|
28
|
+
) {
|
|
25
29
|
params.agent_version = agentParams.version;
|
|
26
30
|
}
|
|
27
31
|
return params;
|