poulet 0.1.4 → 0.1.5
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/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# poulet
|
|
2
2
|
|
|
3
3
|
📊 **SDK JavaScript léger** pour mesurer le **temps réellement actif** sur une application web, collecter des **événements métier**, permettre aux testeurs de **soumettre des bugs**, et alimenter un serveur pour **rémunérer automatiquement** le temps/bounties.
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* un seul onglet “leader” envoie les heartbeats,
|
|
26
26
|
* jitter sur l’intervalle pour éviter les patterns parfaits.
|
|
27
27
|
* **Transport** : batching, retries, offline queue, `sendBeacon` en priorité.
|
|
28
|
-
* **Interopérabilité** : IIFE (CDN global `window.PouletMetrics`), ESM/CJS (`import { init } from '
|
|
28
|
+
* **Interopérabilité** : IIFE (CDN global `window.PouletMetrics`), ESM/CJS (`import { init } from 'poulet'`), React (`poulet/react`).
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
@@ -232,9 +232,9 @@ Valide → `active:true, vis:true, idle:false` + intervalle plausible.
|
|
|
232
232
|
Disponible via :
|
|
233
233
|
|
|
234
234
|
* **jsDelivr** :
|
|
235
|
-
`https://cdn.jsdelivr.net/npm
|
|
235
|
+
`https://cdn.jsdelivr.net/npm/poulet/dist/index.global.js`
|
|
236
236
|
* **unpkg** :
|
|
237
|
-
`https://unpkg.com
|
|
237
|
+
`https://unpkg.com/poulet/dist/index.global.js`
|
|
238
238
|
|
|
239
239
|
Ajoute un **SRI hash** en prod pour renforcer la sécurité.
|
|
240
240
|
|
|
@@ -249,9 +249,9 @@ npm publish --access public
|
|
|
249
249
|
|
|
250
250
|
* **Exports** :
|
|
251
251
|
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
252
|
+
* `poulet` → core ESM/CJS
|
|
253
|
+
* `poulet/react` → adapter React
|
|
254
|
+
* `poulet/iife` → **[bundle]()** global pour `<script>`
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|