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

hmpo-templates

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hmpo-templates - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

.travis.yml

2

package.json
{
"name": "hmpo-templates",
"version": "2.5.0",
"version": "2.6.0",
"description": "Page layouts and partials for Node.js with ExpressJS frontend applications",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,9 +40,23 @@ 'use strict';

html.should.match(/eventCategory: "\/path"/);
html.should.match(/eventAction: "KEY1"/);
html.should.match(/eventLabel: "TYPE1"/);
html.should.match(/eventAction: "KEY2"/);
html.should.match(/eventLabel: "TYPE2"/);
html.should.match(/eventCategory: 'form validation'/);
html.should.match(/eventAction: 'failed'/);
html.should.match(/eventLabel: "KEY1: TYPE1"/);
html.should.match(/eventLabel: "KEY2: TYPE2"/);
});
it('should fire custom ga events for each error', () => {
let html = compiled.render({
'ga-id': 'abc',
'ga-page': '/path',
errorlist: [
{ key: 'KEY1', type: 'TYPE1', category: 'CAT1', action: 'ACTION1', label: 'LABEL1', value: 12 }
]
});
html.should.match(/eventCategory: "CAT1"/);
html.should.match(/eventAction: "ACTION1"/);
html.should.match(/eventLabel: "LABEL1"/);
html.should.match(/eventValue: "12"/);
});
it('should fire ga events for each event', () => {

@@ -49,0 +63,0 @@ let html = compiled.render({

Sorry, the diff of this file is not supported yet

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