Comparing version 4.10.1 to 4.10.2
@@ -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 @@ |
{ | ||
"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" | ||
} |
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
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
28179
588
+ Addedmjml-core@4.10.2(transitive)
+ Addedmjml-migrate@4.10.2(transitive)
+ Addedmjml-parser-xml@4.10.2(transitive)
+ Addedmjml-validator@4.10.2(transitive)
- Removedmjml-core@4.10.1(transitive)
- Removedmjml-migrate@4.10.1(transitive)
- Removedmjml-parser-xml@4.10.1(transitive)
- Removedmjml-validator@4.10.1(transitive)
Updatedlodash@^4.17.21
Updatedmjml-core@4.10.2
Updatedmjml-migrate@4.10.2
Updatedmjml-parser-xml@4.10.2
Updatedmjml-validator@4.10.2