@carecard/validate 3.8.0 → 3.9.0

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.
@@ -270,6 +270,7 @@ function validateProperties(obj = {}) {
270
270
  case 'scopeData':
271
271
  case 'meta_data':
272
272
  case 'metaData':
273
+ case 'metadata':
273
274
  if (isValidJsonString(JSON.stringify(value))) {
274
275
  returnObj[key] = value;
275
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carecard/validate",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/CareCard-ca/pkg-validate.git"
@@ -38,7 +38,7 @@
38
38
  "typescript": "6.0.3"
39
39
  },
40
40
  "dependencies": {
41
- "@carecard/common-util": "3.8.0"
41
+ "@carecard/common-util": "3.9.0"
42
42
  },
43
43
  "nyc": {
44
44
  "all": true,
package/readme.md CHANGED
@@ -119,7 +119,7 @@ where the package supports both.
119
119
  | `isCcIdString` | `cc_id`, `ccId` |
120
120
  | `isValidIntegerString` | `offset_number`, `offsetNumber`, `number_of_orders`, `numberOfOrders`, `price`, `from`, `number`, `limit`, `offset` |
121
121
  | `isValidJsonString` on the raw value | `about` |
122
- | `isValidJsonString(JSON.stringify(value))` | `weight`, `dimensions`, `permission`, `scope_data`, `scopeData`, `meta_data`, `metaData` |
122
+ | `isValidJsonString(JSON.stringify(value))` | `weight`, `dimensions`, `permission`, `scope_data`, `scopeData`, `meta_data`, `metaData`, `metadata` |
123
123
  | `isTextString` | `document_description`, `documentDescription`, `nick_name`, `nickName`, `requested_by_name`, `requestedByName`, `requested_by_email`, `requestedByEmail`, `requested_by_phone`, `requestedByPhone`, `approved_by_name`, `approvedByName`, `approved_by_email`, `approvedByEmail`, `approved_by_phone`, `approvedByPhone` |
124
124
  | `isValidArrayOfStrings` | `aliases` |
125
125
  | `isImageUrl` or `isValidUrl` | `image_url`, `imageUrl`, `website`, `file_url`, `fileUrl` |