winston-middleware 4.0.0 → 4.0.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 +3 -0
- package/index.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
## 4.0.1
|
|
2
|
+
* Added `headerBlacklist` to BaseLoggerOptions for better typescript support ([#228](https://github.com/bithavoc/winston-middleware/pull/228))
|
|
3
|
+
|
|
1
4
|
## 4.0.0
|
|
2
5
|
* Changed `metaField` configuration property functionality (see Readme.md) ([#209](https://github.com/bithavoc/winston-middleware/issues/209)) - BREAKING CHANGE
|
|
3
6
|
* Moved type definitions to be embedded inside library ([#123](https://github.com/bithavoc/winston-middleware/issues/123))
|
package/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface BaseLoggerOptions {
|
|
|
44
44
|
requestWhitelist?: string[];
|
|
45
45
|
responseFilter?: ResponseFilter;
|
|
46
46
|
responseWhitelist?: string[];
|
|
47
|
+
headerBlacklist?: string[];
|
|
47
48
|
skip?: RouteFilter;
|
|
48
49
|
statusLevels?: {
|
|
49
50
|
error?: string;
|
|
@@ -75,6 +76,8 @@ export interface BaseErrorLoggerOptions {
|
|
|
75
76
|
msg?: MessageTemplate;
|
|
76
77
|
requestFilter?: RequestFilter;
|
|
77
78
|
requestWhitelist?: string[];
|
|
79
|
+
headerBlacklist?: string[];
|
|
80
|
+
blacklistedMetaFields?: string[];
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export interface ErrorLoggerOptionsWithTransports extends BaseErrorLoggerOptions {
|