node-red-node-mysql
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -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 @@ } |
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
12068
152
Updatedmysql@^2.17.1