@elyx-code/project-logic-tree 0.0.6684 → 0.0.6685
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.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29296,6 +29296,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29296
29296
|
initialized: boolean;
|
|
29297
29297
|
startedInitialization: boolean;
|
|
29298
29298
|
diggestedBuiltInBaseEntitiesIds: Set<EntityId>;
|
|
29299
|
+
_testProp: boolean;
|
|
29299
29300
|
onPersistChangeSetSequentiallyCallback: ((changeSet: ChangeSet) => Promise<{
|
|
29300
29301
|
success: boolean;
|
|
29301
29302
|
}>) | null;
|
package/dist/index.js
CHANGED
|
@@ -198661,6 +198661,7 @@ const qZ = {
|
|
|
198661
198661
|
I(this, "initialized", !1);
|
|
198662
198662
|
I(this, "startedInitialization", !1);
|
|
198663
198663
|
I(this, "diggestedBuiltInBaseEntitiesIds", /* @__PURE__ */ new Set());
|
|
198664
|
+
I(this, "_testProp", !1);
|
|
198664
198665
|
I(this, "onPersistChangeSetSequentiallyCallback", null);
|
|
198665
198666
|
I(this, "onPersistChangeSetInParallelCallback", null);
|
|
198666
198667
|
I(this, "onAddChangeSetCallback", null);
|
|
@@ -198844,6 +198845,8 @@ const qZ = {
|
|
|
198844
198845
|
// If there is a currently open change-set, it throws an error
|
|
198845
198846
|
addChangeSet(i) {
|
|
198846
198847
|
var c, e;
|
|
198848
|
+
if (this._testProp)
|
|
198849
|
+
throw new Error("Test error from _testProp");
|
|
198847
198850
|
if (!this.history.length)
|
|
198848
198851
|
return this.undoableStackValueIndex = bL(
|
|
198849
198852
|
this.undoableStackValueIndex,
|
|
@@ -198858,7 +198861,10 @@ const qZ = {
|
|
|
198858
198861
|
const s = this.history.find((y) => y.open);
|
|
198859
198862
|
if (s)
|
|
198860
198863
|
throw ie.warn("Previous still open: ", s), ie.warn("New change set: ", i), new Error(
|
|
198861
|
-
`There is already an open change-set with id '${s.id}'
|
|
198864
|
+
`There is already an open change-set with id '${s.id}'${s.autoCloseActionName ? ` auto-close: ${s.autoCloseActionName}` : ""}${s.self ? ` root: ${s.self.type} ${le(
|
|
198865
|
+
s.self,
|
|
198866
|
+
this
|
|
198867
|
+
)}` : ""}.`
|
|
198862
198868
|
);
|
|
198863
198869
|
return this.undoableStackValueIndex = bL(
|
|
198864
198870
|
this.undoableStackValueIndex,
|
|
@@ -200487,7 +200493,9 @@ const qZ = {
|
|
|
200487
200493
|
);
|
|
200488
200494
|
}
|
|
200489
200495
|
});
|
|
200490
|
-
const m = new na(c, {
|
|
200496
|
+
const m = new na(c, {
|
|
200497
|
+
allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
|
|
200498
|
+
});
|
|
200491
200499
|
return m.flatRecord = e, m.order = y, m.orderEntities(), ie.log(
|
|
200492
200500
|
"All entities: ",
|
|
200493
200501
|
m.order.map((v, b) => `${b + 1}: ${e[v].type} - ${v}`).join(`,
|
|
@@ -200553,7 +200561,9 @@ const qZ = {
|
|
|
200553
200561
|
}), i;
|
|
200554
200562
|
}
|
|
200555
200563
|
toFullProjectTransfer() {
|
|
200556
|
-
const i = new na(this, {
|
|
200564
|
+
const i = new na(this, {
|
|
200565
|
+
allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
|
|
200566
|
+
}), n = {};
|
|
200557
200567
|
return i.visit((s) => {
|
|
200558
200568
|
const c = s.toShallowJSON();
|
|
200559
200569
|
n[s.id] = c;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6685",
|
|
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",
|