From cae4c12618ec9bb341165f5a49294af47e3d9451 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Tue, 9 Jul 2024 10:56:21 -0400 Subject: [PATCH] MJML v5.0 Alpha compatibility --- bin/mjml.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mjml.mjs b/bin/mjml.mjs index 4646a0e..cfa0e70 100644 --- a/bin/mjml.mjs +++ b/bin/mjml.mjs @@ -8,7 +8,7 @@ const options = args[1]; let result = '' try { - result = mjml2html(mjml, options); + result = await mjml2html(mjml, options); } catch (exception) { const errorString = JSON.stringify({mjmlError: exception.toString()});