Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hmpo-template-mixins

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hmpo-template-mixins - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

15

lib/template-mixins.js

@@ -116,8 +116,17 @@ 'use strict';

function optionGroup(key) {
var legendClassName = fields[key] && fields[key].legend;
if (legendClassName) { legendClassName = classNameString(legendClassName.className); }
var legend = fields[key] && fields[key].legend;
var legendClassName;
var legendValue = 'fields.' + key + '.legend';
if (legend) {
if (legend.className) {
legendClassName = classNameString(legend.className);
}
if (typeof legend.value !== 'undefined') {
legendValue = legend.value;
}
}
return {
'key': key,
'error': this.errors && this.errors[key],
'legend': fields[key] && fields[key].legend && fields[key].legend.value || t('fields.' + key + '.legend'),
'legend': t(legendValue),
'legendClassName': legendClassName,

@@ -124,0 +133,0 @@ hint: conditionaltranslate('fields.' + key + '.hint'),

2

package.json
{
"name": "hmpo-template-mixins",
"version": "3.1.0",
"version": "3.1.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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc