mjml-core
Advanced tools
Comparing version 2.1.4 to 2.1.5-beta.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41831
902
1