discovery-media-player 0.1.102 → 0.1.103
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/server/schema.js +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discovery-media-player",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.103",
|
|
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",
|
package/server/schema.js
CHANGED
|
@@ -394,7 +394,19 @@ async function ajouterPresence(etat) {
|
|
|
394
394
|
const sans = await PLAYER.db.request(`doc_presentation_attendees?last_no_token_at=gt.${encodeURIComponent(depuis)}&select=slug${bornee}`);
|
|
395
395
|
const nAvec = Array.isArray(avec) ? avec.length : 0;
|
|
396
396
|
const nSans = Array.isArray(sans) ? sans.length : 0;
|
|
397
|
-
|
|
397
|
+
// ⚠️ `couvre` VOYAGE AVEC LES NOMBRES, ET C'EST LE POINT. Le commentaire ci-dessus protège celui
|
|
398
|
+
// qui lit la SOURCE ; celui qui court un risque, lui, lit le JSON — dans six mois, dans un cockpit,
|
|
399
|
+
// sans ce fichier sous les yeux. `avecJeton: 40, sansJeton: 0` se lira alors « 40 participants
|
|
400
|
+
// prouvés », alors que les 40 peuvent n'avoir RIEN prouvé : un bootstrap auto-déclaré (`wantToken`)
|
|
401
|
+
// pose `last_token_at` sans qu'aucun jeton n'ait été vérifié — c'est voulu, et même NÉCESSAIRE pour
|
|
402
|
+
// que `sansJeton` puisse atteindre zéro. Le mot est donc collé au nombre, comme `couvre` l'est déjà
|
|
403
|
+
// au verdict du schéma : c'est une JAUGE DE MIGRATION, pas une métrique de sécurité. (relevé 2e hôte)
|
|
404
|
+
etat.presence = {
|
|
405
|
+
couvre: "jauge-de-migration (avecJeton inclut les bootstraps auto-déclarés — pas une preuve)",
|
|
406
|
+
avecJeton: nAvec,
|
|
407
|
+
sansJeton: nSans,
|
|
408
|
+
tronque: nAvec >= PLAFOND_SANS_RANG || nSans >= PLAFOND_SANS_RANG,
|
|
409
|
+
};
|
|
398
410
|
} catch { /* best-effort */ }
|
|
399
411
|
}
|
|
400
412
|
|