mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Email node - report when on old node.js
This commit is contained in:
@@ -17,6 +17,10 @@ module.exports = function(RED) {
|
||||
var MailParser = require("mailparser").MailParser;
|
||||
var util = require("util");
|
||||
|
||||
if (parseInt(process.version.split("v")[1].split(".")[0]) < 8) {
|
||||
throw "Error : Requires nodejs version >= 8.";
|
||||
}
|
||||
|
||||
try {
|
||||
var globalkeys = RED.settings.email || require(process.env.NODE_RED_HOME+"/../emailkeys.js");
|
||||
}
|
||||
|
Reference in New Issue
Block a user