New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-m2x

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-m2x - npm Package Compare versions

Comparing version 0.0.28 to 0.0.29

9

m2x.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc