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

mjml-head-font

Package Overview
Dependencies
Maintainers
6
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 4.8.1 to 4.8.2

34

lib/index.js

@@ -10,2 +10,10 @@ "use strict";

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

@@ -15,11 +23,23 @@

class MjFont extends _mjmlCore.HeadComponent {
handler() {
const {
add
} = this.context;
add('fonts', this.getAttribute('name'), this.getAttribute('href'));
let MjFont = /*#__PURE__*/function (_HeadComponent) {
(0, _inherits2.default)(MjFont, _HeadComponent);
var _super = (0, _createSuper2.default)(MjFont);
function MjFont() {
(0, _classCallCheck2.default)(this, MjFont);
return _super.apply(this, arguments);
}
}
(0, _createClass2.default)(MjFont, [{
key: "handler",
value: function handler() {
const {
add
} = this.context;
add('fonts', this.getAttribute('name'), this.getAttribute('href'));
}
}]);
return MjFont;
}(_mjmlCore.HeadComponent);

@@ -26,0 +46,0 @@ exports.default = MjFont;

{
"name": "mjml-head-font",
"description": "mjml-head-font",
"version": "4.8.1",
"version": "4.8.2",
"main": "lib/index.js",

@@ -26,3 +26,3 @@ "files": [

"lodash": "^4.17.15",
"mjml-core": "4.8.1"
"mjml-core": "4.8.2"
},

@@ -33,3 +33,3 @@ "devDependencies": {

},
"gitHead": "45507ebde835129ba62671d341e76bc9892552c9"
"gitHead": "67cb33b5edd2b1d80436a72c213d2e815a685cd5"
}
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