From a318dc56ffb5f992eda27237c4d9be6bc7e688d0 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 26 Sep 2019 13:39:25 +0100 Subject: [PATCH] better escape for node-red without done. --- social/email/61-email.js | 2 +- social/email/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/social/email/61-email.js b/social/email/61-email.js index 4aa19614..f6df3387 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -77,7 +77,7 @@ module.exports = function(RED) { this.on("input", function(msg, send, done) { if (msg.hasOwnProperty("payload")) { - send = send || node.send; + send = send || function() { node.send.apply(node,arguments) }; if (smtpTransport) { node.status({fill:"blue",shape:"dot",text:"email.status.sending"}); if (msg.to && node.name && (msg.to !== node.name)) { diff --git a/social/email/package.json b/social/email/package.json index dae57898..6067444c 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-email", - "version": "1.7.0", + "version": "1.7.1", "description": "Node-RED nodes to send and receive simple emails", "dependencies": { "imap": "^0.8.19",