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