New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hmpo-template-mixins

Package Overview
Dependencies
Maintainers
3
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 6.1.2 to 6.2.0

12

lib/mixins/date.js

@@ -138,7 +138,9 @@ 'use strict';

if (invalidElement) {
let error = { type: 'date-' + invalidElement, errorGroup: fieldName };
errors[fieldName] =
new this.Error(fieldName, error, req);
errors[fieldName + '-' + invalidElement] =
new this.Error(fieldName + '-' + invalidElement, error, req);
errors[fieldName] = errors[fieldName + '-' + invalidElement] = new this.Error(
fieldName + '-' + invalidElement,
{
type: 'date-' + invalidElement,
errorGroup: fieldName
},
req);
}

@@ -145,0 +147,0 @@ }

{
"name": "hmpo-template-mixins",
"version": "6.1.2",
"version": "6.2.0",
"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",

@@ -418,3 +418,3 @@ 'use strict';

errors['date1'].should.eql(new instance.Error(
'date1',
'date1-day',
{ type: 'date-day', errorGroup: 'date1' },

@@ -434,3 +434,3 @@ req));

errors['date1'].should.eql(new instance.Error(
'date1',
'date1-day',
{ type: 'date-day', errorGroup: 'date1' },

@@ -450,3 +450,3 @@ req));

errors['date1'].should.eql(new instance.Error(
'date1',
'date1-month',
{ type: 'date-month', errorGroup: 'date1' },

@@ -453,0 +453,0 @@ req));

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