@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 +3 -1
- package/dist/bin/wod.cjs.map +1 -1
- package/dist/bin/wod.mjs +1 -1
- package/dist/{chunk-AKNXDA75.mjs → chunk-RZB4S7L6.mjs} +5 -3
- package/dist/chunk-RZB4S7L6.mjs.map +1 -0
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-AKNXDA75.mjs.map +0 -1
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;
|