qumra-engine 2.0.142 → 2.0.143

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.
@@ -24,9 +24,12 @@ exports.default = new (class SeoExtension {
24
24
  const product = page.product || c.product || {};
25
25
  // أساسيات
26
26
  const siteName = (0, textOnly_1.textOnly)(store?.name || "Store", 70);
27
+ console.log("🚀 ~ run ~ seo.title:", seo.title);
27
28
  const titleRaw = seo.title || page.title || siteName;
29
+ console.log("🚀 ~ run ~ titleRaw:", titleRaw);
28
30
  const descRaw = seo.description || page.description || "";
29
31
  const pageTitle = (0, textOnly_1.textOnly)(titleRaw, 70);
32
+ console.log("🚀 ~ run ~ pageTitle:", pageTitle);
30
33
  const pageDesc = (0, textOnly_1.textOnly)(descRaw, 160);
31
34
  // روابط وصور
32
35
  const canonical = (0, safeUrl_1.safeUrl)(seo.canonical || page.canonical || page.url || "");
@@ -63,6 +66,8 @@ exports.default = new (class SeoExtension {
63
66
  // بناء الوسوم
64
67
  const parts = [];
65
68
  // Title + Canonical + Favicon + Description
69
+ parts.push(`<meta charset="utf-8">`);
70
+ parts.push(`<meta name="viewport" content="width=device-width, initial-scale=1">`);
66
71
  parts.push(`<title>${(0, escapeAttr_1.escapeAttr)(pageTitle)}</title>`);
67
72
  if (canonical)
68
73
  parts.push(`<link rel="canonical" href="${(0, escapeAttr_1.escapeAttr)(canonical)}">`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.142",
3
+ "version": "2.0.143",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {