hgs-twilio-class-lib 1.1.56 → 1.1.57

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.
@@ -97,12 +97,12 @@ class CxConfiguratorGPMAssetModel extends BaseModel_1.BaseModel {
97
97
  type: {
98
98
  validator: (value) => {
99
99
  const errors = [];
100
- const validFileTypes = [".mp3", ".wav", ".png", ".jpeg"];
100
+ const validFileTypes = ["mp3", "wav", "png", "jpeg", "jpg"];
101
101
  if (typeof value !== "string" || value.trim() === "") {
102
102
  errors.push("Type must be a non-empty string.");
103
103
  }
104
104
  else if (!validFileTypes.some(ext => value.toLowerCase().endsWith(ext))) {
105
- errors.push(`Type must be a valid file type (${validFileTypes.join(", ")}).`);
105
+ errors.push(`Type must be a valid file type (${validFileTypes.join(", ")})`);
106
106
  }
107
107
  return errors;
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hgs-twilio-class-lib",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "Flex 2.0 backend to connect with any database ",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./types/index.d.ts",