mjml-head-font
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -7,5 +7,5 @@ "use strict"; | ||
var _lodash = require("lodash"); | ||
var _find = require("lodash/find"); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _find2 = _interopRequireDefault(_find); | ||
@@ -16,13 +16,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
name: "mj-font", | ||
handler: function handler(el, _ref) { | ||
handler: function handler(element, _ref) { | ||
var fonts = _ref.fonts; | ||
var font = _lodash2.default.find(fonts, ['name', el.attribs.name]); | ||
var font = (0, _find2.default)(fonts, ['name', element.attributes.name]); | ||
if (font) { | ||
font.url = el.attribs.href; | ||
font.url = element.attributes.href; | ||
} else { | ||
fonts.push({ name: el.attribs.name, url: el.attribs.href }); | ||
fonts.push({ name: element.attributes.name, url: element.attributes.href }); | ||
} | ||
} | ||
}; |
{ | ||
"name": "mjml-head-font", | ||
"description": "mjml-head-font", | ||
"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
1986
Updatedlodash@^4.17.2