node-red-node-mysql
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -126,3 +126,4 @@ | ||
node.on("input", function(msg) { | ||
node.on("input", function(msg, send, done) { | ||
send = send || function() { node.send.apply(node,arguments) }; | ||
if (node.mydbConfig.connected) { | ||
@@ -161,6 +162,7 @@ if (typeof msg.topic === 'string') { | ||
else { msg.payload = rows; } | ||
node.send(msg); | ||
send(msg); | ||
status = {fill:"green",shape:"dot",text:"OK"}; | ||
node.status(status); | ||
} | ||
done(); | ||
// if (node.mydbConfig.pool._freeConnections.indexOf(node.mydbConfig.connection) === -1) { | ||
@@ -172,3 +174,3 @@ // node.mydbConfig.connection.release(); | ||
else { | ||
if (typeof msg.topic !== 'string') { node.error("msg.topic : the query is not defined as a string"); } | ||
if (typeof msg.topic !== 'string') { node.error("msg.topic : the query is not defined as a string"); done(); } | ||
} | ||
@@ -179,2 +181,3 @@ } | ||
status = {fill:"red",shape:"ring",text:"not yet connected"}; | ||
done(); | ||
} | ||
@@ -181,0 +184,0 @@ if (!busy) { |
{ | ||
"name": "node-red-node-mysql", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A Node-RED node to read and write to a MySQL database", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
184
0
15304
6