@elyx-code/project-logic-tree 0.0.6225 → 0.0.6226
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 +107 -79
- package/dist/index.umd.cjs +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31471,18 +31471,20 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
31471
31471
|
)) {
|
|
31472
31472
|
const l = this.getCounterparts();
|
|
31473
31473
|
l.length && l.forEach((u) => {
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31485
|
-
|
|
31474
|
+
if (!(t != null && t.hasRemoved(u.id))) {
|
|
31475
|
+
const {
|
|
31476
|
+
updated: h,
|
|
31477
|
+
removed: c,
|
|
31478
|
+
added: T,
|
|
31479
|
+
affected: I
|
|
31480
|
+
} = u.remove(
|
|
31481
|
+
{
|
|
31482
|
+
ignoreUpstream: e
|
|
31483
|
+
},
|
|
31484
|
+
t
|
|
31485
|
+
);
|
|
31486
|
+
r.push(...h), s.push(...c), d.push(...T), o.push(...I);
|
|
31487
|
+
}
|
|
31486
31488
|
});
|
|
31487
31489
|
}
|
|
31488
31490
|
return !e && this.parent && this.parent.removeOutputDeclaration(this, t), t == null || t.attemptAutoclose("remove-entity", this.id), {
|
|
@@ -32295,17 +32297,17 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
32295
32297
|
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
32296
32298
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
32297
32299
|
const o = _(d), l = this.project.get(o);
|
|
32298
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
32300
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
32299
32301
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
32300
32302
|
const o = _(d), l = this.project.get(
|
|
32301
32303
|
o
|
|
32302
32304
|
);
|
|
32303
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
32305
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
32304
32306
|
}), this.initialData.calledByError.forEach((d) => {
|
|
32305
32307
|
const o = _(d), l = this.project.get(
|
|
32306
32308
|
o
|
|
32307
32309
|
);
|
|
32308
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
32310
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
32309
32311
|
}), {
|
|
32310
32312
|
updated: p(e),
|
|
32311
32313
|
added: p(t),
|
|
@@ -32396,7 +32398,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
32396
32398
|
"add-error-caller"
|
|
32397
32399
|
)
|
|
32398
32400
|
), r = !1) {
|
|
32399
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
32401
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
32400
32402
|
}
|
|
32401
32403
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
32402
32404
|
new E(
|
|
@@ -32408,7 +32410,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
32408
32410
|
"add-entry-caller"
|
|
32409
32411
|
)
|
|
32410
32412
|
), r = !1) {
|
|
32411
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
32413
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
32412
32414
|
}
|
|
32413
32415
|
removeCaller(e, t = this.project.addChangeSet(
|
|
32414
32416
|
new E(
|
|
@@ -33242,17 +33244,17 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
33242
33244
|
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
33243
33245
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
33244
33246
|
const o = _(d), l = this.project.get(o);
|
|
33245
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
33247
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
33246
33248
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
33247
33249
|
const o = _(d), l = this.project.get(
|
|
33248
33250
|
o
|
|
33249
33251
|
);
|
|
33250
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
33252
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
33251
33253
|
}), this.initialData.calledByError.forEach((d) => {
|
|
33252
33254
|
const o = _(d), l = this.project.get(
|
|
33253
33255
|
o
|
|
33254
33256
|
);
|
|
33255
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
33257
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
33256
33258
|
}), {
|
|
33257
33259
|
updated: p(e),
|
|
33258
33260
|
added: p(t),
|
|
@@ -33350,7 +33352,7 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
33350
33352
|
"add-error-caller"
|
|
33351
33353
|
)
|
|
33352
33354
|
), r = !1) {
|
|
33353
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
33355
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
33354
33356
|
}
|
|
33355
33357
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
33356
33358
|
new E(
|
|
@@ -33362,7 +33364,7 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
33362
33364
|
"add-entry-caller"
|
|
33363
33365
|
)
|
|
33364
33366
|
), r = !1) {
|
|
33365
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
33367
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
33366
33368
|
}
|
|
33367
33369
|
removeCaller(e, t = this.project.addChangeSet(
|
|
33368
33370
|
new E(
|
|
@@ -36924,17 +36926,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
36924
36926
|
}
|
|
36925
36927
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
36926
36928
|
const o = _(d), l = this.project.get(o);
|
|
36927
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
36929
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
36928
36930
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
36929
36931
|
const o = _(d), l = this.project.get(
|
|
36930
36932
|
o
|
|
36931
36933
|
);
|
|
36932
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
36934
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
36933
36935
|
}), this.initialData.calledByError.forEach((d) => {
|
|
36934
36936
|
const o = _(d), l = this.project.get(
|
|
36935
36937
|
o
|
|
36936
36938
|
);
|
|
36937
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
36939
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
36938
36940
|
}), {
|
|
36939
36941
|
updated: p(e),
|
|
36940
36942
|
added: p(t),
|
|
@@ -37135,7 +37137,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
37135
37137
|
"add-error-caller"
|
|
37136
37138
|
)
|
|
37137
37139
|
), r = !1) {
|
|
37138
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
37140
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
37139
37141
|
}
|
|
37140
37142
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
37141
37143
|
new E(
|
|
@@ -37147,7 +37149,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
37147
37149
|
"add-entry-caller"
|
|
37148
37150
|
)
|
|
37149
37151
|
), r = !1) {
|
|
37150
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
37152
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
37151
37153
|
}
|
|
37152
37154
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
37153
37155
|
new E(
|
|
@@ -39384,17 +39386,23 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
39384
39386
|
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
39385
39387
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
39386
39388
|
const o = _(d), l = this.project.get(o);
|
|
39387
|
-
|
|
39389
|
+
o || console.warn(
|
|
39390
|
+
`Break-statement with id '${this.id}' has a 'calledByEntry' with an invalid reference. No referenced entity id found.`
|
|
39391
|
+
), l || console.warn(
|
|
39392
|
+
`Break-statement with id '${this.id}' has a 'calledByEntry' entity with id '${o}' that is not found in the project.`
|
|
39393
|
+
), l && (this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8" && console.warn(
|
|
39394
|
+
`Break-statement with id '${this.id}' adding 'calledByEntry' entity with id '${o}'`
|
|
39395
|
+
), this.addEntryCaller(l, null), e.push(l));
|
|
39388
39396
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
39389
39397
|
const o = _(d), l = this.project.get(
|
|
39390
39398
|
o
|
|
39391
39399
|
);
|
|
39392
|
-
l && (
|
|
39400
|
+
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
39393
39401
|
}), this.initialData.calledByError.forEach((d) => {
|
|
39394
39402
|
const o = _(d), l = this.project.get(
|
|
39395
39403
|
o
|
|
39396
39404
|
);
|
|
39397
|
-
l && (
|
|
39405
|
+
l && (this.addErrorCaller(l, null), e.push(l));
|
|
39398
39406
|
}), {
|
|
39399
39407
|
updated: p(e),
|
|
39400
39408
|
added: p(t),
|
|
@@ -39485,7 +39493,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
39485
39493
|
"add-error-caller"
|
|
39486
39494
|
)
|
|
39487
39495
|
), r = !1) {
|
|
39488
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
39496
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
39489
39497
|
}
|
|
39490
39498
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
39491
39499
|
new E(
|
|
@@ -39497,7 +39505,38 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
39497
39505
|
"add-entry-caller"
|
|
39498
39506
|
)
|
|
39499
39507
|
), r = !1) {
|
|
39500
|
-
|
|
39508
|
+
if (this.calledByEntry.find((s) => s.id === e.id))
|
|
39509
|
+
this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8" && (console.warn(
|
|
39510
|
+
`Break-statement with id '${this.id}' already has an entry point with id '${e.id}', skipping adding it.`
|
|
39511
|
+
), console.warn("this: ", this), console.warn("shallow: ", this.toShallowJSON()));
|
|
39512
|
+
else {
|
|
39513
|
+
if (this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8" && (console.warn(
|
|
39514
|
+
`Break-statement with id '${this.id}' pushing caller entity to 'calledByEntry' array.`
|
|
39515
|
+
), console.warn("caller: ", e), console.warn("this: ", this), console.warn("shallow: ", this.toShallowJSON())), this.calledByEntry.push(e), this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8") {
|
|
39516
|
+
console.warn(
|
|
39517
|
+
`Break-statement change-set BEFORE adding entry point with id '${e.id}'`
|
|
39518
|
+
), console.warn("changeSet: ", t);
|
|
39519
|
+
const s = t == null ? void 0 : t.get(
|
|
39520
|
+
"e4f5b0c0-df48-43de-8f4c-afec0b161ee8"
|
|
39521
|
+
);
|
|
39522
|
+
console.warn("changeSetVersion: ", s);
|
|
39523
|
+
}
|
|
39524
|
+
if (t == null || t.add(this, A.Updated), this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8") {
|
|
39525
|
+
console.warn(
|
|
39526
|
+
`Break-statement change-set AFTER adding entry point with id '${e.id}'`
|
|
39527
|
+
), console.warn("changeSet: ", t);
|
|
39528
|
+
const s = t == null ? void 0 : t.get(
|
|
39529
|
+
"e4f5b0c0-df48-43de-8f4c-afec0b161ee8"
|
|
39530
|
+
);
|
|
39531
|
+
console.warn("changeSetVersion: ", s);
|
|
39532
|
+
}
|
|
39533
|
+
r && (this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8" && (console.warn(
|
|
39534
|
+
`Break-statement with id '${this.id}' recalculating scope after adding entry point with id '${e.id}'`
|
|
39535
|
+
), console.warn("this: ", this), console.warn("shallow: ", this.toShallowJSON())), H(this, t), this.id === "e4f5b0c0-df48-43de-8f4c-afec0b161ee8" && (console.warn(
|
|
39536
|
+
`Break-statement with id '${this.id}' AFTER scope recalculation`
|
|
39537
|
+
), console.warn("this: ", this), console.warn("shallow: ", this.toShallowJSON())));
|
|
39538
|
+
}
|
|
39539
|
+
return t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
39501
39540
|
}
|
|
39502
39541
|
removeCaller(e, t = this.project.addChangeSet(
|
|
39503
39542
|
new E(
|
|
@@ -41968,17 +42007,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
41968
42007
|
}
|
|
41969
42008
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
41970
42009
|
const o = _(d), l = this.project.get(o);
|
|
41971
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
42010
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
41972
42011
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
41973
42012
|
const o = _(d), l = this.project.get(
|
|
41974
42013
|
o
|
|
41975
42014
|
);
|
|
41976
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
42015
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
41977
42016
|
}), this.initialData.calledByError.forEach((d) => {
|
|
41978
42017
|
const o = _(d), l = this.project.get(
|
|
41979
42018
|
o
|
|
41980
42019
|
);
|
|
41981
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
42020
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
41982
42021
|
}), {
|
|
41983
42022
|
updated: p(e),
|
|
41984
42023
|
added: p(t),
|
|
@@ -42159,7 +42198,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
42159
42198
|
"add-error-caller"
|
|
42160
42199
|
)
|
|
42161
42200
|
), r = !1) {
|
|
42162
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
42201
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
42163
42202
|
}
|
|
42164
42203
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
42165
42204
|
new E(
|
|
@@ -42171,7 +42210,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
42171
42210
|
"add-entry-caller"
|
|
42172
42211
|
)
|
|
42173
42212
|
), r = !1) {
|
|
42174
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
42213
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
42175
42214
|
}
|
|
42176
42215
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
42177
42216
|
new E(
|
|
@@ -42460,18 +42499,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
42460
42499
|
)
|
|
42461
42500
|
)) {
|
|
42462
42501
|
const t = [], r = [], s = [], d = [];
|
|
42463
|
-
return e != null && e.hasAdded(this.id) ? (e == null || e.attemptAutoclose("restore-entity", this.id), { added: [], updated: [], removed: [], affected: [], self: this }) : (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e),
|
|
42464
|
-
const {
|
|
42465
|
-
updated: l,
|
|
42466
|
-
removed: u,
|
|
42467
|
-
added: h
|
|
42468
|
-
} = o.entity.onDetachedDependencyRestored(
|
|
42469
|
-
this,
|
|
42470
|
-
o.field,
|
|
42471
|
-
e
|
|
42472
|
-
);
|
|
42473
|
-
r.push(...l), s.push(...u), t.push(...h);
|
|
42474
|
-
}), this.inputs.forEach((o) => {
|
|
42502
|
+
return e != null && e.hasAdded(this.id) ? (e == null || e.attemptAutoclose("restore-entity", this.id), { added: [], updated: [], removed: [], affected: [], self: this }) : (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e), this.inputs.forEach((o) => {
|
|
42475
42503
|
const { updated: l } = o.restore({}, e);
|
|
42476
42504
|
r.push(...l);
|
|
42477
42505
|
}), this.outputs.forEach((o) => {
|
|
@@ -44774,17 +44802,17 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
44774
44802
|
}
|
|
44775
44803
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
44776
44804
|
const o = _(d), l = this.project.get(o);
|
|
44777
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
44805
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
44778
44806
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
44779
44807
|
const o = _(d), l = this.project.get(
|
|
44780
44808
|
o
|
|
44781
44809
|
);
|
|
44782
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
44810
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
44783
44811
|
}), this.initialData.calledByError.forEach((d) => {
|
|
44784
44812
|
const o = _(d), l = this.project.get(
|
|
44785
44813
|
o
|
|
44786
44814
|
);
|
|
44787
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
44815
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
44788
44816
|
}), {
|
|
44789
44817
|
updated: p(e),
|
|
44790
44818
|
added: p(t),
|
|
@@ -44916,7 +44944,7 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
44916
44944
|
"add-error-caller"
|
|
44917
44945
|
)
|
|
44918
44946
|
), r = !1) {
|
|
44919
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
44947
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
44920
44948
|
}
|
|
44921
44949
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
44922
44950
|
new E(
|
|
@@ -44928,7 +44956,7 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
44928
44956
|
"add-entry-caller"
|
|
44929
44957
|
)
|
|
44930
44958
|
), r = !1) {
|
|
44931
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
44959
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
44932
44960
|
}
|
|
44933
44961
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
44934
44962
|
new E(
|
|
@@ -46094,17 +46122,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
46094
46122
|
}
|
|
46095
46123
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
46096
46124
|
const o = _(d), l = this.project.get(o);
|
|
46097
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
46125
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
46098
46126
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
46099
46127
|
const o = _(d), l = this.project.get(
|
|
46100
46128
|
o
|
|
46101
46129
|
);
|
|
46102
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
46130
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
46103
46131
|
}), this.initialData.calledByError.forEach((d) => {
|
|
46104
46132
|
const o = _(d), l = this.project.get(
|
|
46105
46133
|
o
|
|
46106
46134
|
);
|
|
46107
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
46135
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
46108
46136
|
}), Ai.hydrateReadsValue(this), {
|
|
46109
46137
|
updated: p(e),
|
|
46110
46138
|
added: p(t),
|
|
@@ -46317,7 +46345,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
46317
46345
|
"add-error-caller"
|
|
46318
46346
|
)
|
|
46319
46347
|
), r = !1) {
|
|
46320
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
46348
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
46321
46349
|
}
|
|
46322
46350
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
46323
46351
|
new E(
|
|
@@ -46329,7 +46357,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
46329
46357
|
"add-entry-caller"
|
|
46330
46358
|
)
|
|
46331
46359
|
), r = !1) {
|
|
46332
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
46360
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
46333
46361
|
}
|
|
46334
46362
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
46335
46363
|
new E(
|
|
@@ -47837,17 +47865,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
47837
47865
|
}
|
|
47838
47866
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
47839
47867
|
const o = _(d), l = this.project.get(o);
|
|
47840
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
47868
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
47841
47869
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
47842
47870
|
const o = _(d), l = this.project.get(
|
|
47843
47871
|
o
|
|
47844
47872
|
);
|
|
47845
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
47873
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
47846
47874
|
}), this.initialData.calledByError.forEach((d) => {
|
|
47847
47875
|
const o = _(d), l = this.project.get(
|
|
47848
47876
|
o
|
|
47849
47877
|
);
|
|
47850
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
47878
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
47851
47879
|
}), Ai.hydrateReadsValue(this), {
|
|
47852
47880
|
updated: p(e),
|
|
47853
47881
|
added: p(t),
|
|
@@ -48054,7 +48082,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
48054
48082
|
"add-error-caller"
|
|
48055
48083
|
)
|
|
48056
48084
|
), r = !1) {
|
|
48057
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
48085
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
48058
48086
|
}
|
|
48059
48087
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
48060
48088
|
new E(
|
|
@@ -48066,7 +48094,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
48066
48094
|
"add-entry-caller"
|
|
48067
48095
|
)
|
|
48068
48096
|
), r = !1) {
|
|
48069
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
48097
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
48070
48098
|
}
|
|
48071
48099
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
48072
48100
|
new E(
|
|
@@ -49779,17 +49807,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
49779
49807
|
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
49780
49808
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
49781
49809
|
const o = _(d), l = this.project.get(o);
|
|
49782
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
49810
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
49783
49811
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
49784
49812
|
const o = _(d), l = this.project.get(
|
|
49785
49813
|
o
|
|
49786
49814
|
);
|
|
49787
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
49815
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
49788
49816
|
}), this.initialData.calledByError.forEach((d) => {
|
|
49789
49817
|
const o = _(d), l = this.project.get(
|
|
49790
49818
|
o
|
|
49791
49819
|
);
|
|
49792
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
49820
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
49793
49821
|
}), {
|
|
49794
49822
|
updated: p(e),
|
|
49795
49823
|
added: p(t),
|
|
@@ -50001,7 +50029,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
50001
50029
|
"add-error-caller"
|
|
50002
50030
|
)
|
|
50003
50031
|
), r = !1) {
|
|
50004
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
50032
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
50005
50033
|
}
|
|
50006
50034
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
50007
50035
|
new E(
|
|
@@ -50013,7 +50041,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
50013
50041
|
"add-entry-caller"
|
|
50014
50042
|
)
|
|
50015
50043
|
), r = !1) {
|
|
50016
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
50044
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
50017
50045
|
}
|
|
50018
50046
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
50019
50047
|
new E(
|
|
@@ -52188,17 +52216,17 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
52188
52216
|
}
|
|
52189
52217
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
52190
52218
|
const o = _(d), l = this.project.get(o);
|
|
52191
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
52219
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
52192
52220
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
52193
52221
|
const o = _(d), l = this.project.get(
|
|
52194
52222
|
o
|
|
52195
52223
|
);
|
|
52196
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
52224
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
52197
52225
|
}), this.initialData.calledByError.forEach((d) => {
|
|
52198
52226
|
const o = _(d), l = this.project.get(
|
|
52199
52227
|
o
|
|
52200
52228
|
);
|
|
52201
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
52229
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
52202
52230
|
}), {
|
|
52203
52231
|
updated: p(e),
|
|
52204
52232
|
added: p(t),
|
|
@@ -52383,7 +52411,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
52383
52411
|
"add-error-caller"
|
|
52384
52412
|
)
|
|
52385
52413
|
), r = !1) {
|
|
52386
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
52414
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
52387
52415
|
}
|
|
52388
52416
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
52389
52417
|
new E(
|
|
@@ -52395,7 +52423,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
52395
52423
|
"add-entry-caller"
|
|
52396
52424
|
)
|
|
52397
52425
|
), r = !1) {
|
|
52398
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
52426
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
52399
52427
|
}
|
|
52400
52428
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
52401
52429
|
new E(
|
|
@@ -61314,17 +61342,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
61314
61342
|
}
|
|
61315
61343
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
61316
61344
|
const o = _(d), l = this.project.get(o);
|
|
61317
|
-
l && (this.addEntryCaller(l, null), e.push(l));
|
|
61345
|
+
l && (this.addEntryCaller(l, null), l.addCall(this, null), e.push(l));
|
|
61318
61346
|
}), this.initialData.calledBySuccess.forEach((d) => {
|
|
61319
61347
|
const o = _(d), l = this.project.get(
|
|
61320
61348
|
o
|
|
61321
61349
|
);
|
|
61322
|
-
l && (this.addSuccessCaller(l, null), e.push(l));
|
|
61350
|
+
l && (this.addSuccessCaller(l, null), l.addSuccessCall(this, null), e.push(l));
|
|
61323
61351
|
}), this.initialData.calledByError.forEach((d) => {
|
|
61324
61352
|
const o = _(d), l = this.project.get(
|
|
61325
61353
|
o
|
|
61326
61354
|
);
|
|
61327
|
-
l && (this.addErrorCaller(l, null), e.push(l));
|
|
61355
|
+
l && (this.addErrorCaller(l, null), l.addErrorCall(this, null), e.push(l));
|
|
61328
61356
|
}), {
|
|
61329
61357
|
updated: p(e),
|
|
61330
61358
|
added: p(t),
|
|
@@ -61509,7 +61537,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
61509
61537
|
"add-error-caller"
|
|
61510
61538
|
)
|
|
61511
61539
|
), r = !1) {
|
|
61512
|
-
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-error-caller", this.id)
|
|
61540
|
+
return this.calledByError.find((s) => s.id === e.id) || (this.calledByError.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-error-caller", this.id), this;
|
|
61513
61541
|
}
|
|
61514
61542
|
addEntryCaller(e, t = this.project.addChangeSet(
|
|
61515
61543
|
new E(
|
|
@@ -61521,7 +61549,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
61521
61549
|
"add-entry-caller"
|
|
61522
61550
|
)
|
|
61523
61551
|
), r = !1) {
|
|
61524
|
-
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t), t == null || t.attemptAutoclose("add-entry-caller", this.id)
|
|
61552
|
+
return this.calledByEntry.find((s) => s.id === e.id) || (this.calledByEntry.push(e), t == null || t.add(this, A.Updated), r && H(this, t)), t == null || t.attemptAutoclose("add-entry-caller", this.id), this;
|
|
61525
61553
|
}
|
|
61526
61554
|
addErrorCall(e, t = this.project.addChangeSet(
|
|
61527
61555
|
new E(
|