@reportportal/client-javascript 5.0.9 → 5.0.11

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 CHANGED
@@ -1 +1 @@
1
- 5.0.10-SNAPSHOT
1
+ 5.0.12-SNAPSHOT
package/lib/rest.js CHANGED
@@ -45,8 +45,7 @@ class RestClient {
45
45
  : ''
46
46
  }
47
47
  URL: ${url}
48
- method: ${method}
49
- Request data: ${JSON.stringify(data)}`,
48
+ method: ${method}`,
50
49
  );
51
50
  });
52
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/client-javascript",
3
- "version": "5.0.9",
3
+ "version": "5.0.11",
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": "^4.0.0",
30
+ "ini": "^2.0.0",
31
31
  "uniqid": "^5.4.0",
32
32
  "uuid": "^9.0.0"
33
33
  },
@@ -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 = atob('Ry1XUDU3UlNHOFhMOmVFazhPMGJ0UXZ5MmI2VXVRT19TOFE=');
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
 
@@ -21,7 +21,11 @@ class Statistics {
21
21
  ) {
22
22
  params.agent_name = agentParams.name;
23
23
  }
24
- if (agentParams && Object.hasOwn(agentParams, 'version') && agentParams.version) {
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;