@elyx-code/project-logic-tree 0.0.6625 → 0.0.6626
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 +2 -1
- package/dist/index.js +8 -5
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9271,8 +9271,9 @@ export declare class ChangeSet extends Events {
|
|
|
9271
9271
|
author: string;
|
|
9272
9272
|
timestamp: string;
|
|
9273
9273
|
open: boolean;
|
|
9274
|
-
dirty: boolean;
|
|
9275
9274
|
startedClose: boolean;
|
|
9275
|
+
dirty: boolean;
|
|
9276
|
+
submitting: boolean;
|
|
9276
9277
|
lockedVersions: boolean;
|
|
9277
9278
|
type: ChangeSetChangeCaptureType;
|
|
9278
9279
|
autoclose: boolean;
|
package/dist/index.js
CHANGED
|
@@ -93180,9 +93180,12 @@ class S extends qf {
|
|
|
93180
93180
|
// ISO 8601 format
|
|
93181
93181
|
// Whether the change-set is still open and can accept more changes.
|
|
93182
93182
|
I(this, "open", !0);
|
|
93183
|
+
// Whether the change-set closing process has been started.
|
|
93184
|
+
I(this, "startedClose", !1);
|
|
93183
93185
|
// Whether the change-set changes have been permanently persisted.
|
|
93184
93186
|
I(this, "dirty", !0);
|
|
93185
|
-
|
|
93187
|
+
// Whether the change-set is in the process of being submitted.
|
|
93188
|
+
I(this, "submitting", !1);
|
|
93186
93189
|
// Whether the entities in this change-set should not be auto-versioned
|
|
93187
93190
|
I(this, "lockedVersions", !1);
|
|
93188
93191
|
/*
|
|
@@ -192926,7 +192929,7 @@ const o6 = {
|
|
|
192926
192929
|
async closePendingChangeSets() {
|
|
192927
192930
|
console.log("[ProjectState.closePendingChangeSets] called");
|
|
192928
192931
|
const i = this.history.find(
|
|
192929
|
-
(n) => n.dirty && !n.open && !n.
|
|
192932
|
+
(n) => n.dirty && !n.open && !n.submitting
|
|
192930
192933
|
);
|
|
192931
192934
|
i && (console.log(
|
|
192932
192935
|
`[ProjectState.closePendingChangeSets] closing pending change-set ${i.id} - ${i.autoCloseActionName}`
|
|
@@ -192946,9 +192949,9 @@ const o6 = {
|
|
|
192946
192949
|
async closeChangeSet(i) {
|
|
192947
192950
|
if (console.log(
|
|
192948
192951
|
`[ProjectState.closeChangeSet] called for change-set ${i.id} - ${i.autoCloseActionName}`
|
|
192949
|
-
), !i.
|
|
192952
|
+
), !i.dirty || i.open || i.submitting) {
|
|
192950
192953
|
console.log(
|
|
192951
|
-
`[ProjectState.closeChangeSet] change-set ${i.id} - ${i.autoCloseActionName} is not
|
|
192954
|
+
`[ProjectState.closeChangeSet] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`
|
|
192952
192955
|
);
|
|
192953
192956
|
return;
|
|
192954
192957
|
}
|
|
@@ -192961,7 +192964,7 @@ const o6 = {
|
|
|
192961
192964
|
}
|
|
192962
192965
|
this.onCloseChangeSetCallback && (console.log(
|
|
192963
192966
|
`[ProjectState.closeChangeSet] invoking onCloseChangeSetCallback for change-set ${i.id} - ${i.autoCloseActionName}`
|
|
192964
|
-
), (await this.onCloseChangeSetCallback(i)).success && (i.dirty = !1, this.emit("change-set-closed", i), console.log(
|
|
192967
|
+
), i.submitting = !0, (await this.onCloseChangeSetCallback(i)).success && (i.dirty = !1, this.emit("change-set-closed", i), console.log(
|
|
192965
192968
|
`[ProjectState.closeChangeSet] change-set ${i.id} - ${i.autoCloseActionName} closed successfully, checking for pending change-sets to close.`
|
|
192966
192969
|
), this.closePendingChangeSets()));
|
|
192967
192970
|
}
|