Socket
Socket
Sign inDemoInstall

mjml-core

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-core - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5-beta.1

10

lib/decorators/MJMLElement.js

@@ -133,2 +133,6 @@ 'use strict';

_this.getParentWidth = function () {
return _this.mjAttribute('parentWidth');
};
_this.renderWrappedOutlookChildren = function (children) {

@@ -269,3 +273,3 @@ children = _react2.default.Children.toArray(children);

return parentMjml.get('children').map(function (mjml, i) {
var childMjml = mjml.setIn(['attributes', 'parentWidth'], _this3.mjAttribute('rawPxWidth'));
var childMjml = mjml.setIn(['attributes', 'parentWidth'], _this3.getWidth());

@@ -299,3 +303,3 @@ var tag = childMjml.get('tagName');

// assign sibling count for element and children
if (parentMjml && this.mjName() === 'mj-column') {
if (parentMjml) {
siblingCount = parentMjml.get('children').size;

@@ -315,3 +319,3 @@ }

parentWidth: this.getWidth(),
parentWidth: this.getParentWidth(),
getPadding: this.paddingParser,

@@ -318,0 +322,0 @@ defaultUnit: _mjAttribute.defaultUnit

@@ -61,3 +61,3 @@ 'use strict';

var version = exports.version = function version() {
return '2.1.1';
return '2.1.5-beta.1';
};

@@ -64,0 +64,0 @@ var mjml2html = exports.mjml2html = function mjml2html(mjml) {

{
"name": "mjml-core",
"version": "2.1.4",
"version": "2.1.5-beta.1",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "description": "mjml-core",

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