@quintype/seo 1.50.2-aff-mkt-template.1 → 1.50.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.50.2](https://github.com/quintype/quintype-node-seo/compare/v1.50.0...v1.50.2) (2026-05-05)
6
+
5
7
  ### [1.50.1](https://github.com/quintype/quintype-node-seo/compare/v1.50.0...v1.50.1) (2026-03-18)
6
8
 
7
9
  ## [1.50.0](https://github.com/quintype/quintype-node-seo/compare/v1.47.0...v1.50.0) (2025-12-04)
package/dist/index.cjs.js CHANGED
@@ -1208,10 +1208,9 @@ function StructuredDataTags({ structuredData = {} }, config, pageType, response
1208
1208
  if (!titleEl && el.type === "title") titleEl = el;else if (!imageEl && el.type === "image") imageEl = el;else if (!ctaEl && el.type === "text" && el.subtype === "cta") ctaEl = el;else if (!textEl && el.type === "text" && el.subtype !== "cta") textEl = el;
1209
1209
  }
1210
1210
 
1211
- if (!titleEl) return acc;
1211
+ if (!titleEl && !imageEl && !ctaEl) return acc;
1212
1212
 
1213
- const name = getPlainText(titleEl.text || titleEl.title || "");
1214
- if (!name) return acc;
1213
+ const name = titleEl ? getPlainText(titleEl.text || titleEl.title || "") : "";
1215
1214
 
1216
1215
  const reviewBody = getPlainText(get__default["default"](textEl, ["text"], ""));
1217
1216
  const ctaUrl = get__default["default"](ctaEl, ["metadata", "cta-url"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/seo",
3
- "version": "1.50.2-aff-mkt-template.1",
3
+ "version": "1.50.2",
4
4
  "description": "SEO Modules for Quintype",
5
5
  "main": "dist/index.cjs.js",
6
6
  "repository": "https://github.com/quintype/quintype-node-seo",
@@ -724,10 +724,9 @@ export function StructuredDataTags({ structuredData = {} }, config, pageType, re
724
724
  else if (!textEl && el.type === "text" && el.subtype !== "cta") textEl = el;
725
725
  }
726
726
 
727
- if (!titleEl) return acc;
727
+ if (!titleEl && !imageEl && !ctaEl) return acc;
728
728
 
729
- const name = getPlainText(titleEl.text || titleEl.title || "");
730
- if (!name) return acc;
729
+ const name = titleEl ? getPlainText(titleEl.text || titleEl.title || "") : "";
731
730
 
732
731
  const reviewBody = getPlainText(get(textEl, ["text"], ""));
733
732
  const ctaUrl = get(ctaEl, ["metadata", "cta-url"]);