@carecard/validate 2.2.11 → 2.2.12

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.
@@ -16,6 +16,7 @@ const {
16
16
  isValidDomainName,
17
17
  isValidTimestampzString,
18
18
  isValidTimestampString,
19
+ isBoolValue,
19
20
  } = require('./validate');
20
21
 
21
22
  function validateProperties(obj = {}) {
@@ -156,6 +157,11 @@ function validateProperties(obj = {}) {
156
157
  returnObj[key] = value;
157
158
  }
158
159
  break;
160
+ case 'active':
161
+ if (isBoolValue(value)) {
162
+ returnObj[key] = value;
163
+ }
164
+ break;
159
165
  }
160
166
  }
161
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carecard/validate",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/CareCard-ca/pkg-validate.git"