@vtex/api 6.45.11 → 6.45.12
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 +7 -0
- package/lib/utils/log.js +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.45.12] - 2022-04-14
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Update sensitive fields list.
|
|
14
|
+
- Remove "error" field.
|
|
15
|
+
- Add missing fields.
|
|
16
|
+
|
|
10
17
|
## [6.45.11] - 2022-04-08
|
|
11
18
|
|
|
12
19
|
### Fixed
|
package/lib/utils/log.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const json_1 = require("./json");
|
|
4
|
-
const SENSITIVE_FIELDS = [
|
|
4
|
+
const SENSITIVE_FIELDS = [
|
|
5
|
+
'auth',
|
|
6
|
+
'authorization',
|
|
7
|
+
'authtoken',
|
|
8
|
+
'cookie',
|
|
9
|
+
'proxy-authorization',
|
|
10
|
+
'rawheaders',
|
|
11
|
+
'token',
|
|
12
|
+
'vtexidclientautcookie',
|
|
13
|
+
'x-vtex-api-appkey',
|
|
14
|
+
'x-vtex-api-apptoken',
|
|
15
|
+
'x-vtex-credential',
|
|
16
|
+
'x-vtex-session',
|
|
17
|
+
];
|
|
5
18
|
exports.cleanLog = (log) => {
|
|
6
19
|
return json_1.cleanJson(log, SENSITIVE_FIELDS);
|
|
7
20
|
};
|