@tracelog/lib 2.8.4-rc.104.5 → 2.8.4-rc.104.7
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/browser/tracelog.esm.js +3 -15
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +1 -1
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +1 -1
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.js +1 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
|
@@ -1198,21 +1198,6 @@ class Ze extends _ {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
), !0) : this.sendQueueSyncInternal(e);
|
|
1200
1200
|
}
|
|
1201
|
-
/**
|
|
1202
|
-
* Persists events to localStorage for recovery without sending.
|
|
1203
|
-
*
|
|
1204
|
-
* Used when an async send is already in-flight to avoid sending the same
|
|
1205
|
-
* events through two paths (fetch + sendBeacon) with different idempotency tokens.
|
|
1206
|
-
* `ensureBatchMetadata()` assigns a stable token before persisting.
|
|
1207
|
-
* On next page load, `recoverPersistedEvents()` sends with the persisted token.
|
|
1208
|
-
*
|
|
1209
|
-
* @param body - Event queue to persist
|
|
1210
|
-
*/
|
|
1211
|
-
persistForRecovery(e) {
|
|
1212
|
-
if (this.shouldSkipSend()) return;
|
|
1213
|
-
const t = this.ensureBatchMetadata(e);
|
|
1214
|
-
this.persistEventsWithFailureCount(t, 0, !0);
|
|
1215
|
-
}
|
|
1216
1201
|
/**
|
|
1217
1202
|
* Sends events asynchronously using `fetch()` API with automatic persistence on failure.
|
|
1218
1203
|
*
|
|
@@ -1641,6 +1626,9 @@ class Ze extends _ {
|
|
|
1641
1626
|
* retry/persistence decision. Bounded to {@link MAX_RESPONSE_CODE_LENGTH} chars
|
|
1642
1627
|
* to keep noisy/untrusted payloads out of logs without coupling the lib to the
|
|
1643
1628
|
* API's evolving code catalogue.
|
|
1629
|
+
*
|
|
1630
|
+
* Only string `code` values are accepted — numeric or object codes are
|
|
1631
|
+
* intentionally dropped to keep the log shape stable.
|
|
1644
1632
|
*/
|
|
1645
1633
|
async readTraceLogErrorCode(e) {
|
|
1646
1634
|
try {
|