qumra-engine 2.0.56 → 2.0.57

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.
@@ -14,7 +14,17 @@ function validateUiData(data) {
14
14
  for (const [key, value] of Object.entries(item)) {
15
15
  if (value === true)
16
16
  continue; // استبعاد مثل __keywords: true
17
- result[key] = value;
17
+ // دعم الأنواع المسموح بها
18
+ if (typeof value === "string" ||
19
+ typeof value === "number" ||
20
+ typeof value === "boolean" ||
21
+ Array.isArray(value) ||
22
+ (typeof value === "object" && value !== null)) {
23
+ result[key] = value;
24
+ }
25
+ else {
26
+ throw new Error(`❌ نوع قيمة غير مدعوم في المفتاح "${key}": ${JSON.stringify(value)}`);
27
+ }
18
28
  }
19
29
  }
20
30
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.56",
3
+ "version": "2.0.57",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {