Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-cli

Package Overview
Dependencies
Maintainers
6
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-cli - npm Package Compare versions

Comparing version 4.10.1 to 4.10.2

7

lib/client.js

@@ -135,2 +135,6 @@ "use strict";

alias: 'V'
},
noStdoutFileComment: {
type: 'boolean',
describe: 'Add no file comment to stdout'
}

@@ -349,3 +353,4 @@ }).help().version(`mjml-core: ${_package.version}\nmjml-cli: ${_package2.version}`);

{
Promise.all(convertedStream.map(_outputToConsole.default)).then(() => process.exitCode = EXIT_CODE) // eslint-disable-line no-return-assign
const addFileHeaderComment = !argv.noStdoutFileComment;
Promise.all(convertedStream.map(converted => (0, _outputToConsole.default)(converted, addFileHeaderComment))).then(() => process.exitCode = EXIT_CODE) // eslint-disable-line no-return-assign
.catch(() => process.exitCode = 1); // eslint-disable-line no-return-assign

@@ -352,0 +357,0 @@

@@ -13,4 +13,11 @@ "use strict";

file
}) => new Promise(resolve => {
process.stdout.write(`<!-- FILE: ${file} -->\n${html}\n`, resolve);
}, addFileHeaderComment) => new Promise(resolve => {
let output = '';
if (addFileHeaderComment) {
output = `<!-- FILE: ${file} -->\n`;
}
output += `${html}\n`;
process.stdout.write(output, resolve);
});

@@ -17,0 +24,0 @@

14

package.json
{
"name": "mjml-cli",
"description": "MJML: the only framework that makes responsive-email easy",
"version": "4.10.1",
"version": "4.10.2",
"main": "bin/mjml",

@@ -33,7 +33,7 @@ "bin": {

"js-beautify": "^1.6.14",
"lodash": "^4.17.15",
"mjml-core": "4.10.1",
"mjml-migrate": "4.10.1",
"mjml-parser-xml": "4.10.1",
"mjml-validator": "4.10.1",
"lodash": "^4.17.21",
"mjml-core": "4.10.2",
"mjml-migrate": "4.10.2",
"mjml-parser-xml": "4.10.2",
"mjml-validator": "4.10.2",
"yargs": "^16.1.0"

@@ -45,3 +45,3 @@ },

},
"gitHead": "c560edfa3dc22e9be1b730aa6a48f4ea1338dee1"
"gitHead": "43b164b3f5095169ea301b5f68c7e5bdab6d4a5e"
}
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