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.3.2 to 2.3.3

lib/helpers/isBrowser.js

2

lib/decorators/MJMLElement.js

@@ -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": {

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