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.0.18 to 0.0.19

6

68-mysql.js

@@ -124,3 +124,2 @@

if (typeof msg.topic === 'string') {
//console.log("query:",msg.topic);
var bind = Array.isArray(msg.payload) ? msg.payload : [];

@@ -133,3 +132,6 @@ node.mydbConfig.connection.query(msg.topic, bind, function(err, rows) {

else {
msg.payload = rows;
if (rows.constructor.name === "OkPacket") {
msg.payload = JSON.parse(JSON.stringify(rows));
}
else { msg.payload = rows; }
node.send(msg);

@@ -136,0 +138,0 @@ status = {fill:"green",shape:"dot",text:"OK"};

{
"name" : "node-red-node-mysql",
"version" : "0.0.18",
"description" : "A Node-RED node to read and write to a MySQL database",
"dependencies" : {
"mysql" : "^2.16.0"
"name": "node-red-node-mysql",
"version": "0.0.19",
"description": "A Node-RED node to read and write to a MySQL database",
"dependencies": {
"mysql": "^2.17.1"
},
"repository" : {
"type":"git",
"url":"https://github.com/node-red/node-red-nodes/tree/master/storage/mysql"
"repository": {
"type": "git",
"url": "https://github.com/node-red/node-red-nodes/tree/master/storage/mysql"
},
"license": "Apache-2.0",
"keywords": [ "node-red", "mysql" ],
"node-red" : {
"nodes" : {
"keywords": [
"node-red",
"mysql"
],
"node-red": {
"nodes": {
"mysql": "68-mysql.js"

@@ -17,0 +20,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