@servlyadmin/runtime-core 0.1.10 → 0.1.11
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.cjs +8 -0
- package/dist/index.js +8 -0
- package/package.json +5 -2
package/dist/index.cjs
CHANGED
|
@@ -20693,6 +20693,11 @@ function sleep(ms) {
|
|
|
20693
20693
|
}
|
|
20694
20694
|
function buildViewsMap(views, bundle) {
|
|
20695
20695
|
const viewsMap = /* @__PURE__ */ new Map();
|
|
20696
|
+
console.log("[Servly] buildViewsMap called with:", {
|
|
20697
|
+
viewsCount: views?.length || 0,
|
|
20698
|
+
viewIds: views?.map((v) => v.id) || [],
|
|
20699
|
+
bundleKeys: bundle ? Object.keys(bundle) : []
|
|
20700
|
+
});
|
|
20696
20701
|
if (views && views.length > 0) {
|
|
20697
20702
|
for (const view of views) {
|
|
20698
20703
|
if (view && view.id) {
|
|
@@ -20701,6 +20706,7 @@ function buildViewsMap(views, bundle) {
|
|
|
20701
20706
|
layout: view.layout,
|
|
20702
20707
|
props: view.props
|
|
20703
20708
|
});
|
|
20709
|
+
console.log("[Servly] Added view from views array:", view.id);
|
|
20704
20710
|
}
|
|
20705
20711
|
}
|
|
20706
20712
|
}
|
|
@@ -20714,9 +20720,11 @@ function buildViewsMap(views, bundle) {
|
|
|
20714
20720
|
layout: component.layout,
|
|
20715
20721
|
props: void 0
|
|
20716
20722
|
});
|
|
20723
|
+
console.log("[Servly] Added view from bundle:", viewId, "from key:", key);
|
|
20717
20724
|
}
|
|
20718
20725
|
}
|
|
20719
20726
|
}
|
|
20727
|
+
console.log("[Servly] Final viewsMap keys:", Array.from(viewsMap.keys()));
|
|
20720
20728
|
return viewsMap.size > 0 ? viewsMap : void 0;
|
|
20721
20729
|
}
|
|
20722
20730
|
async function resolveVersionFromApi(id, specifier, apiKey) {
|
package/dist/index.js
CHANGED
|
@@ -3896,6 +3896,11 @@ function sleep(ms) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
function buildViewsMap(views, bundle) {
|
|
3898
3898
|
const viewsMap = /* @__PURE__ */ new Map();
|
|
3899
|
+
console.log("[Servly] buildViewsMap called with:", {
|
|
3900
|
+
viewsCount: views?.length || 0,
|
|
3901
|
+
viewIds: views?.map((v) => v.id) || [],
|
|
3902
|
+
bundleKeys: bundle ? Object.keys(bundle) : []
|
|
3903
|
+
});
|
|
3899
3904
|
if (views && views.length > 0) {
|
|
3900
3905
|
for (const view of views) {
|
|
3901
3906
|
if (view && view.id) {
|
|
@@ -3904,6 +3909,7 @@ function buildViewsMap(views, bundle) {
|
|
|
3904
3909
|
layout: view.layout,
|
|
3905
3910
|
props: view.props
|
|
3906
3911
|
});
|
|
3912
|
+
console.log("[Servly] Added view from views array:", view.id);
|
|
3907
3913
|
}
|
|
3908
3914
|
}
|
|
3909
3915
|
}
|
|
@@ -3917,9 +3923,11 @@ function buildViewsMap(views, bundle) {
|
|
|
3917
3923
|
layout: component.layout,
|
|
3918
3924
|
props: void 0
|
|
3919
3925
|
});
|
|
3926
|
+
console.log("[Servly] Added view from bundle:", viewId, "from key:", key);
|
|
3920
3927
|
}
|
|
3921
3928
|
}
|
|
3922
3929
|
}
|
|
3930
|
+
console.log("[Servly] Final viewsMap keys:", Array.from(viewsMap.keys()));
|
|
3923
3931
|
return viewsMap.size > 0 ? viewsMap : void 0;
|
|
3924
3932
|
}
|
|
3925
3933
|
async function resolveVersionFromApi(id, specifier, apiKey) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servlyadmin/runtime-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Framework-agnostic core renderer for Servly components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
10
12
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.mjs"
|
|
12
15
|
}
|
|
13
16
|
},
|
|
14
17
|
"files": [
|