Socket
Socket
Sign inDemoInstall

ag-grid-mongo-query-builder

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 0.4.3

2

package.json
{
"name": "ag-grid-mongo-query-builder",
"version": "0.4.2",
"version": "0.4.3",
"description": "Utility to generate Mongo DB aggregation pipeline queries starting from AgGrid server side params",

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

@@ -6,3 +6,5 @@ //const mongoose = require('mongoose');

const groupKeyDateFormats = ["YYYY-MM-DD[T]HH:mm:ss.SSS[Z]", "YYYY-MM-DD"];
const excelCharLimit = 32750;
const buildQuery = function (reqBody) {

@@ -1068,3 +1070,3 @@ let {

if (key.dataType === 'groupColumn') {
tempDataObj[key.label] = groupKeys.join(" -> ");
tempDataObj[key.label] = removeLineBreaks(groupKeys.join(" -> "));
}

@@ -1195,4 +1197,7 @@ }

if(stringValue && stringValue!='') {
return stringValue.replace(/[^\x20-\x7E]/gmi, "");
} else return stringValue;
const csvData = stringValue.replace(/[^\x20-\x7E]/gmi, "");
if(csvData && csvData.length > excelCharLimit) {
return csvData.slice(0,excelCharLimit);
} else return csvData
} else return `"${stringValue}"`;
}

@@ -1199,0 +1204,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc