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

mjml-head-attributes

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-head-attributes - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

8

lib/index.js

@@ -23,2 +23,4 @@ 'use strict';

var _mjmlCore = require('mjml-core');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -28,11 +30,11 @@

name: "mj-attributes",
handler: function handler($, _ref) {
handler: function handler(element, _ref) {
var defaultAttributes = _ref.defaultAttributes;
var cssClasses = _ref.cssClasses;
(0, _each2.default)((0, _compact2.default)((0, _filter2.default)($.children, function (child) {
(0, _each2.default)((0, _compact2.default)((0, _filter2.default)(element.children, function (child) {
return child.tagName;
})), function (elem) {
var tagName = elem.tagName.toLowerCase();
var attributes = elem.attribs;
var attributes = _mjmlCore.helpers.dom.getAttributes(elem);

@@ -39,0 +41,0 @@ if (tagName === 'mj-class') {

{
"name": "mjml-head-attributes",
"description": "mjml-head-attributes",
"version": "3.0.1",
"version": "3.1.0",
"main": "lib/index.js",

@@ -16,4 +16,4 @@ "repository": {

"dependencies": {
"lodash": "^4.16.4"
"lodash": "^4.17.2"
}
}
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