c2-mongoose 2.1.187 → 2.1.188

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.
@@ -14,7 +14,7 @@ var isEmpty = function (obj) {
14
14
  if (obj === null) {
15
15
  return true;
16
16
  }
17
- if (!obj) {
17
+ if (!obj && obj !== false) {
18
18
  return true;
19
19
  }
20
20
  if (Array.isArray(obj)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.187",
3
+ "version": "2.1.188",
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",
@@ -14,7 +14,7 @@ export const isEmpty = (obj: any) => {
14
14
  if (obj === null) {
15
15
  return true
16
16
  }
17
- if (!obj) {
17
+ if (!obj && obj !== false) {
18
18
  return true
19
19
  }
20
20