From 9a45cce3b7a9ae6d85848fb937a0b9828267e9c1 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 25 Oct 2015 21:35:14 +0000 Subject: [PATCH 1/3] Fix lint error in twitter node --- social/twitter/27-twitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social/twitter/27-twitter.js b/social/twitter/27-twitter.js index 5afb48b5..10db4a03 100644 --- a/social/twitter/27-twitter.js +++ b/social/twitter/27-twitter.js @@ -314,7 +314,7 @@ module.exports = function(RED) { } else { if (typeof msg.params === 'undefined') { msg.params = {}; } -+ twit.updateStatus(msg.payload, msg.params, function (err, data) { + twit.updateStatus(msg.payload, msg.params, function (err, data) { if (err) { node.status({fill:"red",shape:"ring",text:"twitter.status.failed"}); node.error(err,msg); From be1e89bf313120ea20d5b8e3250265fddb059eda Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 28 Oct 2015 22:46:29 +0000 Subject: [PATCH 2/3] fix dweetio node object checker. --- social/dweetio/55-dweetio.js | 2 +- social/dweetio/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/social/dweetio/55-dweetio.js b/social/dweetio/55-dweetio.js index dae53d46..5d83e75c 100644 --- a/social/dweetio/55-dweetio.js +++ b/social/dweetio/55-dweetio.js @@ -26,7 +26,7 @@ module.exports = function(RED) { var node = this; var isObject = function(a) { - return (!!a) && (a.constructor === Object); + return (!!a) && (a.constructor == Object); }; this.on("input",function(msg) { diff --git a/social/dweetio/package.json b/social/dweetio/package.json index fa39f14d..f5a2a55f 100644 --- a/social/dweetio/package.json +++ b/social/dweetio/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-dweetio", - "version" : "0.0.7", + "version" : "0.0.9", "description" : "A Node-RED node to send and receive simple dweets", "dependencies" : { "node-dweetio" : "0.0.11" From 35aed787ae88c33c0a79fec4d73dd8ba90a438e9 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 28 Oct 2015 23:57:09 +0000 Subject: [PATCH 3/3] simplify tweet node object check for humans --- social/dweetio/55-dweetio.js | 3 ++- social/dweetio/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/social/dweetio/55-dweetio.js b/social/dweetio/55-dweetio.js index 5d83e75c..6376097e 100644 --- a/social/dweetio/55-dweetio.js +++ b/social/dweetio/55-dweetio.js @@ -26,7 +26,8 @@ module.exports = function(RED) { var node = this; var isObject = function(a) { - return (!!a) && (a.constructor == Object); + if ((typeof(a) === "object") && (!Buffer.isBuffer(a)) && (!Array.isArray(a))) { return true; } + else { return false; } }; this.on("input",function(msg) { diff --git a/social/dweetio/package.json b/social/dweetio/package.json index f5a2a55f..9f0dabe4 100644 --- a/social/dweetio/package.json +++ b/social/dweetio/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-dweetio", - "version" : "0.0.9", + "version" : "0.0.10", "description" : "A Node-RED node to send and receive simple dweets", "dependencies" : { "node-dweetio" : "0.0.11"