mjml-core
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -100,3 +100,3 @@ 'use strict'; | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(MJMLElement).call(this, props)); | ||
var _this = _possibleConstructorReturn(this, (MJMLElement.__proto__ || Object.getPrototypeOf(MJMLElement)).call(this, props)); | ||
@@ -103,0 +103,0 @@ _this.mjAttribute = function (name) { |
@@ -24,3 +24,3 @@ 'use strict'; | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(MJMLError).call(this, '[MJMLError] ' + name + ': ' + message)); | ||
var _this = _possibleConstructorReturn(this, (MJMLError.__proto__ || Object.getPrototypeOf(MJMLError)).call(this, '[MJMLError] ' + name + ': ' + message)); | ||
@@ -27,0 +27,0 @@ _this.status = code; |
@@ -10,3 +10,3 @@ 'use strict'; | ||
Object.keys(_mjAttribute).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -23,3 +23,3 @@ enumerable: true, | ||
Object.keys(_html).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -26,0 +26,0 @@ enumerable: true, |
@@ -9,5 +9,9 @@ 'use strict'; | ||
var widthParser = exports.widthParser = function widthParser(width) { | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? { parseFloatToInt: true } : arguments[1]; | ||
var widthUnit = unitRegex.exec(width.toString())[1]; | ||
var unitParsers = { default: parseInt, px: parseInt, '%': opts.parseFloatToInt ? parseInt : parseFloat }; | ||
var widthParser = unitParsers[widthUnit] || unitParsers['default']; | ||
return { unit: widthUnit || 'px', width: parseInt(width) }; | ||
return { unit: widthUnit || 'px', width: widthParser(width) }; | ||
}; | ||
@@ -14,0 +18,0 @@ |
@@ -49,3 +49,3 @@ 'use strict'; | ||
var version = exports.version = function version() { | ||
return '2.3.1'; | ||
return '2.3.3'; | ||
}; | ||
@@ -52,0 +52,0 @@ var mjml2html = exports.mjml2html = function mjml2html(mjml) { |
@@ -12,2 +12,4 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -28,3 +30,3 @@ | ||
endingTag && endingTags.push(tagName); | ||
endingTag && !(0, _lodash.includes)(endingTags, tagName) && endingTags.push(tagName); | ||
postRender && postRenders.push(postRender); | ||
@@ -31,0 +33,0 @@ |
{ | ||
"name": "mjml-core", | ||
"description": "mjml-core", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
44173
23
959
4