mjml-head-font
Advanced tools
Comparing version 3.2.0 to 3.3.0-beta.1
@@ -15,13 +15,14 @@ "use strict"; | ||
name: "mj-font", | ||
handler: function handler(element, _ref) { | ||
var fonts = _ref.fonts; | ||
endingTag: true, | ||
handler: function handler(_ref, globalAttributes) { | ||
var attributes = _ref.attributes; | ||
var font = (0, _find2.default)(fonts, ['name', element.attributes.name]); | ||
var font = (0, _find2.default)(globalAttributes.fonts, ['name', attributes.name]); | ||
if (font) { | ||
font.url = element.attributes.href; | ||
font.url = attributes.href; | ||
} else { | ||
fonts.push({ name: element.attributes.name, url: element.attributes.href }); | ||
globalAttributes.fonts.push({ name: attributes.name, url: attributes.href }); | ||
} | ||
} | ||
}; |
{ | ||
"name": "mjml-head-font", | ||
"description": "mjml-head-font", | ||
"version": "3.2.0", | ||
"version": "3.3.0-beta.1", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
2033
19
1