vanta-api 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanta-api",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Advanced API features and security configuration for Node.js/MongoDB.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -258,6 +258,10 @@ export class ApiFeatures {
258
258
  const resultObj = {};
259
259
  const resualt = Object.entries(filters).map((el) => {
260
260
  const [keyObj, val] = el;
261
+ if (val === "null") {
262
+ resultObj[keyObj] = null;
263
+ return;
264
+ }
261
265
  if (
262
266
  typeof val === "object" &&
263
267
  (this.#isStrictObjectId(val["$eq"]) ||
@@ -281,6 +285,7 @@ export class ApiFeatures {
281
285
  resultObj[keyObj] = false;
282
286
  return;
283
287
  }
288
+
284
289
  if (typeof val === "string" && /^[0-9]+$/.test(val)) {
285
290
  resultObj[keyObj] = parseInt(val, 10);
286
291
  return;