@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.
@@ -48874,10 +48874,11 @@ System.register(["./apiPath"], function (_export, _context) {
48874
48874
  }],
48875
48875
  execute: function () {
48876
48876
  _export("imageUrl", imageUrl = (site, file, size) => {
48877
+ const name = encodeURIComponent(file.name);
48877
48878
  if (!size) {
48878
- return apiPath(`/api/site/asset/webp/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.webp`);
48879
+ return apiPath(`/api/site/asset/webp/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${name}.webp`);
48879
48880
  }
48880
- return apiPath(`/api/site/asset/webp(${size})/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.${size}.webp`);
48881
+ return apiPath(`/api/site/asset/webp(${size})/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${name}.${size}.webp`);
48881
48882
  });
48882
48883
  _export("srcSetUrl", srcSetUrl = (site, file) => {
48883
48884
  const small = imageUrl(site, file, 480) + " 640w";