@elyx-code/project-logic-tree 0.0.6654 → 0.0.6656
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.d.ts +4 -0
- package/dist/index.js +14 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29060,11 +29060,15 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29060
29060
|
onPersistChangeSetSequentially(callback: (changeSet: ChangeSet) => Promise<{
|
|
29061
29061
|
success: boolean;
|
|
29062
29062
|
}>): Promise<void>;
|
|
29063
|
+
offPersistChangeSetSequentially(): void;
|
|
29063
29064
|
onPersistChangeSetInParallel(callback: (changeSet: ChangeSet) => Promise<{
|
|
29064
29065
|
success: boolean;
|
|
29065
29066
|
}>): Promise<void>;
|
|
29067
|
+
offPersistChangeSetInParallel(): void;
|
|
29066
29068
|
onAddChangeSet(callback: (changeSet: ChangeSet, undoableStackValueIndex: number) => void): void;
|
|
29069
|
+
offAddChangeSet(): void;
|
|
29067
29070
|
onDiscardChangeSet(callback: (changeSet: ChangeSet) => void): void;
|
|
29071
|
+
offDiscardChangeSet(): void;
|
|
29068
29072
|
persistChangeSetSequentially(changeSet: ChangeSet): Promise<void>;
|
|
29069
29073
|
persistChangeSetInParallel(changeSet: ChangeSet): Promise<void>;
|
|
29070
29074
|
toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
|
package/dist/index.js
CHANGED
|
@@ -94980,7 +94980,7 @@ class q extends Bf {
|
|
|
94980
94980
|
), this.dirty = !1, this.project.discardChangeSet(this), ie.log("[ChangeSet.closeAsync] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this) : (this.project.emit(
|
|
94981
94981
|
Ti.CHANGE_SET_CLOSED_BEFORE_PERSIST,
|
|
94982
94982
|
this
|
|
94983
|
-
), c ? n.persistType === "parallel" ? await this.project.persistChangeSetInParallel(this) : await this.project.persistChangeSetSequentially(this) : n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this);
|
|
94983
|
+
), c ? n.persistType === "parallel" ? await this.project.persistChangeSetInParallel(this) : await this.project.persistChangeSetSequentially(this) : n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this.destroy(), this);
|
|
94984
94984
|
}
|
|
94985
94985
|
attemptAutoclose(i, n) {
|
|
94986
94986
|
var l;
|
|
@@ -95090,7 +95090,7 @@ class q extends Bf {
|
|
|
95090
95090
|
return this.project.emit(
|
|
95091
95091
|
Ti.CHANGE_SET_CLOSED_BEFORE_PERSIST,
|
|
95092
95092
|
this
|
|
95093
|
-
), n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this;
|
|
95093
|
+
), n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this.destroy(), this;
|
|
95094
95094
|
}
|
|
95095
95095
|
// Add to 'affected' any dependencies that are not present in the change-set
|
|
95096
95096
|
addDependentsToAffected(i) {
|
|
@@ -195145,6 +195145,9 @@ const lZ = {
|
|
|
195145
195145
|
"[ProjectState.onPersistChangeSetSequentially] onPersistChangeSetSequentiallyCallback has been set. Checking for pending change-sets."
|
|
195146
195146
|
), await this.closePersistChangeSetsSequentially();
|
|
195147
195147
|
}
|
|
195148
|
+
offPersistChangeSetSequentially() {
|
|
195149
|
+
this.onPersistChangeSetSequentiallyCallback = null;
|
|
195150
|
+
}
|
|
195148
195151
|
async onPersistChangeSetInParallel(i) {
|
|
195149
195152
|
this.onPersistChangeSetInParallelCallback = i, ie.log(
|
|
195150
195153
|
"[ProjectState.onPersistChangeSetInParallel] onPersistChangeSetInParallelCallback has been set. Checking for pending change-sets."
|
|
@@ -195152,12 +195155,21 @@ const lZ = {
|
|
|
195152
195155
|
for (const n of this.history)
|
|
195153
195156
|
this.persistChangeSetInParallel(n), await new Promise((l) => setTimeout(l, 27));
|
|
195154
195157
|
}
|
|
195158
|
+
offPersistChangeSetInParallel() {
|
|
195159
|
+
this.onPersistChangeSetInParallelCallback = null;
|
|
195160
|
+
}
|
|
195155
195161
|
onAddChangeSet(i) {
|
|
195156
195162
|
this.onAddChangeSetCallback = i;
|
|
195157
195163
|
}
|
|
195164
|
+
offAddChangeSet() {
|
|
195165
|
+
this.onAddChangeSetCallback = null;
|
|
195166
|
+
}
|
|
195158
195167
|
onDiscardChangeSet(i) {
|
|
195159
195168
|
this.onDiscardChangeSetCallback = i;
|
|
195160
195169
|
}
|
|
195170
|
+
offDiscardChangeSet() {
|
|
195171
|
+
this.onDiscardChangeSetCallback = null;
|
|
195172
|
+
}
|
|
195161
195173
|
async persistChangeSetSequentially(i) {
|
|
195162
195174
|
if (ie.log(
|
|
195163
195175
|
`[ProjectState.persistChangeSetSequentially] called for change-set ${i.id} - ${i.autoCloseActionName}`
|
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.6656",
|
|
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",
|