Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-node-mysql

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-node-mysql - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

9

68-mysql.js

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

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