@social-mail/social-mail-web-server 1.7.673 → 1.7.674

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.673",
3
+ "version": "1.7.674",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -5,7 +5,7 @@ export default async function seedUI(config: DBConfig) {
5
5
  await config.saveVersion(UIPackageConfig, {
6
6
  package: "@social-mail/social-mail-client",
7
7
  view: "dist/web/AppIndex",
8
- version: "1.8.175"
8
+ version: "1.8.176"
9
9
  });
10
10
 
11
11
  await config.saveVersion(WebComponentsPackageConfig, {
@@ -129,8 +129,10 @@ export default class WebContentTranspileService
129
129
 
130
130
  if(/pdf\-link/i.test(node.nodeName)) {
131
131
  const src = await this.rewriteLink(node, "src", siteFolder, currentPath);
132
- const previewSrc = src.replace("/snapshot/", "/snapshot-preview/");
133
- node.setAttribute("src", previewSrc);
132
+ const previewSrc = src.replace("/snapshot/", "/snapshot-preview/").replace(`https://${globalEnv.cdn}`, "/");
133
+ const url = new URL(previewSrc, "https://" + globalEnv.host);
134
+ url.searchParams.append("snapshotUrl", src);
135
+ node.setAttribute("src", url.toString());
134
136
  const poster = node.getAttribute("poster");
135
137
  if (!poster) {
136
138
  node.setAttribute("poster", WebUrl.transform(src, "webp", "preview.webp", 700));