@elyx-code/project-logic-tree 0.0.7061 → 0.0.7062

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 CHANGED
@@ -75911,7 +75911,7 @@ const kg = Object.values(CF), Xc = {
75911
75911
  previousVersion: null,
75912
75912
  deleted: !1,
75913
75913
  name: he.String,
75914
- value: "my-compute",
75914
+ value: "compute-instance",
75915
75915
  parent: tui,
75916
75916
  autogeneration: null,
75917
75917
  valueAsTypeList: null,
@@ -107641,15 +107641,15 @@ function ffi(s, u) {
107641
107641
  }
107642
107642
  const W = x.map(
107643
107643
  (X) => {
107644
- var Q;
107645
- return ((Q = X.properties.find(
107646
- (re) => re.implements.some(
107647
- (oe) => oe.id === j["built-in-base-entity"].BUILT_IN_COMPUTE_ENTITY.properties.computeName.id
107644
+ var Q, re;
107645
+ return ((re = (Q = X.properties.find(
107646
+ (oe) => oe.implements.some(
107647
+ (Y) => Y.id === j["built-in-base-entity"].BUILT_IN_COMPUTE_ENTITY.properties.computeName.id
107648
107648
  )
107649
- )) == null ? void 0 : Q.name) || "";
107649
+ )) == null ? void 0 : Q.defaultValue) == null ? void 0 : re.value) || "";
107650
107650
  }
107651
107651
  ), ee = $K(
107652
- M.name,
107652
+ U.value || "compute-instance",
107653
107653
  W
107654
107654
  );
107655
107655
  U.metaSync(
@@ -109271,20 +109271,21 @@ class Rfi extends ao {
109271
109271
  Ee.COMPUTE_ENTITY
109272
109272
  ) && m.id !== this.id
109273
109273
  ).forEach((m) => {
109274
+ var E;
109274
109275
  const v = m.properties.find(
109275
- (E) => E.implements.some(
109276
- (A) => A.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
109276
+ (A) => A.implements.some(
109277
+ (C) => C.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
109277
109278
  )
109278
109279
  );
109279
- if (v && (v == null ? void 0 : v.id) !== a.id && v.name === a.name) {
109280
- const E = new ci({
109280
+ if (v && (v == null ? void 0 : v.id) !== a.id && ((E = v.defaultValue) == null ? void 0 : E.value) === c) {
109281
+ const A = new ci({
109281
109282
  id: a.id + "--" + Ie.ComputeNameNotUnique,
109282
109283
  message: `Compute name "${c}" is duplicated.`,
109283
109284
  severity: be.Error,
109284
109285
  code: Ie.ComputeNameNotUnique,
109285
109286
  entity: a
109286
109287
  });
109287
- e.errors.push(E);
109288
+ e.errors.push(A);
109288
109289
  }
109289
109290
  }), e;
109290
109291
  });
@@ -193021,21 +193022,22 @@ function YCi(s) {
193021
193022
  return s.implements.some((a) => a.id === i) && s.project.entities.filter(
193022
193023
  (a) => $i(a, Ee.COMPUTE_ENTITY) && a.id !== s.parent.id
193023
193024
  ).forEach((a) => {
193025
+ var e, f, h;
193024
193026
  const c = a.properties.find(
193025
- (e) => e.implements.some(
193026
- (f) => f.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
193027
+ (m) => m.implements.some(
193028
+ (v) => v.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
193027
193029
  )
193028
193030
  );
193029
- if (c && (c == null ? void 0 : c.id) !== s.id && c.name === s.name) {
193030
- const e = Zt({
193031
+ if (c && (c == null ? void 0 : c.id) !== s.id && ((e = c.defaultValue) == null ? void 0 : e.value) === ((f = s.defaultValue) == null ? void 0 : f.value)) {
193032
+ const m = Zt({
193031
193033
  id: `${s.id}--${Ie.ComputeNameNotUnique}`,
193032
- message: `Compute name "${s.name}" is duplicated.`,
193034
+ message: `Compute name "${(h = c.defaultValue) == null ? void 0 : h.value}" is duplicated.`,
193033
193035
  severity: be.Error,
193034
193036
  code: Ie.ComputeNameNotUnique,
193035
193037
  entity: s,
193036
193038
  firstRelationship: c
193037
193039
  });
193038
- u.push(e.error);
193040
+ u.push(m.error);
193039
193041
  }
193040
193042
  }), u;
193041
193043
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.7061",
3
+ "version": "0.0.7062",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",