mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Rename RED.utils to RED.util. Fixes #364.
This commit is contained in:
@@ -160,7 +160,7 @@ module.exports = function(RED) {
|
||||
delete msg._session;
|
||||
payload = JSON.stringify(msg);
|
||||
} else {
|
||||
payload = RED.utils.ensureString(msg.payload);
|
||||
payload = RED.util.ensureString(msg.payload);
|
||||
}
|
||||
if (msg._session && msg._session.type == "websocket") {
|
||||
node.serverConfig.send(msg._session.id,payload);
|
||||
|
@@ -73,7 +73,7 @@ module.exports = function(RED) {
|
||||
if (msg != null) {
|
||||
if (smtpTransport) {
|
||||
node.status({fill:"blue",shape:"dot",text:"sending"});
|
||||
var payload = RED.utils.ensureString(msg.payload);
|
||||
var payload = RED.util.ensureString(msg.payload);
|
||||
|
||||
smtpTransport.sendMail({
|
||||
from: node.userid, // sender address
|
||||
|
@@ -83,7 +83,7 @@ module.exports = function(RED) {
|
||||
var k = this.key || msg.topic;
|
||||
if (k) {
|
||||
if (this.structtype == "string") {
|
||||
this.client.set(k,RED.utils.ensureString(msg.payload));
|
||||
this.client.set(k,RED.util.ensureString(msg.payload));
|
||||
} else if (this.structtype == "hash") {
|
||||
var r = hashFieldRE.exec(msg.payload);
|
||||
if (r) {
|
||||
|
Reference in New Issue
Block a user