@contentstorage/core 0.3.47 → 0.3.48

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.
@@ -128,8 +128,8 @@ export function getImage(contentKey) {
128
128
  current.contentstorage_type === 'image' &&
129
129
  typeof current.url === 'string') {
130
130
  const currentData = current;
131
+ const key = `https://di0fmnnsdfsl2.cloudfront.net/${currentData.url}`;
131
132
  if (window.parent && window.parent !== window) {
132
- const key = currentData.url;
133
133
  const existingEntry = window.memoryMap.get(key);
134
134
  const idSet = existingEntry ? existingEntry.ids : new Set();
135
135
  idSet.add(contentKey); // Add the current ID to the set.
@@ -143,7 +143,7 @@ export function getImage(contentKey) {
143
143
  contentKey,
144
144
  data: {
145
145
  ...currentData,
146
- url: `https://di0fmnnsdfsl2.cloudfront.net/${currentData.url}`,
146
+ url: key,
147
147
  },
148
148
  };
149
149
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@contentstorage/core",
3
3
  "author": "Kaido Hussar <kaidohus@gmail.com>",
4
4
  "homepage": "https://contentstorage.app",
5
- "version": "0.3.47",
5
+ "version": "0.3.48",
6
6
  "type": "module",
7
7
  "description": "Fetch content from contentstorage and generate TypeScript types",
8
8
  "module": "dist/index.js",