mod-build 4.0.106-beta.3 → 4.0.106-beta.4

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": "mod-build",
3
- "version": "4.0.106-beta.3",
3
+ "version": "4.0.106-beta.4",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -103,8 +103,8 @@ async function downloadImage(url) {
103
103
  return null;
104
104
  }
105
105
  // download the image and put in imagePath
106
+ const fileUrl = `https://${defaultSettings.nodeEnv}/quote/resources/assets/${url}`
106
107
  try {
107
- const fileUrl = `https://${defaultSettings.nodeEnv}/quote/resources/assets/${url}`
108
108
  const response = await fetch(fileUrl);
109
109
  if (!response.ok) {
110
110
  throw new Error(`Error downloading image ${fileUrl}: ${response.statusText}`);