@elyx-code/project-logic-tree 0.0.6329 → 0.0.6330

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
@@ -85219,9 +85219,11 @@ function swt(u, d) {
85219
85219
  }
85220
85220
  }
85221
85221
  function _vt(u, d) {
85222
- const n = JSON.parse(
85223
- JSON.stringify(u)
85224
- ), a = [];
85222
+ const n = {
85223
+ ...JSON.parse(JSON.stringify(u))
85224
+ };
85225
+ n.calledByEntry ? typeof n.calledByEntry == "string" && (n.calledByEntry = [n.calledByEntry]) : n.calledByEntry = [], n.calledBySuccess ? typeof n.calledBySuccess == "string" && (n.calledBySuccess = [n.calledBySuccess]) : n.calledBySuccess = [], n.calledByError ? typeof n.calledByError == "string" && (n.calledByError = [n.calledByError]) : n.calledByError = [];
85226
+ const a = [];
85225
85227
  if (rr.includes(d.type))
85226
85228
  a.push(
85227
85229
  new Y({
@@ -254,7 +254,7 @@ ${typeof u=="string"?u:JSON.stringify(u,null,2)}
254
254
  ...All the properties you want to update
255
255
  }
256
256
  }
257
- }`;return vn(a)}default:return""}}function Q3(u,d){const n=JSON.parse(JSON.stringify(u)),a=[];if(Xt.includes(d.type))a.push(new Y({id:`${u.id}--${d.id}--${k.InvalidReference}`,code:k.InvalidReference,severity:S.Warning,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${d.id}".
257
+ }`;return vn(a)}default:return""}}function Q3(u,d){const n={...JSON.parse(JSON.stringify(u))};n.calledByEntry?typeof n.calledByEntry=="string"&&(n.calledByEntry=[n.calledByEntry]):n.calledByEntry=[],n.calledBySuccess?typeof n.calledBySuccess=="string"&&(n.calledBySuccess=[n.calledBySuccess]):n.calledBySuccess=[],n.calledByError?typeof n.calledByError=="string"&&(n.calledByError=[n.calledByError]):n.calledByError=[];const a=[];if(Xt.includes(d.type))a.push(new Y({id:`${u.id}--${d.id}--${k.InvalidReference}`,code:k.InvalidReference,severity:S.Warning,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${d.id}".
258
258
  Entry-point entities can only be referenced as 'calledByEntry'.
259
259
  ${Xc}
260
260
  We have moved the reference to 'calledByEntry' for you.`,issue:null})),n.calledByEntry.push(d.id),n.calledBySuccess=n.calledBySuccess.filter(l=>l!==d.id);else if(sr.includes(d.type)){const l=d.calledBy||[],p=l.length?`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6329",
3
+ "version": "0.0.6330",
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",