Socket
Socket
Sign inDemoInstall

mysql-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 1.0.9

20

lib/select.js

@@ -23,6 +23,3 @@ const Base = require('./base');

_join(tableNameOrQuery, tableAlias, onCondition, joinType, ...values) {
values.map(value => {
onCondition = onCondition.replace(/\?/, this.escape(value));
});
_join(tableNameOrQuery, tableAlias, onCondition, joinType) {
if (tableNameOrQuery instanceof Select) {

@@ -37,11 +34,20 @@ this.joinSql.push(` ${ joinType } JOIN (${ tableNameOrQuery.toString(false) }) AS ${ tableAlias } ON ${ onCondition }`);

leftJoin(tableNameOrQuery, tableAlias, onCondition, ...values) {
return this._join(tableNameOrQuery, tableAlias, onCondition, 'LEFT', values);
values.map(value => {
onCondition = onCondition.replace(/\?/, this.escape(value));
});
return this._join(tableNameOrQuery, tableAlias, onCondition, 'LEFT');
}
rightJoin(tableNameOrQuery, tableAlias, onCondition, ...values) {
return this._join(tableNameOrQuery, tableAlias, onCondition, 'RIGHT', values);
values.map(value => {
onCondition = onCondition.replace(/\?/, this.escape(value));
});
return this._join(tableNameOrQuery, tableAlias, onCondition, 'RIGHT');
}
innerJoin(tableNameOrQuery, tableAlias, onCondition, ...values) {
return this._join(tableNameOrQuery, tableAlias, onCondition, 'INNER', values);
values.map(value => {
onCondition = onCondition.replace(/\?/, this.escape(value));
});
return this._join(tableNameOrQuery, tableAlias, onCondition, 'INNER');
}

@@ -48,0 +54,0 @@

{
"name": "mysql-generator",
"version": "1.0.8",
"version": "1.0.9",
"description": "mysql generator",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc