vanta-api 1.1.2 → 1.1.3

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.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Advanced API features and security configuration for Node.js/MongoDB.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -139,9 +139,7 @@ export class ApiFeatures {
139
139
  throw new HandleERROR('Too many pipeline stages', 400);
140
140
  }
141
141
 
142
- const agg = this.model.aggregate(this.pipeline)
143
- .maxTimeMS(options.maxTimeMS || 10000);
144
-
142
+ let agg = this.model.aggregate(pipeline).option({ maxTimeMS: 10000 });
145
143
  const [cnt] = await this.model.aggregate([...this.countPipeline, { $count: 'total' }]);
146
144
  const cursorOrData = this.useCursor
147
145
  ? agg.cursor({ batchSize: 100 }).exec()