@arrowsphere/api-client 3.139.1 → 3.139.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 CHANGED
@@ -3,6 +3,11 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.139.2] - 2024.09.11
7
+
8
+ ### Fixed
9
+ - [axios] Fix undefined user in clean request log
10
+
6
11
  ## [3.139.1] - 2024.09.11
7
12
 
8
13
  ### Fixed
@@ -47,14 +47,14 @@ class AxiosSingleton {
47
47
  * @param request - Axios Request
48
48
  */
49
49
  static cleanRequestLog(request) {
50
- var _a, _b, _c;
50
+ var _a, _b, _c, _d;
51
51
  const tempRequest = (0, lodash_1.cloneDeep)(request);
52
52
  if ((_a = tempRequest.headers) === null || _a === void 0 ? void 0 : _a.apiKey) {
53
53
  const apiKey = (_b = tempRequest.headers) === null || _b === void 0 ? void 0 : _b.apiKey;
54
54
  tempRequest.headers.apiKey =
55
55
  '****************************' + apiKey.substring(apiKey.length - 4);
56
56
  }
57
- if ((_c = tempRequest.data) === null || _c === void 0 ? void 0 : _c.user.password) {
57
+ if ((_d = (_c = tempRequest.data) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.password) {
58
58
  tempRequest.data.user.password = '***********';
59
59
  }
60
60
  return tempRequest;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.139.1",
7
+ "version": "3.139.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",