x-runtime-lib 0.8.106 → 0.8.107
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 +4 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -175,16 +175,11 @@ function E(t, n) {
|
|
|
175
175
|
}
|
|
176
176
|
const $i = ["common", "scene"], Ci = ["common", "scene"];
|
|
177
177
|
function eu({ type: t, version: n, view: e, code: o }) {
|
|
178
|
-
const
|
|
179
|
-
JSON.stringify(e.nodeLites, (a, c) => {
|
|
180
|
-
if (["id", "children"].includes(a))
|
|
181
|
-
return c;
|
|
182
|
-
})
|
|
183
|
-
), r = {
|
|
178
|
+
const r = {
|
|
184
179
|
type: t,
|
|
185
180
|
version: n,
|
|
186
181
|
view: {
|
|
187
|
-
nodeLites:
|
|
182
|
+
nodeLites: [],
|
|
188
183
|
nodes: e.nodes
|
|
189
184
|
},
|
|
190
185
|
code: o
|
|
@@ -198,11 +193,11 @@ function tu(t) {
|
|
|
198
193
|
view: o,
|
|
199
194
|
code: s
|
|
200
195
|
}, a = (c, u) => {
|
|
201
|
-
c.key = u.basic.key, c.alias = u.basic.alias, c.refId = u.reference?.comp, c.children?.
|
|
196
|
+
c.key = u.basic.key, c.alias = u.basic.alias, c.refId = u.reference?.comp, c.children?.forEach((p) => {
|
|
202
197
|
a(p, r.view.nodes[p.id]);
|
|
203
198
|
});
|
|
204
199
|
};
|
|
205
|
-
return r.view.nodeLites.
|
|
200
|
+
return r.view.nodeLites.forEach((c) => {
|
|
206
201
|
a(c, r.view.nodes[c.id]);
|
|
207
202
|
}), r;
|
|
208
203
|
}
|