New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@synatic/noql

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/noql - npm Package Compare versions

Comparing version

to
2.1.14

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

) {
const varName = val.substring(1).replace(/[.-]/g, '_');
const varName = lowerCaseFist(
val.substring(1).replace(/[.-]/g, '_')
);
inputVars[varName] = `$${val.substring(1)}`;

@@ -324,1 +327,10 @@ replacePaths.push({path: path, newVal: `$$${varName}`});

}
/**
*
* @param {string} val
* @returns {string}
*/
function lowerCaseFist(val) {
return `${val.charAt(0).toLowerCase()}${val.substring(1)}`;
}

@@ -304,3 +304,6 @@ const makeProjectionExpressionPartModule = require('./makeProjectionExpressionPart');

}
if (queryPart.type === 'timestamp') {
return new Date(columnNameOrValue);
}
return columnNameOrValue;
}
{
"name": "@synatic/noql",
"version": "2.1.13",
"version": "2.1.14",
"description": "Convert SQL statements to mongo queries or aggregates",

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