@bitcobblers/wod-wiki-engine 0.35.2117 → 0.35.2119

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/bin/wod.cjs CHANGED
@@ -2319,7 +2319,7 @@ async function putChanged(store, values, keys) {
2319
2319
  async function applySeedChunk(storage, write) {
2320
2320
  assertSeedManifest(write.manifest);
2321
2321
  assertSeedRows(write.rows);
2322
- const result = { totalNotes: 0, totalEfforts: 0, totalBlocks: 0, skippedUserOwned: 0, deleted: 0 };
2322
+ const result = { totalNotes: 0, totalEfforts: 0, totalBlocks: 0, skippedUserOwned: 0, deleted: 0, addedNotes: 0, updatedNotes: 0 };
2323
2323
  const ids = await Promise.all(write.rows.map((row) => seedNoteId(row.path)));
2324
2324
  const pagesBySlug = /* @__PURE__ */ new Map();
2325
2325
  const linkIds = /* @__PURE__ */ new Map();
@@ -2374,6 +2374,8 @@ async function applySeedChunk(storage, write) {
2374
2374
  result.skippedUserOwned++;
2375
2375
  continue;
2376
2376
  }
2377
+ if (!existing) result.addedNotes++;
2378
+ else if (existing.rawContent !== row.content) result.updatedNotes++;
2377
2379
  wodWikiCore.validateNoteBlocks(row.content, row.blocks, 1, { registeredWidgets: SEED_REGISTERED_WIDGETS });
2378
2380
  const sourceRevision = existing ? existing.sourceRevision + (existing.rawContent === row.content ? 0 : 1) : 1;
2379
2381
  let ordinal = 0;