@utk09/ui-observability 0.11.0 → 0.12.0
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/CHANGELOG.md +61 -0
- package/README.md +273 -102
- package/bin/uiobs.mjs +1 -1
- package/dist/{batch-CL9uWYY3.js → batch-BjQUwjA6.js} +4 -4
- package/dist/batch-BjQUwjA6.js.map +1 -0
- package/dist/{batch-C8OcWR2L.cjs → batch-D5LlU4Q9.cjs} +2 -2
- package/dist/batch-D5LlU4Q9.cjs.map +1 -0
- package/dist/bus/bus.d.ts +48 -47
- package/dist/bus/links.d.ts +4 -4
- package/dist/bus/validation.d.ts +1 -1
- package/dist/bus-D_7pd7RN.cjs +2 -0
- package/dist/bus-D_7pd7RN.cjs.map +1 -0
- package/dist/{bus-BZ0GldpT.js → bus-ecxUNTja.js} +91 -91
- package/dist/bus-ecxUNTja.js.map +1 -0
- package/dist/capture/console.d.ts +10 -10
- package/dist/capture/errors.d.ts +6 -6
- package/dist/capture/interactions.d.ts +14 -14
- package/dist/capture/lifecycle.d.ts +3 -3
- package/dist/capture/long-frames.d.ts +6 -6
- package/dist/capture/network.d.ts +17 -17
- package/dist/capture/profiler-frames.d.ts +44 -0
- package/dist/capture/replay-buffer.d.ts +46 -0
- package/dist/capture/replay-upload.d.ts +74 -0
- package/dist/capture/replay.d.ts +114 -0
- package/dist/capture/reports.d.ts +2 -2
- package/dist/capture/resource-timing.d.ts +1 -1
- package/dist/capture/server-timing.d.ts +3 -3
- package/dist/capture/storm.d.ts +3 -3
- package/dist/capture/types.d.ts +45 -33
- package/dist/capture/unclean-exit.d.ts +8 -8
- package/dist/capture/user-timing.d.ts +3 -3
- package/dist/capture/web-socket.d.ts +11 -11
- package/dist/capture/web-vitals.d.ts +20 -7
- package/dist/compression-AJJCMBOa.js +11 -0
- package/dist/compression-AJJCMBOa.js.map +1 -0
- package/dist/compression-lD9abCcO.cjs +2 -0
- package/dist/compression-lD9abCcO.cjs.map +1 -0
- package/dist/{console-BPZCuSLc.cjs → console-CLz_PvFn.cjs} +2 -2
- package/dist/console-CLz_PvFn.cjs.map +1 -0
- package/dist/{console-BeCF7n59.js → console-cwgHKXvM.js} +4 -4
- package/dist/console-cwgHKXvM.js.map +1 -0
- package/dist/constants-Bwl_YtQi.js +349 -0
- package/dist/constants-Bwl_YtQi.js.map +1 -0
- package/dist/constants-DakMxVB2.cjs +2 -0
- package/dist/constants-DakMxVB2.cjs.map +1 -0
- package/dist/constants.d.ts +150 -103
- package/dist/context-storage-BjzeBSxH.cjs.map +1 -1
- package/dist/context-storage-BzkoHzkQ.js.map +1 -1
- package/dist/core/breadcrumbs.d.ts +16 -15
- package/dist/core/config.d.ts +3 -3
- package/dist/core/context.d.ts +7 -7
- package/dist/core/debug-buffer.d.ts +10 -10
- package/dist/core/debug-bundle.d.ts +3 -3
- package/dist/core/deferred.d.ts +2 -2
- package/dist/core/diagnostics.d.ts +24 -21
- package/dist/core/drops.d.ts +7 -7
- package/dist/core/hold-buffer.d.ts +1 -1
- package/dist/core/journey.d.ts +22 -23
- package/dist/core/logger.d.ts +22 -21
- package/dist/core/measure.d.ts +7 -7
- package/dist/core/meter.d.ts +25 -21
- package/dist/core/pipeline.d.ts +42 -41
- package/dist/core/profile-buckets.d.ts +31 -0
- package/dist/core/profiler.d.ts +218 -0
- package/dist/core/record.d.ts +23 -23
- package/dist/core/remote-rules.d.ts +4 -4
- package/dist/core/remote-sampling.d.ts +21 -20
- package/dist/core/runtime.d.ts +206 -137
- package/dist/core/sampling.d.ts +18 -18
- package/dist/core/sender.d.ts +22 -20
- package/dist/core/spans.d.ts +5 -5
- package/dist/{deadline-BOjOxNHj.js → deadline-C4ccAuk5.js} +3 -6
- package/dist/deadline-C4ccAuk5.js.map +1 -0
- package/dist/deadline-CUGbto-y.cjs +2 -0
- package/dist/deadline-CUGbto-y.cjs.map +1 -0
- package/dist/{debug-bundle-C7UkHZ-q.js → debug-bundle-BOdYmCeV.js} +10 -3
- package/dist/debug-bundle-BOdYmCeV.js.map +1 -0
- package/dist/debug-bundle-Ex4L_LSP.cjs +2 -0
- package/dist/debug-bundle-Ex4L_LSP.cjs.map +1 -0
- package/dist/doctor.cjs +1 -1
- package/dist/doctor.cjs.map +1 -1
- package/dist/doctor.d.ts +16 -6
- package/dist/doctor.js +147 -52
- package/dist/doctor.js.map +1 -1
- package/dist/{emergency-queue-Zy6lNafo.js → emergency-queue-B9WZxanZ.js} +4 -4
- package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
- package/dist/{emergency-queue-CNTRui5t.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
- package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
- package/dist/error-like-B11pB4aL.js.map +1 -1
- package/dist/error-like-gGRx2s36.cjs.map +1 -1
- package/dist/{errors-Dh7kef0i.js → errors-D6bwgJtO.js} +3 -3
- package/dist/errors-D6bwgJtO.js.map +1 -0
- package/dist/{errors-tfEr48bS.cjs → errors-DCOCRdSi.cjs} +2 -2
- package/dist/errors-DCOCRdSi.cjs.map +1 -0
- package/dist/{factory-CJXVYp0R.cjs → factory-DLFDjdLv.cjs} +2 -2
- package/dist/factory-DLFDjdLv.cjs.map +1 -0
- package/dist/{factory-BonqI3NL.js → factory-e9Qo3K0z.js} +13 -13
- package/dist/factory-e9Qo3K0z.js.map +1 -0
- package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
- package/dist/fixed-window-Dq3MLUUv.js.map +1 -1
- package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
- package/dist/global-scope-D9I8s-oN.js.map +1 -1
- package/dist/guards-Cidk71ME.js.map +1 -1
- package/dist/guards-nJ70syPt.cjs.map +1 -1
- package/dist/{identity-Cxgj6pZX.cjs → identity-BlvlgjrU.cjs} +2 -2
- package/dist/identity-BlvlgjrU.cjs.map +1 -0
- package/dist/{identity-DT5VmvXy.js → identity-BrQp_5J5.js} +19 -19
- package/dist/identity-BrQp_5J5.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +112 -79
- package/dist/index.js +783 -635
- package/dist/index.js.map +1 -1
- package/dist/{indexeddb-storage-CIoW21Xd.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
- package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
- package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-DLXQzAGh.js} +4 -4
- package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
- package/dist/{interactions-DTgKy_6K.js → interactions-B6z2I4tU.js} +3 -3
- package/dist/interactions-B6z2I4tU.js.map +1 -0
- package/dist/{interactions-fEN6FbVo.cjs → interactions-P6pz08Jn.cjs} +2 -2
- package/dist/interactions-P6pz08Jn.cjs.map +1 -0
- package/dist/{journey-CuJrHzEg.js → journey-35yCMNFo.js} +20 -19
- package/dist/journey-35yCMNFo.js.map +1 -0
- package/dist/journey-DAGh5h9k.cjs +2 -0
- package/dist/journey-DAGh5h9k.cjs.map +1 -0
- package/dist/keys-BHhw_0Wh.cjs.map +1 -1
- package/dist/keys-BU9j5YqW.js.map +1 -1
- package/dist/{library-console-D2GY9Or6.cjs → library-console-BFWEuQsl.cjs} +2 -2
- package/dist/library-console-BFWEuQsl.cjs.map +1 -0
- package/dist/{library-console-C1m6g1BR.js → library-console-Dl_Ly6DQ.js} +2 -2
- package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
- package/dist/{library-request-1BX_UlaX.cjs → library-request-Da-CHKzT.cjs} +2 -2
- package/dist/library-request-Da-CHKzT.cjs.map +1 -0
- package/dist/{library-request-BQBT9N9Q.js → library-request-nI6pvI6I.js} +2 -2
- package/dist/library-request-nI6pvI6I.js.map +1 -0
- package/dist/{lifecycle-2EtUaRpo.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
- package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
- package/dist/{lifecycle-BaKx_-32.js → lifecycle-CZ6RRXc6.js} +2 -2
- package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
- package/dist/{log-record-i9zOTkpQ.cjs → log-record-D7bA1RPb.cjs} +2 -2
- package/dist/log-record-D7bA1RPb.cjs.map +1 -0
- package/dist/{log-record-CAoGBBf3.js → log-record-DIA6McNr.js} +2 -2
- package/dist/log-record-DIA6McNr.js.map +1 -0
- package/dist/{long-frames-Czk7IupC.js → long-frames-430_85Da.js} +8 -6
- package/dist/long-frames-430_85Da.js.map +1 -0
- package/dist/long-frames-Dd8tsi2U.cjs +2 -0
- package/dist/long-frames-Dd8tsi2U.cjs.map +1 -0
- package/dist/models/batch.d.ts +14 -15
- package/dist/models/bus.d.ts +24 -24
- package/dist/models/config.d.ts +402 -216
- package/dist/models/drop.d.ts +13 -11
- package/dist/models/health.d.ts +13 -13
- package/dist/models/log-record.d.ts +13 -14
- package/dist/models/metric.d.ts +82 -17
- package/dist/models/plugin.d.ts +13 -13
- package/dist/models/replay.d.ts +60 -0
- package/dist/models/serializer.d.ts +2 -3
- package/dist/models/stats.d.ts +2 -2
- package/dist/models/storage.d.ts +12 -11
- package/dist/{network-DBNwApoF.js → network-C7SkLf4v.js} +12 -12
- package/dist/network-C7SkLf4v.js.map +1 -0
- package/dist/{network-xbbuvG_6.cjs → network-pEX3PAJv.cjs} +2 -2
- package/dist/network-pEX3PAJv.cjs.map +1 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -1
- package/dist/openfin-DtH2f7zX.cjs.map +1 -1
- package/dist/otlp-2MCrC3kd.cjs +2 -0
- package/dist/otlp-2MCrC3kd.cjs.map +1 -0
- package/dist/{otlp-BTJdIa6F.js → otlp-COq033e3.js} +25 -32
- package/dist/otlp-COq033e3.js.map +1 -0
- package/dist/patch-BX8KrPCT.cjs.map +1 -1
- package/dist/patch-UdPz1ea8.js.map +1 -1
- package/dist/{platform-C2Ez5kDc.cjs → platform-12uR7kBQ.cjs} +2 -2
- package/dist/platform-12uR7kBQ.cjs.map +1 -0
- package/dist/{platform-DkcuXwe-.js → platform-CVewe4wQ.js} +7 -7
- package/dist/platform-CVewe4wQ.js.map +1 -0
- package/dist/profiler-BVWIOgnq.js +310 -0
- package/dist/profiler-BVWIOgnq.js.map +1 -0
- package/dist/profiler-eVCknCzS.cjs +2 -0
- package/dist/profiler-eVCknCzS.cjs.map +1 -0
- package/dist/profiler-frames-CLXlT_xL.js +86 -0
- package/dist/profiler-frames-CLXlT_xL.js.map +1 -0
- package/dist/profiler-frames-Dg2OebB2.cjs +2 -0
- package/dist/profiler-frames-Dg2OebB2.cjs.map +1 -0
- package/dist/{remote-rules-Cfb4K-Nl.js → remote-rules-BJGDJGwA.js} +27 -27
- package/dist/remote-rules-BJGDJGwA.js.map +1 -0
- package/dist/{remote-rules-vzvk7aKf.cjs → remote-rules-CJD3ToVk.cjs} +2 -2
- package/dist/remote-rules-CJD3ToVk.cjs.map +1 -0
- package/dist/replay-0zAJv9T3.js +338 -0
- package/dist/replay-0zAJv9T3.js.map +1 -0
- package/dist/replay-DomJpXqW.cjs +2 -0
- package/dist/replay-DomJpXqW.cjs.map +1 -0
- package/dist/{reports-Dk2YhKIh.cjs → reports-BsbqmP8h.cjs} +2 -2
- package/dist/reports-BsbqmP8h.cjs.map +1 -0
- package/dist/{reports-TA-zInnq.js → reports-BuXekPOS.js} +3 -3
- package/dist/reports-BuXekPOS.js.map +1 -0
- package/dist/{resource-timing-BLv3EA2A.js → resource-timing-CXGHwFRD.js} +4 -4
- package/dist/resource-timing-CXGHwFRD.js.map +1 -0
- package/dist/{resource-timing-Cysw1S1f.cjs → resource-timing-DkycFGDa.cjs} +2 -2
- package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
- package/dist/{sampling-Ckh2yW9k.cjs → sampling-Dd0wllyq.cjs} +2 -2
- package/dist/sampling-Dd0wllyq.cjs.map +1 -0
- package/dist/{sampling-C4VV-1MS.js → sampling-UUDbi3K0.js} +9 -9
- package/dist/sampling-UUDbi3K0.js.map +1 -0
- package/dist/{sanitize-6ymPlVvP.js → sanitize-CNmsD9r3.js} +2 -2
- package/dist/sanitize-CNmsD9r3.js.map +1 -0
- package/dist/{sanitize-BAWzkZt0.cjs → sanitize-ChLn97Ch.cjs} +2 -2
- package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
- package/dist/{select-ZF4by-lF.cjs → select-CTk-K5mG.cjs} +3 -3
- package/dist/select-CTk-K5mG.cjs.map +1 -0
- package/dist/{select-xtQaenIi.js → select-DPv_j6wq.js} +61 -61
- package/dist/select-DPv_j6wq.js.map +1 -0
- package/dist/{sender-CiMHC9YG.js → sender-15zEsZpr.js} +61 -60
- package/dist/sender-15zEsZpr.js.map +1 -0
- package/dist/sender-Bfpv9tad.cjs +2 -0
- package/dist/sender-Bfpv9tad.cjs.map +1 -0
- package/dist/storage/context-storage.d.ts +34 -33
- package/dist/storage/emergency-queue.d.ts +9 -9
- package/dist/storage/eviction.d.ts +12 -12
- package/dist/storage/factory.d.ts +8 -7
- package/dist/storage/gap.d.ts +6 -6
- package/dist/storage/idb-driver.d.ts +31 -32
- package/dist/storage/indexeddb-storage.d.ts +26 -27
- package/dist/storage/keys.d.ts +7 -7
- package/dist/storage/local-storage.d.ts +38 -38
- package/dist/storage/memory-storage.d.ts +21 -22
- package/dist/storage/persistence.d.ts +1 -1
- package/dist/storage-BA9RqRO-.cjs.map +1 -1
- package/dist/storage-DZwed89z.js.map +1 -1
- package/dist/{storm-VR024_QN.js → storm-BTSNTIWI.js} +2 -2
- package/dist/storm-BTSNTIWI.js.map +1 -0
- package/dist/{storm-CYi9Swpx.cjs → storm-D0_qZOEg.cjs} +2 -2
- package/dist/storm-D0_qZOEg.cjs.map +1 -0
- package/dist/transport/compression.d.ts +2 -2
- package/dist/transport/errors.d.ts +7 -7
- package/dist/transport/exit-flush.d.ts +39 -39
- package/dist/transport/headers.d.ts +2 -2
- package/dist/transport/http-transport.d.ts +28 -27
- package/dist/transport/memory-transport.d.ts +6 -6
- package/dist/transport/retry-engine.d.ts +35 -34
- package/dist/transport/serializers/ecs.d.ts +1 -1
- package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
- package/dist/transport/serializers/otlp-traces.d.ts +1 -1
- package/dist/transport/serializers/otlp.d.ts +16 -16
- package/dist/transport/serializers/select.d.ts +7 -7
- package/dist/transport/status-transport.d.ts +20 -20
- package/dist/transport/worker-protocol.d.ts +3 -3
- package/dist/types-BAerHgCq.js.map +1 -1
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-DFUN57wY.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
- package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
- package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-Cob_jyTv.js} +2 -2
- package/dist/unclean-exit-Cob_jyTv.js.map +1 -0
- package/dist/unref-CU9Nyz_9.cjs +2 -0
- package/dist/unref-CU9Nyz_9.cjs.map +1 -0
- package/dist/unref-DgHPQeWv.js +7 -0
- package/dist/unref-DgHPQeWv.js.map +1 -0
- package/dist/user-timing-CdYqx3PF.cjs +2 -0
- package/dist/user-timing-CdYqx3PF.cjs.map +1 -0
- package/dist/{user-timing-_jZIhDKI.js → user-timing-DgHubxCI.js} +5 -3
- package/dist/user-timing-DgHubxCI.js.map +1 -0
- package/dist/utils/console.d.ts +2 -2
- package/dist/utils/deadline.d.ts +4 -4
- package/dist/utils/error-like.d.ts +7 -7
- package/dist/utils/fixed-window.d.ts +9 -8
- package/dist/utils/global-scope.d.ts +8 -8
- package/dist/utils/guards.d.ts +2 -2
- package/dist/utils/identity.d.ts +17 -17
- package/dist/utils/library-console.d.ts +4 -4
- package/dist/utils/library-request.d.ts +10 -10
- package/dist/utils/lock.d.ts +10 -9
- package/dist/utils/openfin.d.ts +5 -5
- package/dist/utils/patch.d.ts +6 -6
- package/dist/utils/platform.d.ts +13 -11
- package/dist/utils/sanitize.d.ts +4 -4
- package/dist/utils/timer.d.ts +1 -1
- package/dist/utils/tracing.d.ts +38 -38
- package/dist/utils/unref.d.ts +3 -3
- package/dist/{web-socket-BWUoqBh8.cjs → web-socket-BTuvYoJI.cjs} +2 -2
- package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
- package/dist/{web-socket-CV7yIMnm.js → web-socket-DthJuSAg.js} +4 -4
- package/dist/web-socket-DthJuSAg.js.map +1 -0
- package/dist/web-vitals-Ch5BpDmo.cjs +2 -0
- package/dist/web-vitals-Ch5BpDmo.cjs.map +1 -0
- package/dist/web-vitals-CsGCWnUr.js +77 -0
- package/dist/web-vitals-CsGCWnUr.js.map +1 -0
- package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-B0_8rWy5.js} +4 -4
- package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
- package/dist/{worker-protocol-Bai7GAIA.cjs → worker-protocol-BjzFORfq.cjs} +2 -2
- package/dist/worker-protocol-BjzFORfq.cjs.map +1 -0
- package/dist/worker-server-4en-Lt-3.cjs +2 -0
- package/dist/worker-server-4en-Lt-3.cjs.map +1 -0
- package/dist/{worker-server-Dp5HYm4b.js → worker-server-Cne9MX9I.js} +8 -8
- package/dist/{worker-server-Dp5HYm4b.js.map → worker-server-Cne9MX9I.js.map} +1 -1
- package/dist/worker-transport-B-GF4Aqn.cjs +2 -0
- package/dist/worker-transport-B-GF4Aqn.cjs.map +1 -0
- package/dist/{worker-transport-D6jtgpqN.js → worker-transport-C3SjJAEC.js} +62 -61
- package/dist/worker-transport-C3SjJAEC.js.map +1 -0
- package/package.json +8 -2
- package/dist/batch-C8OcWR2L.cjs.map +0 -1
- package/dist/batch-CL9uWYY3.js.map +0 -1
- package/dist/bus-BZ0GldpT.js.map +0 -1
- package/dist/bus-VWlmM5xs.cjs +0 -2
- package/dist/bus-VWlmM5xs.cjs.map +0 -1
- package/dist/console-BPZCuSLc.cjs.map +0 -1
- package/dist/console-BeCF7n59.js.map +0 -1
- package/dist/constants-DqKJH_MP.cjs +0 -2
- package/dist/constants-DqKJH_MP.cjs.map +0 -1
- package/dist/constants-zyrqveN4.js +0 -304
- package/dist/constants-zyrqveN4.js.map +0 -1
- package/dist/deadline-BOjOxNHj.js.map +0 -1
- package/dist/deadline-XSnm95pg.cjs +0 -2
- package/dist/deadline-XSnm95pg.cjs.map +0 -1
- package/dist/debug-bundle-BzJNpbF0.cjs +0 -2
- package/dist/debug-bundle-BzJNpbF0.cjs.map +0 -1
- package/dist/debug-bundle-C7UkHZ-q.js.map +0 -1
- package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
- package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
- package/dist/errors-Dh7kef0i.js.map +0 -1
- package/dist/errors-tfEr48bS.cjs.map +0 -1
- package/dist/factory-BonqI3NL.js.map +0 -1
- package/dist/factory-CJXVYp0R.cjs.map +0 -1
- package/dist/identity-Cxgj6pZX.cjs.map +0 -1
- package/dist/identity-DT5VmvXy.js.map +0 -1
- package/dist/indexeddb-storage-BJVtiQKm.js.map +0 -1
- package/dist/indexeddb-storage-CIoW21Xd.cjs.map +0 -1
- package/dist/interactions-DTgKy_6K.js.map +0 -1
- package/dist/interactions-fEN6FbVo.cjs.map +0 -1
- package/dist/journey-CuJrHzEg.js.map +0 -1
- package/dist/journey-pffMVMfa.cjs +0 -2
- package/dist/journey-pffMVMfa.cjs.map +0 -1
- package/dist/library-console-C1m6g1BR.js.map +0 -1
- package/dist/library-console-D2GY9Or6.cjs.map +0 -1
- package/dist/library-request-1BX_UlaX.cjs.map +0 -1
- package/dist/library-request-BQBT9N9Q.js.map +0 -1
- package/dist/lifecycle-2EtUaRpo.cjs.map +0 -1
- package/dist/lifecycle-BaKx_-32.js.map +0 -1
- package/dist/log-record-CAoGBBf3.js.map +0 -1
- package/dist/log-record-i9zOTkpQ.cjs.map +0 -1
- package/dist/long-frames-BVg4i5SC.cjs +0 -2
- package/dist/long-frames-BVg4i5SC.cjs.map +0 -1
- package/dist/long-frames-Czk7IupC.js.map +0 -1
- package/dist/network-DBNwApoF.js.map +0 -1
- package/dist/network-xbbuvG_6.cjs.map +0 -1
- package/dist/otlp-BDvFrLnc.cjs +0 -2
- package/dist/otlp-BDvFrLnc.cjs.map +0 -1
- package/dist/otlp-BTJdIa6F.js.map +0 -1
- package/dist/platform-C2Ez5kDc.cjs.map +0 -1
- package/dist/platform-DkcuXwe-.js.map +0 -1
- package/dist/remote-rules-Cfb4K-Nl.js.map +0 -1
- package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
- package/dist/reports-Dk2YhKIh.cjs.map +0 -1
- package/dist/reports-TA-zInnq.js.map +0 -1
- package/dist/resource-timing-BLv3EA2A.js.map +0 -1
- package/dist/resource-timing-Cysw1S1f.cjs.map +0 -1
- package/dist/sampling-C4VV-1MS.js.map +0 -1
- package/dist/sampling-Ckh2yW9k.cjs.map +0 -1
- package/dist/sanitize-6ymPlVvP.js.map +0 -1
- package/dist/sanitize-BAWzkZt0.cjs.map +0 -1
- package/dist/select-ZF4by-lF.cjs.map +0 -1
- package/dist/select-xtQaenIi.js.map +0 -1
- package/dist/sender-CiMHC9YG.js.map +0 -1
- package/dist/sender-D5wBoXA8.cjs +0 -2
- package/dist/sender-D5wBoXA8.cjs.map +0 -1
- package/dist/storm-CYi9Swpx.cjs.map +0 -1
- package/dist/storm-VR024_QN.js.map +0 -1
- package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
- package/dist/unclean-exit-DFUN57wY.cjs.map +0 -1
- package/dist/user-timing-C9kfRq3J.cjs +0 -2
- package/dist/user-timing-C9kfRq3J.cjs.map +0 -1
- package/dist/user-timing-_jZIhDKI.js.map +0 -1
- package/dist/web-socket-BWUoqBh8.cjs.map +0 -1
- package/dist/web-socket-CV7yIMnm.js.map +0 -1
- package/dist/web-vitals-Bq4WFHQo.js +0 -52
- package/dist/web-vitals-Bq4WFHQo.js.map +0 -1
- package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
- package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
- package/dist/worker-protocol-Bai7GAIA.cjs.map +0 -1
- package/dist/worker-protocol-CrsdSDLn.js.map +0 -1
- package/dist/worker-server-BrIYkfoa.cjs +0 -2
- package/dist/worker-server-BrIYkfoa.cjs.map +0 -1
- package/dist/worker-transport-Bwej4N2e.cjs +0 -2
- package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
- package/dist/worker-transport-D6jtgpqN.js.map +0 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { B as e,
|
|
1
|
+
import { B as e, Fn as t, Qt as n, Y as r, Zt as i, ct as a, dt as o, ft as s, g as c, l, lt as u, ot as d, st as f, tt as p, ut as m } from "./constants-Bwl_YtQi.js";
|
|
2
2
|
import { storageLimits as h } from "./storage-DZwed89z.js";
|
|
3
|
-
import { clearEmergencyContext as g, drainEmergencyQueue as _, n as v, saveToEmergencyQueue as y, t as b } from "./emergency-queue-
|
|
4
|
-
import { createStorage as ee, storageName as
|
|
5
|
-
import { ContextStorage as
|
|
6
|
-
import { n as
|
|
7
|
-
import { i as T, r as E } from "./library-request-
|
|
3
|
+
import { clearEmergencyContext as g, drainEmergencyQueue as _, n as v, saveToEmergencyQueue as y, t as b } from "./emergency-queue-B9WZxanZ.js";
|
|
4
|
+
import { createStorage as ee, storageName as x } from "./factory-e9Qo3K0z.js";
|
|
5
|
+
import { ContextStorage as S } from "./context-storage-BzkoHzkQ.js";
|
|
6
|
+
import { n as C, t as w } from "./deadline-C4ccAuk5.js";
|
|
7
|
+
import { i as T, r as E } from "./library-request-nI6pvI6I.js";
|
|
8
8
|
import { t as D } from "./openfin-Bxelt0yg.js";
|
|
9
|
-
import { t as O } from "./sanitize-
|
|
10
|
-
import { n as
|
|
11
|
-
import { c as
|
|
12
|
-
import { r as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
9
|
+
import { t as O } from "./sanitize-CNmsD9r3.js";
|
|
10
|
+
import { n as te } from "./library-console-Dl_Ly6DQ.js";
|
|
11
|
+
import { c as k, n as A, r as j, s as M, t as N } from "./select-DPv_j6wq.js";
|
|
12
|
+
import { r as P } from "./platform-CVewe4wQ.js";
|
|
13
|
+
import { t as F } from "./unref-DgHPQeWv.js";
|
|
14
|
+
import { t as ne } from "./compression-AJJCMBOa.js";
|
|
15
|
+
import { a as re } from "./batch-BjQUwjA6.js";
|
|
16
|
+
import { r as ie } from "./log-record-DIA6McNr.js";
|
|
17
|
+
import { i as ae } from "./identity-BrQp_5J5.js";
|
|
18
|
+
import { t as oe } from "./sampling-UUDbi3K0.js";
|
|
19
|
+
import { n as I, t as L } from "./remote-rules-BJGDJGwA.js";
|
|
19
20
|
// src/storage/persistence.ts
|
|
20
21
|
async function R(e) {
|
|
21
22
|
let t = globalThis.navigator?.storage;
|
|
@@ -37,13 +38,13 @@ var B = class {
|
|
|
37
38
|
this.cancellation.abort();
|
|
38
39
|
}
|
|
39
40
|
assertContext(e) {
|
|
40
|
-
if (this.cancellation.signal.aborted || this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) throw this.diagnostics.count("security.context_mismatch"), new
|
|
41
|
+
if (this.cancellation.signal.aborted || this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) throw this.diagnostics.count("security.context_mismatch"), new M("permanent", "The delivery context is inactive or does not match the batch.");
|
|
41
42
|
}
|
|
42
43
|
async untilCancelled(e) {
|
|
43
|
-
if (this.cancellation.signal.aborted) throw new
|
|
44
|
+
if (this.cancellation.signal.aborted) throw new M("permanent", "The delivery context retired.");
|
|
44
45
|
let t, n = new Promise((e, n) => {
|
|
45
46
|
t = () => {
|
|
46
|
-
n(new
|
|
47
|
+
n(new M("permanent", "The delivery context retired."));
|
|
47
48
|
}, this.cancellation.signal.addEventListener("abort", t, { once: !0 });
|
|
48
49
|
});
|
|
49
50
|
try {
|
|
@@ -62,13 +63,13 @@ var B = class {
|
|
|
62
63
|
this.config = e, this.diagnostics = t, this.onSampling = n, this.onLoss = r, this.onClock = i;
|
|
63
64
|
}
|
|
64
65
|
throttledForMs(e) {
|
|
65
|
-
return Math.max(0, this.throttledUntil[
|
|
66
|
+
return Math.max(0, this.throttledUntil[N(e, this.config)] - Date.now());
|
|
66
67
|
}
|
|
67
68
|
lastSendAt() {
|
|
68
69
|
return this.acceptedAt;
|
|
69
70
|
}
|
|
70
71
|
serialize(e) {
|
|
71
|
-
let t =
|
|
72
|
+
let t = j(this.config, e, this.diagnostics, "The serializer threw an error. The library dropped the batch.");
|
|
72
73
|
return t || this.onLoss("unserializable", e.records, [e.id]), t;
|
|
73
74
|
}
|
|
74
75
|
accept(e, t, n) {
|
|
@@ -82,18 +83,18 @@ var B = class {
|
|
|
82
83
|
let t = r.advice === void 0 ? "" : ` ${r.advice}`;
|
|
83
84
|
return this.diagnostics.report("transport.rejected_credentials", `The server returned ${i}.${t}`, {
|
|
84
85
|
status: e,
|
|
85
|
-
endpoint:
|
|
86
|
-
}), new
|
|
86
|
+
endpoint: A(n, this.config)
|
|
87
|
+
}), new M("permanent", `The server rejected the batch with ${i}.`, e);
|
|
87
88
|
}
|
|
88
|
-
if (e === 413) return new
|
|
89
|
+
if (e === 413) return new M("too_large", "The payload is too large.", e, void 0, r.maxBytes);
|
|
89
90
|
if (e === 429 || e === 503) {
|
|
90
91
|
let t = e === 429, i = r.retryAfterMs === void 0 ? void 0 : Math.min(r.retryAfterMs, this.config.delivery.retryMaxDelayMs);
|
|
91
|
-
return this.throttledUntil[n] = Date.now() + (i ?? this.config.delivery.retryBaseDelayMs), t && this.diagnostics.report("transport.throttled", "The server throttles the requests.", { retryAfterMs: i }), new
|
|
92
|
+
return this.throttledUntil[n] = Date.now() + (i ?? this.config.delivery.retryBaseDelayMs), t && this.diagnostics.report("transport.throttled", "The server throttles the requests.", { retryAfterMs: i }), new M("throttled", t ? "The server throttles the requests." : "The service is not available.", e, i);
|
|
92
93
|
}
|
|
93
|
-
return e === 408 || e >= 500 ? new
|
|
94
|
+
return e === 408 || e >= 500 ? new M("transient", `The server returned the error ${i}.`, e) : (this.diagnostics.report("transport.dropped_permanent", `The server rejected the batch with ${i}. The library dropped it.`, {
|
|
94
95
|
batchId: t,
|
|
95
96
|
status: e
|
|
96
|
-
}), new
|
|
97
|
+
}), new M("permanent", `The server rejected the batch with ${i}.`, e));
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
// src/transport/custom-transport.ts
|
|
@@ -123,16 +124,16 @@ var W = class extends B {
|
|
|
123
124
|
if (!t || e.records.length === 0) return;
|
|
124
125
|
let n = this.serialize(e);
|
|
125
126
|
if (!n) return;
|
|
126
|
-
let r =
|
|
127
|
+
let r = N(e, this.config), i = V(e, n, r);
|
|
127
128
|
i.signal = this.cancellation.signal;
|
|
128
129
|
let a;
|
|
129
130
|
try {
|
|
130
|
-
a = await
|
|
131
|
+
a = await C(this.untilCancelled(T(() => E(() => te(() => t(i))))), this.config.delivery.requestTimeoutMs);
|
|
131
132
|
} catch (e) {
|
|
132
133
|
let t = e instanceof w ? e : void 0, n = t ? "timeout" : "transient", r = t?.message ?? "The custom transport failed.";
|
|
133
|
-
throw new
|
|
134
|
+
throw new M(n, r, void 0, void 0, void 0, e);
|
|
134
135
|
}
|
|
135
|
-
if (this.assertContext(e), !H(a)) throw this.diagnostics.report("transport.http_error", "The custom transport returned no valid status. The library sends the batch again later.", { batchId: e.id }), new
|
|
136
|
+
if (this.assertContext(e), !H(a)) throw this.diagnostics.report("transport.http_error", "The custom transport returned no valid status. The library sends the batch again later.", { batchId: e.id }), new M("transient", "The custom transport returned no valid status.");
|
|
136
137
|
let { status: o } = a;
|
|
137
138
|
if (o >= 200 && o < 300) this.accept(r, a.sampling, a.date);
|
|
138
139
|
else throw this.reject(o, e.id, r, {
|
|
@@ -191,24 +192,24 @@ var W = class extends B {
|
|
|
191
192
|
if (r !== null) {
|
|
192
193
|
this.keepaliveBytes = 0;
|
|
193
194
|
for (let i of this.deps.drainForExit()) {
|
|
194
|
-
let a =
|
|
195
|
+
let a = N(i, t), o = a === "logs" ? r.href : A(a, t);
|
|
195
196
|
o ? this.flushBatch(i, e, new URL(o)) : n.count("record.dropped_no_destination");
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
flushBatch(t,
|
|
200
|
+
flushBatch(t, r, a) {
|
|
200
201
|
let { config: o } = this.deps;
|
|
201
202
|
if (t.records.length === 0) return;
|
|
202
|
-
let s = this.serialize(t,
|
|
203
|
+
let s = this.serialize(t, r);
|
|
203
204
|
if (!s) return;
|
|
204
205
|
if (O(s.body) > 6e4) {
|
|
205
206
|
this.park(t);
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
208
|
-
a.searchParams.set(
|
|
209
|
+
a.searchParams.set(i, t.id), a.searchParams.set(n, r);
|
|
209
210
|
let c = a.toString(), l = this.deps.exitHeaders();
|
|
210
211
|
if (l) {
|
|
211
|
-
this.keepaliveFetch(c, t, s.body,
|
|
212
|
+
this.keepaliveFetch(c, t, s.body, r, () => {
|
|
212
213
|
let e = new Headers(l);
|
|
213
214
|
return e.set(u, s.contentType), e.set(f, t.id), e;
|
|
214
215
|
});
|
|
@@ -219,7 +220,7 @@ var W = class extends B {
|
|
|
219
220
|
return;
|
|
220
221
|
}
|
|
221
222
|
let d = this.beacon(c, s.body);
|
|
222
|
-
d !== "sent" && (d === "refused" ? this.park(t) : this.keepaliveFetch(c, t, s.body,
|
|
223
|
+
d !== "sent" && (d === "refused" ? this.park(t) : this.keepaliveFetch(c, t, s.body, r, () => new Headers({ [u]: e })));
|
|
223
224
|
}
|
|
224
225
|
flushAlive() {
|
|
225
226
|
let { diagnostics: e } = this.deps, t = "The flush of the hidden document failed.";
|
|
@@ -234,7 +235,7 @@ var W = class extends B {
|
|
|
234
235
|
for (let i of this.deps.drainForExit()) {
|
|
235
236
|
let a = this.serialize(i, e);
|
|
236
237
|
if (!a) continue;
|
|
237
|
-
let o = V(i, a,
|
|
238
|
+
let o = V(i, a, N(i, n));
|
|
238
239
|
(t === void 0 || r.guard("transport.http_error", "The transportOnExit hook threw an error.", () => E(() => t(o))) !== !0) && this.park(i);
|
|
239
240
|
}
|
|
240
241
|
}
|
|
@@ -243,7 +244,7 @@ var W = class extends B {
|
|
|
243
244
|
t.storage === "memory" || t.storage === "none" ? r?.("not_stored", e.records, [e.id]) : y(e, n, r);
|
|
244
245
|
}
|
|
245
246
|
serialize(e, t) {
|
|
246
|
-
let n =
|
|
247
|
+
let n = j(this.deps.config, e, this.deps.diagnostics, `The ${t} exit flush could not serialize its batch.`);
|
|
247
248
|
return n || this.deps.onLoss?.("unserializable", e.records, [e.id]), n;
|
|
248
249
|
}
|
|
249
250
|
endpointUrl() {
|
|
@@ -298,7 +299,7 @@ function J(e) {
|
|
|
298
299
|
var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. The browser often blocks it. Forward the records to the platform document. As an alternative, issue the cookie with the Partitioned attribute.", X = class extends B {
|
|
299
300
|
async send(e, t) {
|
|
300
301
|
this.assertContext(e);
|
|
301
|
-
let { config: n } = this, r =
|
|
302
|
+
let { config: n } = this, r = N(e, n), i = A(r, n);
|
|
302
303
|
i ? e.records.length !== 0 && await this.post(e, r, i, t) : this.diagnostics.count("record.dropped_no_destination");
|
|
303
304
|
}
|
|
304
305
|
lastHeaders() {
|
|
@@ -313,7 +314,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
313
314
|
this.accept(t, e.get(s), e.get(m));
|
|
314
315
|
return;
|
|
315
316
|
}
|
|
316
|
-
let c = a.status, l =
|
|
317
|
+
let c = a.status, l = k(a.headers.get(o)), u = c === 413 ? await this.readMaxBytes(a) : void 0;
|
|
317
318
|
throw this.reject(c, e.id, t, {
|
|
318
319
|
retryAfterMs: l,
|
|
319
320
|
maxBytes: u,
|
|
@@ -333,14 +334,14 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
333
334
|
}
|
|
334
335
|
async before(e, t, n) {
|
|
335
336
|
try {
|
|
336
|
-
return await
|
|
337
|
+
return await C(this.untilCancelled(e), Math.max(0, t - Date.now()));
|
|
337
338
|
} catch {
|
|
338
|
-
throw this.cancellation.signal.aborted ? new
|
|
339
|
+
throw this.cancellation.signal.aborted ? new M("permanent", "The delivery context retired.") : this.timeout(n);
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
timeout(e) {
|
|
342
343
|
let t = `The request took longer than ${String(this.config.delivery.requestTimeoutMs)} ms.`;
|
|
343
|
-
return this.diagnostics.report("transport.timeout", t, { endpoint: e }), new
|
|
344
|
+
return this.diagnostics.report("transport.timeout", t, { endpoint: e }), new M("timeout", t);
|
|
344
345
|
}
|
|
345
346
|
async encodeBody(e) {
|
|
346
347
|
let { config: t } = this;
|
|
@@ -354,7 +355,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
354
355
|
let c = setTimeout(() => {
|
|
355
356
|
o.abort();
|
|
356
357
|
}, Math.max(0, r - Date.now()));
|
|
357
|
-
|
|
358
|
+
F(c);
|
|
358
359
|
try {
|
|
359
360
|
return await E(() => fetch(e, {
|
|
360
361
|
method: "POST",
|
|
@@ -367,7 +368,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
367
368
|
priority: i ? "auto" : a.delivery.priority
|
|
368
369
|
}));
|
|
369
370
|
} catch {
|
|
370
|
-
throw this.cancellation.signal.aborted ? new
|
|
371
|
+
throw this.cancellation.signal.aborted ? new M("permanent", "The delivery context retired.") : o.signal.aborted ? this.timeout(e) : new M(P() ? "transient" : "offline", "A network error occurred.");
|
|
371
372
|
} finally {
|
|
372
373
|
this.cancellation.signal.removeEventListener("abort", s), clearTimeout(c);
|
|
373
374
|
}
|
|
@@ -431,10 +432,10 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
431
432
|
let t = setTimeout(() => {
|
|
432
433
|
this.drain();
|
|
433
434
|
}, e);
|
|
434
|
-
this.timer = t,
|
|
435
|
+
this.timer = t, F(t);
|
|
435
436
|
}
|
|
436
437
|
bounded(e) {
|
|
437
|
-
return
|
|
438
|
+
return C(e, t);
|
|
438
439
|
}
|
|
439
440
|
clearTimer() {
|
|
440
441
|
this.timer !== null && (clearTimeout(this.timer), this.timer = null);
|
|
@@ -447,7 +448,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
447
448
|
if (!this.draining) {
|
|
448
449
|
this.draining = !0;
|
|
449
450
|
try {
|
|
450
|
-
let e = b(
|
|
451
|
+
let e = b(r, this.config.persistence.namespace);
|
|
451
452
|
await v(e, this.diagnostics, () => this.drainLocked()) !== !0 && this.schedule(this.config.delivery.retryIdleDelayMs);
|
|
452
453
|
} finally {
|
|
453
454
|
this.draining = !1;
|
|
@@ -456,13 +457,13 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
456
457
|
}
|
|
457
458
|
async drainLocked() {
|
|
458
459
|
try {
|
|
459
|
-
if (!
|
|
460
|
+
if (!P()) return this.schedule(this.config.delivery.retryIdleDelayMs), !0;
|
|
460
461
|
let e = await this.bounded(this.storage.take(this.batchesPerDrain ?? this.config.delivery.batchesPerDrain));
|
|
461
462
|
if (e.length === 0) return this.schedule(this.config.delivery.retryIdleDelayMs), !0;
|
|
462
463
|
let t = /* @__PURE__ */ new Set(), n = 0;
|
|
463
464
|
for (let r of e) {
|
|
464
465
|
if (this.stopped) return !0;
|
|
465
|
-
let e =
|
|
466
|
+
let e = N(r, this.config);
|
|
466
467
|
if (t.has(e)) continue;
|
|
467
468
|
let i = await this.deliver(r);
|
|
468
469
|
if (i === "stop") return !0;
|
|
@@ -482,7 +483,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
482
483
|
return await this.transport.send(e), await this.bounded(this.storage.remove(e.id)), this.attempt = 0, "next";
|
|
483
484
|
} catch (t) {
|
|
484
485
|
if (this.stopped) return "stop";
|
|
485
|
-
let n = t instanceof
|
|
486
|
+
let n = t instanceof M ? t : void 0;
|
|
486
487
|
return n?.kind === "permanent" || n?.kind === "too_large" ? (await this.replaceStored(e, t), "next") : n?.kind === "offline" ? (this.schedule(this.config.delivery.retryIdleDelayMs), "stop") : n?.kind === "throttled" ? (this.attempt++, n.retryAfterMs ?? this.backoffMs()) : (await this.bounded(this.storage.bumpAttempts(e.id, e.attempts + 1)), this.attempt++, n?.retryAfterMs ?? this.backoffMs());
|
|
487
488
|
}
|
|
488
489
|
}
|
|
@@ -492,7 +493,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
|
|
|
492
493
|
for (let e of n) await this.bounded(this.storage.save(e));
|
|
493
494
|
}
|
|
494
495
|
toStorable(e, t) {
|
|
495
|
-
let n = t instanceof
|
|
496
|
+
let n = t instanceof M ? t : void 0;
|
|
496
497
|
if (n?.kind === "permanent") return this.onLoss("rejected", e.records, [e.id]), [];
|
|
497
498
|
if (n?.kind !== "too_large") return [e];
|
|
498
499
|
let r = re(e, this.diagnostics);
|
|
@@ -541,7 +542,7 @@ var $ = class {
|
|
|
541
542
|
let e = setTimeout(() => {
|
|
542
543
|
this.timer = null, this.onFlush(this);
|
|
543
544
|
}, this.options.flushIntervalMs);
|
|
544
|
-
this.timer = e,
|
|
545
|
+
this.timer = e, F(e);
|
|
545
546
|
}
|
|
546
547
|
clearTimer() {
|
|
547
548
|
this.timer !== null && (clearTimeout(this.timer), this.timer = null);
|
|
@@ -742,7 +743,7 @@ var $ = class {
|
|
|
742
743
|
}
|
|
743
744
|
async store(e) {
|
|
744
745
|
await this.diagnostics.guardAsync("storage.degraded", "The library could not store an undelivered batch.", async () => {
|
|
745
|
-
await
|
|
746
|
+
await C(this.storage.save(e), t), this.retry.nudge();
|
|
746
747
|
});
|
|
747
748
|
}
|
|
748
749
|
}, ue = class e {
|
|
@@ -758,14 +759,14 @@ var $ = class {
|
|
|
758
759
|
this.storage = e, this.retry = t, this.pipeline = n, this.exitFlush = r, this.diagnostics = i, this.transport = a;
|
|
759
760
|
}
|
|
760
761
|
static async create(t) {
|
|
761
|
-
let { config: n, diagnostics: r } = t, i = t.storage ?? await ee(n.storage,
|
|
762
|
+
let { config: n, diagnostics: r } = t, i = t.storage ?? await ee(n.storage, x(n.persistence.namespace), h(n.retention), r, t.onGap, n.persistence.namespace);
|
|
762
763
|
t.onStorage?.(i), n.persistence.requestPersistent && (i.name === "indexeddb" || i.name === "localstorage") && (t.onPersistence?.("pending"), R(r).then(t.onPersistence));
|
|
763
|
-
let a = new
|
|
764
|
+
let a = new S(i, n.securityContext, n.persistence.namespace), o = (e) => {
|
|
764
765
|
let i = I(e, r);
|
|
765
766
|
i && L(t.remote, n, i);
|
|
766
767
|
}, s, c = (e) => {
|
|
767
768
|
s = e;
|
|
768
|
-
}, { onLoss: l } = t, u = !n.transport && n.transportWorker ? await r.guardAsync("transport.http_error", "The transport worker module did not load. The library uses HTTP.", async () => (await import("./worker-transport-
|
|
769
|
+
}, { onLoss: l } = t, u = !n.transport && n.transportWorker ? await r.guardAsync("transport.http_error", "The transport worker module did not load. The library uses HTTP.", async () => (await import("./worker-transport-C3SjJAEC.js")).createWorkerTransport(n, r, o, l, c)) : void 0, d = n.transport !== void 0 || u !== void 0 ? void 0 : new X(n, r, o, l, c), f = u?.transport ?? d ?? new W(n, r, o, l, c), p = new ce(a, f, r, n, void 0, l), { batching: m } = n, g = new le(f, a, p, r, {
|
|
769
770
|
logs: {
|
|
770
771
|
flushIntervalMs: m.logFlushIntervalMs,
|
|
771
772
|
batchSize: m.logBatchSize
|
|
@@ -818,7 +819,7 @@ var $ = class {
|
|
|
818
819
|
}
|
|
819
820
|
async retire(e, t, n) {
|
|
820
821
|
if (this.retired = !0, this.exitFlush.uninstall(), this.retry.stop(), e === "flush") try {
|
|
821
|
-
await
|
|
822
|
+
await C(Promise.all([this.flush(), this.retry.flush()]), t);
|
|
822
823
|
} catch (e) {
|
|
823
824
|
this.diagnostics.report("transport.timeout", "The flush of the old security context did not complete before its time limit.", void 0, e);
|
|
824
825
|
}
|
|
@@ -853,4 +854,4 @@ var $ = class {
|
|
|
853
854
|
};
|
|
854
855
|
export { ue as Sender, B as a, q as i, X as n, J as r, Y as t };
|
|
855
856
|
|
|
856
|
-
//# sourceMappingURL=sender-
|
|
857
|
+
//# sourceMappingURL=sender-15zEsZpr.js.map
|