hmpo-template-mixins
Advanced tools
Comparing version 4.4.0-rev1 to 4.4.0-rev2
@@ -85,6 +85,2 @@ 'use strict'; | ||
var t = function (key) { | ||
return translate(sharedTranslationsKey + key); | ||
}; | ||
var hoganRender = function (text, ctx) { | ||
@@ -96,2 +92,6 @@ if (!text) { return ''; } | ||
var t = function (key) { | ||
return hoganRender(translate(sharedTranslationsKey + key), this); | ||
}; | ||
// Like t() but returns null on failed translations | ||
@@ -98,0 +98,0 @@ var conditionalTranslate = function (key) { |
{ | ||
"name": "hmpo-template-mixins", | ||
"version": "4.4.0-rev1", | ||
"version": "4.4.0-rev2", | ||
"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", |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
101401
1970
0