hmpo-template-mixins
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -112,3 +112,6 @@ 'use strict'; | ||
_.each(lambdas, (lambda, name) => { | ||
res.locals[name] = typeof lambda === 'function' ? () => lambda : lambda; | ||
res.locals[name] = typeof lambda !== 'function' ? lambda : () => function (txt) { | ||
let ctx = Object.assign({}, res.locals, this); | ||
return lambda.call(ctx, txt); | ||
}; | ||
}); | ||
@@ -115,0 +118,0 @@ }; |
{ | ||
"name": "hmpo-template-mixins", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"description": "A middleware that exposes a series of Mustache mixins on res.locals to ease usage of forms, translations, and some general needs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160281
3403