@capillarytech/creatives-library 7.17.149 → 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
|
@@ -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;
|
|
@@ -312,9 +308,8 @@ export const updateImagesInHtml = async (htmlContents) => {
|
|
|
312
308
|
}
|
|
313
309
|
root?.querySelectorAll("img")?.forEach((element) => {
|
|
314
310
|
const imageSrc = element.getAttribute("src");
|
|
315
|
-
const
|
|
316
|
-
const
|
|
317
|
-
const width = element.getAttribute("width") || parseFloat(computedStyle.width);
|
|
311
|
+
const height = element.getAttribute("height");
|
|
312
|
+
const width = element.getAttribute("width");
|
|
318
313
|
|
|
319
314
|
let emailOverrideQuality = null;
|
|
320
315
|
if (isEmailQualityOverridden) {
|