discovery-media-player 0.1.81 → 0.1.82

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discovery-media-player",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "description": "Self-hosted document viewer: per-recipient tracked links, reading analytics, live presentation. The core knows nothing about the application hosting it — everything it borrows arrives through an injected context.",
5
5
  "keywords": [
6
6
  "pdf-viewer",
@@ -237,6 +237,9 @@ async function purgerRetention(now, optsBrutes = {}) {
237
237
  presRapport.presences += pres.supprimees;
238
238
  presRapport.presencesExaminees += pres.examinees;
239
239
  budgetPresences -= opts.dryRun ? pres.examinees : pres.supprimees;
240
+ // ⚠️ LE RAPPORT DIT LA VÉRITÉ : si un enfant est tronqué, le rapport parent l'est aussi
241
+ // (P2 onzième audit — sinon la supervision croit la purge complète alors qu'un reste subsiste).
242
+ presRapport.tronque = presRapport.tronque || msgs.tronque || pres.tronque;
240
243
  // La présentation n'est supprimée que si TOUS ses enfants sont partis (9e audit).
241
244
  if (!opts.dryRun && !msgs.tronque && !pres.tronque) {
242
245
  presRapport.supprimees += (await purgerParLots("doc_presentations", `slug=eq.${enc(slug)}`, "slug", opts)).supprimees;