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

mjml-hero

Package Overview
Dependencies
Maintainers
6
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-hero - npm Package Compare versions

Comparing version 4.6.3 to 4.7.0-beta.0

28

lib/index.js

@@ -18,6 +18,2 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf3 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));

@@ -27,11 +23,19 @@

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _filter2 = _interopRequireDefault(require("lodash/fp/filter"));
var _join2 = _interopRequireDefault(require("lodash/fp/join"));
var _identity2 = _interopRequireDefault(require("lodash/fp/identity"));
var _flow2 = _interopRequireDefault(require("lodash/fp/flow"));
var _mjmlCore = require("mjml-core");
var _fp = require("lodash/fp");
var _widthParser2 = _interopRequireDefault(require("mjml-core/lib/helpers/widthParser"));
var makeBackgroundString = (0, _fp.flow)((0, _fp.filter)(_fp.identity), (0, _fp.join)(' '));
var makeBackgroundString = (0, _flow2["default"])((0, _filter2["default"])(_identity2["default"]), (0, _join2["default"])(' '));

@@ -41,5 +45,5 @@ var MjHero = /*#__PURE__*/function (_BodyComponent) {

var _super = (0, _createSuper2["default"])(MjHero);
function MjHero() {
var _getPrototypeOf2;
var _this;

@@ -53,3 +57,3 @@

_this = (0, _possibleConstructorReturn2["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(MjHero)).call.apply(_getPrototypeOf2, [this].concat(args)));
_this = _super.call.apply(_super, [this].concat(args));
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getBackground", function () {

@@ -81,3 +85,3 @@ return makeBackgroundString([_this.getAttribute('background-color')].concat((0, _toConsumableArray2["default"])(_this.getAttribute('background-url') ? ["url(".concat(_this.getAttribute('background-url'), ")"), 'no-repeat', "".concat(_this.getAttribute('background-position'), " / cover")] : [])));

return (0, _objectSpread2["default"])({}, this.context, {
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, this.context), {}, {
containerWidth: currentContainerWidth

@@ -232,3 +236,3 @@ });

var height = parseInt(this.getAttribute('height'), 10) - this.getShorthandAttrValue('padding', 'top') - this.getShorthandAttrValue('padding', 'bottom');
return "\n <td\n ".concat(this.htmlAttributes((0, _objectSpread2["default"])({}, commonAttributes, {
return "\n <td\n ".concat(this.htmlAttributes((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, commonAttributes), {}, {
height: height

@@ -235,0 +239,0 @@ })), "\n >\n ").concat(this.renderContent(), "\n </td>\n ");

{
"name": "mjml-hero",
"description": "mjml-hero",
"version": "4.6.3",
"version": "4.7.0-beta.0",
"main": "lib/index.js",

@@ -22,3 +22,3 @@ "repository": {

"lodash": "^4.17.15",
"mjml-core": "4.6.3"
"mjml-core": "4.7.0-beta.0"
},

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

},
"gitHead": "967cd5d2988836d93d051678cecd5ac58e77c669"
"gitHead": "fd4e870da63a14672d9c00a4c2f698f7d5363c1e"
}
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