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

sy-node-mysql

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sy-node-mysql - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

package.json
{
"name": "sy-node-mysql",
"version": "2.0.3",
"version": "2.0.4",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=6.0"

@@ -79,5 +79,9 @@ 'use strict';

for (const key in opts.insert) {
const value = opts.insert[key];
if (value === undefined || value === null) {
continue;
}
sql_arr.push('`' + key + '`');
values_arr.push('?');
params_arr.push(opts.insert[key]);
params_arr.push(value);
}

@@ -91,4 +95,8 @@ sql_t = `(${sql_arr.join(',')}) values (${values_arr.join(',')}) `;

for (const key in opts.onUpdate) {
const value = opts.onUpdate[key];
if (value === undefined || value === null) {
continue;
}
sql_arr.push('`' + key + '`= ?');
params_arr.push(opts.onUpdate[key]);
params_arr.push(value);
}

@@ -95,0 +103,0 @@ sql_t = sql_arr.join(',');

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