@autofleet/shtinker 1.1.6-beta.21 → 1.1.6-beta.23

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.
@@ -22,7 +22,7 @@ const getAuditContext = () => {
22
22
  return auditContext;
23
23
  };
24
24
  const isEmpty = (field) => {
25
- if (field === null) {
25
+ if ([null, undefined].includes(field)) {
26
26
  return true;
27
27
  }
28
28
  if (Array.isArray(field)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "1.1.6-beta.21",
3
+ "version": "1.1.6-beta.23",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@ const getAuditContext = () => {
13
13
  };
14
14
 
15
15
  const isEmpty = (field) => {
16
- if (field === null) {
16
+ if ([null, undefined].includes(field)) {
17
17
  return true;
18
18
  }
19
19
  if (Array.isArray(field)) {