speedly 2.0.42 → 2.0.43

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.
@@ -265,13 +265,7 @@ const usingMongoDb = (collectionName, config = { type: "external" }) => {
265
265
  const pageNumAgg = parseInt(typeof pageStrAgg === "string" ? pageStrAgg : "") || 1;
266
266
  const limitNumAgg = parseInt(typeof limitStrAgg === "string" ? limitStrAgg : "") || 20;
267
267
  realTimeQueries.push({ $skip: (pageNumAgg - 1) * limitNumAgg }, {
268
- $limit: parseInt(Array.isArray(req.query.limit)
269
- ? String(req.query.limit[0])
270
- : typeof req.query.limit === "string"
271
- ? req.query.limit
272
- : req.query.limit !== undefined
273
- ? String(req.query.limit)
274
- : ""),
268
+ $limit: limitNumAgg
275
269
  });
276
270
  }
277
271
  else if (req.query.limit && queryState.action == "aggregate") {
@@ -265,13 +265,7 @@ const usingMongoDb = (collectionName, config = { type: "external" }) => {
265
265
  const pageNumAgg = parseInt(typeof pageStrAgg === "string" ? pageStrAgg : "") || 1;
266
266
  const limitNumAgg = parseInt(typeof limitStrAgg === "string" ? limitStrAgg : "") || 20;
267
267
  realTimeQueries.push({ $skip: (pageNumAgg - 1) * limitNumAgg }, {
268
- $limit: parseInt(Array.isArray(req.query.limit)
269
- ? String(req.query.limit[0])
270
- : typeof req.query.limit === "string"
271
- ? req.query.limit
272
- : req.query.limit !== undefined
273
- ? String(req.query.limit)
274
- : ""),
268
+ $limit: limitNumAgg
275
269
  });
276
270
  }
277
271
  else if (req.query.limit && queryState.action == "aggregate") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedly",
3
- "version": "2.0.42",
3
+ "version": "2.0.43",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",