c2-mongoose 2.1.144 → 2.1.145

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.
@@ -98,7 +98,7 @@ var SearchFlow = /** @class */ (function () {
98
98
  }
99
99
  var populates = [];
100
100
  var _loop_1 = function () {
101
- if (property.include(".")) {
101
+ if (property.includes(".")) {
102
102
  return "continue";
103
103
  }
104
104
  var _b = property.split('.'), first = _b[0], rest = _b.slice(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.144",
3
+ "version": "2.1.145",
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",
@@ -74,7 +74,7 @@ abstract class SearchFlow {
74
74
 
75
75
  var populates = [] as any
76
76
  for (var property of this.populate) {
77
- if (property.include(".")) {
77
+ if (property.includes(".")) {
78
78
  continue
79
79
  }
80
80
  let [first, ...rest] = property.split('.')