@social-mail/social-mail-client 1.2.238 → 1.2.239

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.
@@ -45188,10 +45188,11 @@ System.register(["./apiPath"], function (_export, _context) {
45188
45188
  }],
45189
45189
  execute: function () {
45190
45190
  _export("imageUrl", imageUrl = (site, file, size) => {
45191
+ const name = encodeURIComponent(file.name);
45191
45192
  if (!size) {
45192
- return apiPath(`/api/site/asset/webp/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.webp`);
45193
+ return apiPath(`/api/site/asset/webp/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${name}.webp`);
45193
45194
  }
45194
- return apiPath(`/api/site/asset/webp(${size})/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.${size}.webp`);
45195
+ return apiPath(`/api/site/asset/webp(${size})/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${name}.${size}.webp`);
45195
45196
  });
45196
45197
  _export("srcSetUrl", srcSetUrl = (site, file) => {
45197
45198
  const small = imageUrl(site, file, 480) + " 640w";