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

@synatic/sql-to-mongo

Package Overview
Dependencies
Maintainers
11
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/sql-to-mongo - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

32

lib/make/makeQueryPart.js

@@ -163,2 +163,14 @@ const makeProjectionExpressionPartModule = require('./makeProjectionExpressionPart');

if (queryPart.type === 'function' && queryPart.name === 'NOT') {
return {
$nor: makeQueryPart(
queryPart.args,
ignorePrefix,
allowedTypes,
includeThis,
tableAlias
),
};
}
if (queryPart.type === 'function' || queryPart.type === 'select')

@@ -170,2 +182,3 @@ return makeProjectionExpressionPartModule.makeProjectionExpressionPart(

);
if (queryPart.type === 'expr_list') {

@@ -194,2 +207,21 @@ return queryPart.value.map((v) => makeQueryPart(v));

// NOT Expression
if (
queryPart.type === 'unary_expr' &&
queryPart.operator === 'NOT' &&
queryPart.expr
) {
const exprQuery = makeQueryPart(
queryPart.expr,
ignorePrefix,
allowedTypes,
includeThis,
tableAlias
);
return {
$nor: $check.array(exprQuery) ? exprQuery : [exprQuery],
};
}
// todo add not

@@ -196,0 +228,0 @@

2

package.json
{
"name": "@synatic/sql-to-mongo",
"version": "1.1.7",
"version": "1.1.8",
"description": "Convert SQL to mongo queries or aggregates",

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

Sorry, the diff of this file is too big to display

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