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.2.0 to 4.2.1

2

lib/createComponent.js

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

// eslint-disable-next-line no-console
console.log('No matching component for tag : ' + children.tagName);
console.error('No matching component for tag : ' + children.tagName);
return null;

@@ -330,0 +330,0 @@ }

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

if (e.code !== 'ENOENT') {
console.log('Error reading mjmlconfig : ', e); // eslint-disable-line no-console
console.error('Error reading mjmlconfig : ', e); // eslint-disable-line no-console
}

@@ -58,3 +58,3 @@ return { mjmlConfig: { packages: [] }, mjmlConfigPath: mjmlConfigPath, componentRootPath: componentRootPath, error: e };

if (e.code !== 'MODULE_NOT_FOUND') {
console.log('Error resolving custom component path : ', e); // eslint-disable-line no-console
console.error('Error resolving custom component path : ', e); // eslint-disable-line no-console
return null;

@@ -117,5 +117,5 @@ }

if (e.code === 'ENOENT' || e.code === 'MODULE_NOT_FOUND') {
console.log('Missing or unreadable custom component : ', resolvedPath); // eslint-disable-line no-console
console.error('Missing or unreadable custom component : ', resolvedPath); // eslint-disable-line no-console
} else {
console.log('Error when registering custom component : ', resolvedPath, e); // eslint-disable-line no-console
console.error('Error when registering custom component : ', resolvedPath, e); // eslint-disable-line no-console
}

@@ -122,0 +122,0 @@ }

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

minify = _options$minify === undefined ? false : _options$minify,
_options$minifyOption = options.minifyOptions,
minifyOptions = _options$minifyOption === undefined ? {} : _options$minifyOption,
_options$skeleton = options.skeleton,

@@ -353,7 +355,7 @@ skeleton = _options$skeleton === undefined ? _skeleton2.default : _options$skeleton,

if (minify && minify !== 'false') {
content = (0, _htmlMinifier.minify)(content, {
content = (0, _htmlMinifier.minify)(content, (0, _extends3.default)({
collapseWhitespace: true,
minifyCSS: false,
removeEmptyAttributes: true
});
}, minifyOptions));
}

@@ -360,0 +362,0 @@

{
"name": "mjml-core",
"description": "mjml-core",
"version": "4.2.0",
"version": "4.2.1",
"main": "lib/index.js",

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

"lodash": "^4.17.2",
"mjml-migrate": "^4.2.0",
"mjml-parser-xml": "^4.2.0",
"mjml-validator": "^4.2.0"
"mjml-migrate": "^4.2.1",
"mjml-parser-xml": "^4.2.1",
"mjml-validator": "^4.2.1"
},

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

@@ -17,2 +17,2 @@ ## mjml-core

console.log(mjml2html(`code`))
```
```

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