c2-mongoose 2.1.276 → 2.1.277

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.
@@ -219,7 +219,7 @@ var SearcherFlow = /** @class */ (function () {
219
219
  Object.entries(objectSearch).forEach(function (_a) {
220
220
  var _b, _c, _d;
221
221
  var key = _a[0], value = _a[1];
222
- if ((0, Utils_1.isNotEmpty)(value)) {
222
+ if ((0, Utils_1.isNotEmpty)(value) || value === null) {
223
223
  var condition = {};
224
224
  if ([
225
225
  'filters',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.276",
3
+ "version": "2.1.277",
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",
@@ -181,7 +181,7 @@ class SearcherFlow<D> {
181
181
 
182
182
  let filters = { $and: [] } as any
183
183
  Object.entries(objectSearch).forEach(([key, value]) => {
184
- if (isNotEmpty(value)) {
184
+ if (isNotEmpty(value) || value === null) {
185
185
  let condition = {} as any
186
186
  if ([
187
187
  'filters',