Socket
Socket
Sign inDemoInstall

mjml-core

Package Overview
Dependencies
Maintainers
5
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 4.3.1 to 4.4.0-beta.1

2

lib/components.js

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

if (component.headStyle) {
component.context.addHeadSyle(name, component.headStyle);
component.context.addHeadStyle(name, component.headStyle);
}

@@ -34,0 +34,0 @@ if (component.componentHeadStyle) {

@@ -145,2 +145,4 @@ 'use strict';

minifyOptions = _options$minifyOption === undefined ? {} : _options$minifyOption,
_options$juicePreserv = options.juicePreserveTags,
juicePreserveTags = _options$juicePreserv === undefined ? null : _options$juicePreserv,
_options$skeleton = options.skeleton,

@@ -153,3 +155,5 @@ skeleton = _options$skeleton === undefined ? _skeleton2.default : _options$skeleton,

_options$mjmlConfigPa = options.mjmlConfigPath,
mjmlConfigPath = _options$mjmlConfigPa === undefined ? null : _options$mjmlConfigPa;
mjmlConfigPath = _options$mjmlConfigPa === undefined ? null : _options$mjmlConfigPa,
_options$noMigrateWar = options.noMigrateWarn,
noMigrateWarn = _options$noMigrateWar === undefined ? false : _options$noMigrateWar;

@@ -168,3 +172,3 @@ // if mjmlConfigPath is specified then we need to handle it on each call

mjml = (0, _mjmlMigrate.handleMjml3)(mjml);
mjml = (0, _mjmlMigrate.handleMjml3)(mjml, { noMigrateWarn: noMigrateWarn });

@@ -287,3 +291,3 @@ var globalDatas = {

},
addHeadSyle: function addHeadSyle(identifier, headStyle) {
addHeadStyle: function addHeadStyle(identifier, headStyle) {
globalDatas.headStyle[identifier] = headStyle;

@@ -342,2 +346,8 @@ },

if (globalDatas.inlineStyle.length > 0) {
if (juicePreserveTags) {
(0, _lodash.each)(juicePreserveTags, function (val, key) {
_juice2.default.codeBlocks[key] = val;
});
}
content = (0, _juice2.default)(content, {

@@ -344,0 +354,0 @@ applyStyleTags: false,

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

_this.matchers = [new RegExp('^(((\\d|,|.){1,}(' + units.map(_escapeRegExp2.default).join('|') + ')|0)( )?){' + args.join(',') + '}$')];
_this.matchers = [new RegExp('^(((\\d|,|\\.){1,}(' + units.map(_escapeRegExp2.default).join('|') + ')|0)( )?){' + args.join(',') + '}$')];
return _this;

@@ -54,0 +54,0 @@ }

{
"name": "mjml-core",
"description": "mjml-core",
"version": "4.3.1",
"version": "4.4.0-beta.1",
"main": "lib/index.js",

@@ -27,5 +27,5 @@ "repository": {

"lodash": "^4.17.2",
"mjml-migrate": "4.3.1",
"mjml-parser-xml": "4.3.1",
"mjml-validator": "4.3.0"
"mjml-migrate": "4.4.0-beta.1",
"mjml-parser-xml": "4.4.0-beta.1",
"mjml-validator": "4.4.0-beta.1"
},

@@ -32,0 +32,0 @@ "devDependencies": {

const chai = require('chai')
const shorthandParser = require('../lib/helpers/shorthandParser').default
const helper = require('../lib/helpers/shorthandParser')
const shorthandParser = helper && helper.default
const testValues = [

@@ -5,0 +7,0 @@ {

Sorry, the diff of this file is not supported yet

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