1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Email node - report when on old node.js

This commit is contained in:
Dave Conway-Jones 2018-09-04 18:51:20 +01:00
parent 649f9f2fbf
commit a2b9097613
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
3 changed files with 8 additions and 4 deletions

View File

@ -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");
}

View File

@ -1,7 +1,7 @@
node-red-node-email
===================
<a href="http://nodered.org" target="_new">Node-RED</a> nodes to send and receive simple emails.
<a href="http://nodered.org" target="info">Node-RED</a> nodes to send and receive simple emails.
Pre-requisite
@ -9,7 +9,7 @@ Pre-requisite
You will need valid email credentials for your email server.
**Note :** Version 1.x of this node requires **Node.js v6** or newer.
**Note :** Version 1.x of this node requires **Node.js v8** or newer.
Install

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-email",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node-RED nodes to send and receive simple emails",
"dependencies": {
"imap": "^0.8.19",
@ -30,6 +30,6 @@
"url": "http://nodered.org"
},
"engines": {
"node": ">=6.0.0"
"node": ">=8.0.0"
}
}