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

mql2

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mql2 - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

9

mql.js

@@ -293,6 +293,6 @@ import {

me.left_key = me.left_key || 'id';
me.where_key = '_#_xtable_#_.' + (me.left_xkey || singular(left.table) + '_id');
me.where_key = 'xx_table.' + (me.left_xkey || singular(left.table) + '_id');
var xtable = me.xtable || (left.table + '_' + me.table);
me.xjoin = SQL `INNER JOIN ${TB(xtable)} AS ${TB('_#_xtable_#_')} on ${EQ({
['_#_xtable_#_.' + (me.xkey || singular(me.table) + '_id')]: COLUMN(me.as + '.' + (me.key || 'id'))
me.xjoin = SQL `INNER JOIN ${TB(xtable)} AS ${TB('xx_table')} on ${EQ({
['xx_table.' + (me.xkey || singular(me.table) + '_id')]: COLUMN(me.as + '.' + (me.key || 'id'))
})}`;

@@ -322,3 +322,4 @@ }

const colums = uniq(add_column(me).originals.concat(me.as +'.'+me.where_key + (me.rel_type == 'x' ? ` AS ${fold_key}` : '')));
const colums = uniq(add_column(me).originals.concat(
me.rel_type != 'x' ? me.as + '.' + me.where_key : me.where_key + ' AS ' + fold_key));

@@ -325,0 +326,0 @@ const in_vals = filter(a => a != null, pluck(me.left_key, lefts));

{
"name": "mql2",
"version": "0.1.10",
"version": "0.1.11",
"description": "query builder",

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

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