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.8 to 1.1.9

13

lib/make/makeJoinForPipeline.js

@@ -34,3 +34,3 @@ const makeFilterConditionModule = require('./makeFilterCondition');

let toTable = join.table || '';
const toAs = join.as;
let toAs = join.as || '';

@@ -49,2 +49,13 @@ let joinHint = null;

if (toAs.toLowerCase().endsWith('|first')) {
joinHint = 'first';
toAs = toAs.substring(0, toAs.length - 6);
} else if (toAs.toLowerCase().endsWith('|last')) {
joinHint = 'last';
toAs = toAs.substring(0, toAs.length - 5);
} else if (toTable.toLowerCase().endsWith('|unwind')) {
joinHint = 'unwind';
toAs = toAs.substring(0, toAs.length - 7);
}
if (

@@ -51,0 +62,0 @@ join.table &&

2

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

@@ -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