@decocms/start 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cms/resolve.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/start",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "type": "module",
5
5
  "description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
6
6
  "main": "./src/index.ts",
@@ -627,7 +627,17 @@ async function resolveRawSection(
627
627
  section: unknown,
628
628
  rctx: ResolveContext,
629
629
  ): Promise<ResolvedSection[]> {
630
+ const sectionRt = (section as any)?.__resolveType;
631
+ if (String(sectionRt).includes("eader")) {
632
+ console.log(`[RAW-SECTION-ENTER] sectionRt="${sectionRt}"`);
633
+ }
634
+
630
635
  const resolved = await internalResolve(section, rctx);
636
+
637
+ if (String(sectionRt).includes("eader")) {
638
+ console.log(`[RAW-SECTION-RESOLVED] resolved type=${typeof resolved} isObj=${resolved && typeof resolved === 'object'} keys=${resolved && typeof resolved === 'object' ? Object.keys(resolved as any).join(',') : 'N/A'}`);
639
+ }
640
+
631
641
  if (!resolved || typeof resolved !== "object") return [];
632
642
 
633
643
  const items = Array.isArray(resolved) ? resolved : [resolved];