From 3c4d4b91d9484132035aa1fd9d2c335b68c7a525 Mon Sep 17 00:00:00 2001 From: dceejay Date: Tue, 31 Mar 2015 13:25:59 +0100 Subject: [PATCH] fixes for speeling mistooks in smooth and msgpack fixes. --- function/rbe/package.json | 2 +- function/smooth/17-smooth.js | 2 +- function/smooth/package.json | 2 +- parsers/msgpack/70-msgpack.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/function/rbe/package.json b/function/rbe/package.json index eef7d407..686542b7 100644 --- a/function/rbe/package.json +++ b/function/rbe/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-rbe", - "version" : "0.0.2", + "version" : "0.0.3", "description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.", "dependencies" : { }, diff --git a/function/smooth/17-smooth.js b/function/smooth/17-smooth.js index d26c1749..f17ce8f2 100644 --- a/function/smooth/17-smooth.js +++ b/function/smooth/17-smooth.js @@ -29,7 +29,7 @@ module.exports = function(RED) { var old = null; this.on('input', function (msg) { - if msg.hasOwnProperty("payload")) { + if (msg.hasOwnProperty("payload")) { var n = Number(msg.payload); if (!isNaN(n)) { if ((node.action === "low") || (node.action === "high")) { diff --git a/function/smooth/package.json b/function/smooth/package.json index e0adea7a..3bf68611 100644 --- a/function/smooth/package.json +++ b/function/smooth/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-smooth", - "version" : "0.0.2", + "version" : "0.0.3", "description" : "A Node-RED node that provides several simple smoothing algorithms for incoming data values.", "dependencies" : { }, diff --git a/parsers/msgpack/70-msgpack.js b/parsers/msgpack/70-msgpack.js index d8bbf13f..0512e02e 100644 --- a/parsers/msgpack/70-msgpack.js +++ b/parsers/msgpack/70-msgpack.js @@ -41,7 +41,7 @@ module.exports = function(RED) { node.send(msg); node.status({text:le +" o->b "+ msg.payload.length}); } - } else { node.warn("No payload found to process"); + } else { node.warn("No payload found to process"); } }); } RED.nodes.registerType("msgpack",MsgPackNode);