node-red-m2x
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -57,6 +57,2 @@ module.exports = function (RED) { | ||
//_this.apiVer = n.apiVer; | ||
if (!_this.feedNode) | ||
{ | ||
_this.error("missing m2x feed configuration"); | ||
} | ||
_this.on("input", function (msg) { | ||
@@ -69,5 +65,6 @@ // Override Configured API Key with the one on the request, | ||
// FindM2X Key on coniguration/messge | ||
if (!msg || !msg.m2x_key || !msg.req.headers || (api_key = msg.m2x_key) === null) { | ||
if (!msg || !msg.m2x_key || (api_key = msg.m2x_key) === null) { | ||
if (typeof (_this.feedNode) === 'undefined') { | ||
return _this.handle_msg_failure(msg, 409, "failure - missing M2X feed configuration and no mwx_key in msg"); | ||
_this.error("missing m2x feed configuration"); | ||
return _this.handle_msg_failure(msg, 409, "failure - missing M2X feed configuration and no m2x_key in msg"); | ||
} | ||
@@ -74,0 +71,0 @@ log.info("Using configured X-M2X-KEY [" + _this.feedNode.apiKey + "]"); |
{ | ||
"name": "node-red-m2x", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "A Node-RED node to AT&T M2X", | ||
"dependencies": { | ||
"m2x": "2.1.4", | ||
"m2x": "2.1.9", | ||
"log-driver": "1.2.5", | ||
@@ -8,0 +8,0 @@ "async": "0.9.0" |
119065
16
993