mjml-head-attributes
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2712
30
Updatedlodash@^4.17.2