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

mjml-head-font

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-head-font - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

12

lib/index.js

@@ -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"
}
}
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