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.2.0 to 3.3.0-beta.1

11

lib/index.js

@@ -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": {

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