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.
Files changed (2) hide show
  1. package/index.js +5 -2
  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
- var metaData = getMetaData(ERR_OPTIONS_META_ALL_DESCRIPTION, options.metaField);
463
- makeSignature()(metaData.replace("session", options.msg));
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))
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "middleware",
17
17
  "colors"
18
18
  ],
19
- "version": "4.3.5",
19
+ "version": "4.3.6",
20
20
  "repository": {
21
21
  "type": "git",
22
22
  "url": "https://github.com/bithavoc/winston-middleware.git"