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

sqb

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqb - npm Package Compare versions

Comparing version 3.7.8 to 3.8.0

lib/sqlobject/operators/OpExists.js

7

lib/sqb_ns.js

@@ -33,2 +33,3 @@ /* SQB

const OpNotILike = require('./sqlobject/operators/OpNotILike');
const OpExists = require('./sqlobject/operators/OpExists');

@@ -90,2 +91,5 @@ const JoinType = types.JoinType;

return new OpNotILike(...args);
},
exists: function(...args) {
return new OpExists(...args);
}

@@ -112,3 +116,4 @@ };

'!ilike': Op.notILike,
'!is': Op.not
'!is': Op.not,
'exists': Op.exists
});

@@ -115,0 +120,0 @@

19

lib/sqlobject/operators/LogicalOperator.js

@@ -95,9 +95,14 @@ /* SQB

}
const m = n.match(/^([\w\\.$]+) *(.*)$/);
if (!m)
throw new ArgumentError('"%s" is not a valid definition', n);
op = Op[m[2] || 'eq'];
if (!op)
throw new ArgumentError('Unknown operator "%s"', m[2]);
result.push(op(m[1], obj[n]));
if (n === 'exists') {
op = Op.exists;
result.push(Op.exists(obj[n]));
} else {
const m = n.match(/^([\w\\.$]+) *(.*)$/);
if (!m)
throw new ArgumentError('"%s" is not a valid definition', n);
op = Op[m[2] || 'eq'];
if (!op)
throw new ArgumentError('Unknown operator "%s"', m[2]);
result.push(op(m[1], obj[n]));
}
}

@@ -104,0 +109,0 @@ return result;

{
"name": "sqb",
"description": "Extensible, multi-dialect SQL query builder and Database connection framework for JavaScript",
"version": "3.7.8",
"version": "3.8.0",
"author": "Panates Ltd.",

@@ -27,3 +27,3 @@ "contributors": [

"doublylinked": "^2.0.1",
"errorex": "^2.3.1",
"errorex": "^2.3.2",
"lightning-pool": "^2.0.10",

@@ -33,3 +33,3 @@ "putil-flattentext": "^2.0.0",

"putil-merge": "^3.2.0",
"putil-promisify": "^1.3.0",
"putil-promisify": "^1.4.0",
"putil-taskqueue": "^2.1.2",

@@ -36,0 +36,0 @@ "putil-waterfall": "^2.1.1"

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