arky-sdk 0.3.69 → 0.3.70

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/dist/index.cjs CHANGED
@@ -687,7 +687,7 @@ var getBlockFromArray = (entry, blockKey, locale = "en") => {
687
687
  };
688
688
  var getImageUrl = (imageBlock, isBlock = true) => {
689
689
  if (!imageBlock) return null;
690
- if (imageBlock.type === "RELATIONSHIP" && Array.isArray(imageBlock.value)) {
690
+ if (imageBlock.type === "RELATIONSHIP_MEDIA" && Array.isArray(imageBlock.value)) {
691
691
  const mediaValue = imageBlock.value[0];
692
692
  if (mediaValue && mediaValue.mimeType) {
693
693
  if (mediaValue.resolutions && mediaValue.resolutions.original && mediaValue.resolutions.original.url) {