mjml-core
Advanced tools
Comparing version 4.3.1 to 4.4.0-beta.1
@@ -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
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
158729
2632
1
+ Addedmjml-migrate@4.4.0-beta.1(transitive)
+ Addedmjml-parser-xml@4.4.0-beta.1(transitive)
+ Addedmjml-validator@4.4.0-beta.1(transitive)
- Removedmjml-migrate@4.3.1(transitive)
- Removedmjml-parser-xml@4.3.1(transitive)
- Removedmjml-validator@4.3.0(transitive)
Updatedmjml-migrate@4.4.0-beta.1
Updatedmjml-parser-xml@4.4.0-beta.1
Updatedmjml-validator@4.4.0-beta.1