@quolu/lattice 0.12.26 → 0.12.27
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/package.json +1 -1
- package/src/todo-store.mjs +3 -1
package/package.json
CHANGED
package/src/todo-store.mjs
CHANGED
|
@@ -1494,7 +1494,9 @@ export async function appendImportedPlan(options = {}) {
|
|
|
1494
1494
|
|
|
1495
1495
|
const descriptor = { plan_key: plan.plan_key, active_plan_version: plan.plan_version,
|
|
1496
1496
|
plan_ref: planRef, journal_ref: journalRef, snapshot_ref: snapshotRef,
|
|
1497
|
-
topology_digest: plan.topology_digest, journal_head_digest: events.at(-1).event_digest
|
|
1497
|
+
topology_digest: plan.topology_digest, journal_head_digest: events.at(-1).event_digest,
|
|
1498
|
+
...(currentManifest.schema === 'lattice.todo_manifest.v2'
|
|
1499
|
+
? { active_revision_digest: plan.plan_digest } : {}) };
|
|
1498
1500
|
currentManifest.members.push(descriptor);
|
|
1499
1501
|
currentManifest.members.sort((left, right) => left.plan_key < right.plan_key ? -1 : left.plan_key > right.plan_key ? 1 : 0);
|
|
1500
1502
|
currentManifest.manifest_digest = todoSelfDigest(currentManifest, 'manifest_digest');
|