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.
Files changed (2) hide show
  1. package/dist/index.js +4 -9
  2. 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 s = JSON.parse(
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: s,
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?.map((p) => {
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.map((c) => {
200
+ return r.view.nodeLites.forEach((c) => {
206
201
  a(c, r.view.nodes[c.id]);
207
202
  }), r;
208
203
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.106",
4
+ "version": "0.8.107",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",