Rename RED.utils to RED.util. Fixes #364.

This commit is contained in:
Mark Hindess
2014-09-03 13:18:26 +01:00
parent 8e78df09da
commit 0a009e2a15
6 changed files with 11 additions and 11 deletions

View File

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

View File

@@ -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

View File

@@ -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) {