@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 +5 -0
- package/build/axiosSingleton.js +2 -2
- package/package.json +1 -1
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
|
package/build/axiosSingleton.js
CHANGED
|
@@ -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