@capillarytech/creatives-library 7.17.148 → 7.17.150

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.148",
4
+ "version": "7.17.150",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -126,12 +126,8 @@ const getClusterSpecificS3CdnConfigFromUrl = (url) => {
126
126
  const {cdn_host, bucket_path} = cdnConfigs;
127
127
  const s3UrlRegex = new RegExp(`^https://${clusterS3Url}/${bucket_path}/\.*`);
128
128
  const cdnUrlRegex = new RegExp(`^https://${cdn_host}/\.*${bucket_path}/\.*`);
129
-
130
- if(s3UrlRegex.test(url)) {
131
- CREATIVES_S3_BUCKET_PATH = bucket_path;
132
- CREATIVES_CDN_BASE_URL = `https://${cdn_host}`;
133
- return true;
134
- } else if(cdnUrlRegex.test(url)) {
129
+
130
+ if (s3UrlRegex.test(url) || cdnUrlRegex.test(url)) {
135
131
  CREATIVES_S3_BUCKET_PATH = bucket_path;
136
132
  CREATIVES_CDN_BASE_URL = `https://${cdn_host}`;
137
133
  return true;