vona-core 5.1.14 → 5.1.16

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/dist/index.js CHANGED
@@ -2079,7 +2079,9 @@ const contextBase = {
2079
2079
  const self = cast(this);
2080
2080
  if (self.path.endsWith('.json')) return true;
2081
2081
  if (self.response.type && self.response.type.includes('json')) return true;
2082
- if (self.request.headers['content-type']?.includes('application/json') && self.accepts('json') === 'json') return true;
2082
+ if (self.request.headers['content-type']?.includes('application/json') && self.accepts('json') === 'json') {
2083
+ return true;
2084
+ }
2083
2085
  if (self.accepts('html', 'text', 'json') === 'json') return true;
2084
2086
  return false;
2085
2087
  },
@@ -2679,7 +2681,9 @@ const formatLoggerFilter = Winston.format((info, opts) => {
2679
2681
  if (Winston.config.npm.levels[info.level] === Winston.config.npm.levels[level]) return __formatLoggerFilterCheckInfo(info);
2680
2682
  return false;
2681
2683
  }
2682
- if (Winston.config.npm.levels[info.level] <= Winston.config.npm.levels[level] || opts.silly && info.level === 'silly') return __formatLoggerFilterCheckInfo(info);
2684
+ if (Winston.config.npm.levels[info.level] <= Winston.config.npm.levels[level] || opts.silly && info.level === 'silly') {
2685
+ return __formatLoggerFilterCheckInfo(info);
2686
+ }
2683
2687
  return false;
2684
2688
  });
2685
2689
  const formatLoggerConsole = clientInfo => {