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