@fayz-ai/core 0.94.0 → 0.98.0

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
@@ -810,9 +810,15 @@ function buildSeoTags(config) {
810
810
  if (config.canonical) meta.push({ property: "og:url", content: config.canonical });
811
811
  if (config.image) {
812
812
  meta.push({ property: "og:image", content: config.image });
813
+ if (config.imageType) meta.push({ property: "og:image:type", content: config.imageType });
814
+ if (config.imageWidth) meta.push({ property: "og:image:width", content: String(config.imageWidth) });
815
+ if (config.imageHeight) meta.push({ property: "og:image:height", content: String(config.imageHeight) });
816
+ if (config.imageAlt) meta.push({ property: "og:image:alt", content: config.imageAlt });
813
817
  meta.push({ name: "twitter:image", content: config.image });
818
+ if (config.imageAlt) meta.push({ name: "twitter:image:alt", content: config.imageAlt });
814
819
  }
815
820
  if (config.siteName) meta.push({ property: "og:site_name", content: config.siteName });
821
+ if (config.locale) meta.push({ property: "og:locale", content: config.locale });
816
822
  return {
817
823
  title: config.title,
818
824
  meta: meta.filter((m) => m.content !== ""),