c2-mongoose 2.1.73 → 2.1.74

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.
@@ -15,9 +15,7 @@ declare abstract class SearchFlow {
15
15
  [key: string]: number;
16
16
  } | undefined;
17
17
  constructor(params: any);
18
- buildProjections(): {
19
- [key: string]: number;
20
- } | undefined;
18
+ buildProjections(): any;
21
19
  buildPopulate(): any;
22
20
  buildPopulateArray(): void;
23
21
  buildPath(target: string, nested?: string): any;
@@ -109,7 +109,7 @@ var SearchFlow = /** @class */ (function () {
109
109
  if (!Array.isArray(this.select)) {
110
110
  return undefined;
111
111
  }
112
- var projection = {};
112
+ var projection = undefined;
113
113
  for (var _i = 0, _a = this.select; _i < _a.length; _i++) {
114
114
  var field = _a[_i];
115
115
  if (!field.indexOf(".")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.73",
3
+ "version": "2.1.74",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@ abstract class SearchFlow {
36
36
  return undefined
37
37
  }
38
38
 
39
- let projection: { [key: string]: number } = {}
39
+ let projection: any = undefined
40
40
  for (var field of this.select) {
41
41
  if (!field.indexOf(".")) {
42
42
  projection[field] = 1