Showing 2 of 2 total issues
Function register
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.register = (server, options, next) => {
// Validate options and apply defaults
const settings = Hoek.applyToDefaults(internals.defaults, options);
settings.cookieOptions.encoding = 'none';
Function decorate
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const decorate = (err) => {
if (req.yarnemia._store._lazyKeys) {
req.yarnemia._isLazy = true; // Default to lazy mode if previously set
req.yarnemia._store._lazyKeys.forEach((key) => {
req.yarnemia[key] = req.yarnemia._store[key];