@utk09/ui-observability 0.10.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 +77 -1
- package/README.md +323 -113
- package/bin/uiobs.mjs +1 -1
- package/dist/{batch-BMdT9mKm.js → batch-BjQUwjA6.js} +5 -6
- package/dist/batch-BjQUwjA6.js.map +1 -0
- package/dist/{batch-BHXypM1j.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-DKfBaica.js → bus-ecxUNTja.js} +105 -109
- 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-CLz_PvFn.cjs +2 -0
- package/dist/console-CLz_PvFn.cjs.map +1 -0
- package/dist/{console-BX_0UCV7.js → console-cwgHKXvM.js} +14 -15
- 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-DxZf4Gfh.js → context-storage-BzkoHzkQ.js} +2 -3
- package/dist/context-storage-BzkoHzkQ.js.map +1 -0
- 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-5_PecIl5.js → deadline-C4ccAuk5.js} +4 -9
- 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-CZZ6SQQh.js → debug-bundle-BOdYmCeV.js} +12 -6
- 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 +148 -54
- package/dist/doctor.js.map +1 -1
- package/dist/{emergency-queue-Cs8-i2xw.js → emergency-queue-B9WZxanZ.js} +15 -17
- package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
- package/dist/{emergency-queue-CQ-9acZf.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
- package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
- package/dist/{error-like-Ywo5uRHo.js → error-like-B11pB4aL.js} +2 -3
- package/dist/error-like-B11pB4aL.js.map +1 -0
- package/dist/error-like-gGRx2s36.cjs.map +1 -1
- package/dist/{errors-oyxrpHjY.js → errors-D6bwgJtO.js} +5 -6
- package/dist/errors-D6bwgJtO.js.map +1 -0
- package/dist/{errors-CigX45pL.cjs → errors-DCOCRdSi.cjs} +2 -2
- package/dist/errors-DCOCRdSi.cjs.map +1 -0
- package/dist/{factory-BkjNzPYL.cjs → factory-DLFDjdLv.cjs} +2 -2
- package/dist/factory-DLFDjdLv.cjs.map +1 -0
- package/dist/{factory-Bgsky_e0.js → factory-e9Qo3K0z.js} +18 -22
- package/dist/factory-e9Qo3K0z.js.map +1 -0
- package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
- package/dist/{fixed-window-CtaFHanJ.js → fixed-window-Dq3MLUUv.js} +2 -3
- package/dist/fixed-window-Dq3MLUUv.js.map +1 -0
- package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
- package/dist/{global-scope-dp2jADRl.js → global-scope-D9I8s-oN.js} +2 -3
- package/dist/global-scope-D9I8s-oN.js.map +1 -0
- package/dist/{guards-CpvOpJL6.js → guards-Cidk71ME.js} +2 -3
- package/dist/guards-Cidk71ME.js.map +1 -0
- package/dist/guards-nJ70syPt.cjs.map +1 -1
- package/dist/{identity-BMlKGHUM.cjs → identity-BlvlgjrU.cjs} +2 -2
- package/dist/identity-BlvlgjrU.cjs.map +1 -0
- package/dist/{identity-DOaHdfhT.js → identity-BrQp_5J5.js} +20 -21
- 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 +797 -659
- package/dist/index.js.map +1 -1
- package/dist/{indexeddb-storage-CaXGJqDD.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
- package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
- package/dist/{indexeddb-storage-D-lUW_5P.js → indexeddb-storage-DLXQzAGh.js} +5 -6
- package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
- package/dist/{interactions-CqDNrtIR.js → interactions-B6z2I4tU.js} +10 -11
- package/dist/interactions-B6z2I4tU.js.map +1 -0
- package/dist/{interactions-8DgxtmgO.cjs → interactions-P6pz08Jn.cjs} +2 -2
- package/dist/interactions-P6pz08Jn.cjs.map +1 -0
- package/dist/{journey-DgIjhrIc.js → journey-35yCMNFo.js} +21 -21
- 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-D5r_GH9q.js → keys-BU9j5YqW.js} +2 -3
- package/dist/keys-BU9j5YqW.js.map +1 -0
- package/dist/{library-console-g_VU-wzP.cjs → library-console-BFWEuQsl.cjs} +2 -2
- package/dist/library-console-BFWEuQsl.cjs.map +1 -0
- package/dist/library-console-Dl_Ly6DQ.js +13 -0
- package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
- package/dist/{library-request-FQaiWjCP.cjs → library-request-Da-CHKzT.cjs} +2 -2
- package/dist/library-request-Da-CHKzT.cjs.map +1 -0
- package/dist/{library-request-CyC-9IOk.js → library-request-nI6pvI6I.js} +4 -5
- package/dist/library-request-nI6pvI6I.js.map +1 -0
- package/dist/{lifecycle-C2z_d8OX.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
- package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
- package/dist/{lifecycle-BLC4VU7c.js → lifecycle-CZ6RRXc6.js} +3 -4
- package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
- package/dist/{log-record-DKvo-B-d.cjs → log-record-D7bA1RPb.cjs} +2 -2
- package/dist/log-record-D7bA1RPb.cjs.map +1 -0
- package/dist/{log-record-CndanC-p.js → log-record-DIA6McNr.js} +3 -4
- package/dist/log-record-DIA6McNr.js.map +1 -0
- package/dist/{long-frames-BQef9rXR.js → long-frames-430_85Da.js} +9 -8
- 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-CvkvYzRU.js → network-C7SkLf4v.js} +30 -32
- package/dist/network-C7SkLf4v.js.map +1 -0
- package/dist/{network-CqnQOqon.cjs → network-pEX3PAJv.cjs} +2 -2
- package/dist/network-pEX3PAJv.cjs.map +1 -0
- package/dist/openfin-Bxelt0yg.js +7 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -0
- 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-CYIL7MOE.js → otlp-COq033e3.js} +26 -35
- package/dist/otlp-COq033e3.js.map +1 -0
- package/dist/patch-BX8KrPCT.cjs.map +1 -1
- package/dist/{patch-CCWfuEY7.js → patch-UdPz1ea8.js} +2 -3
- package/dist/patch-UdPz1ea8.js.map +1 -0
- package/dist/{platform-KMWkoI-v.cjs → platform-12uR7kBQ.cjs} +2 -2
- package/dist/platform-12uR7kBQ.cjs.map +1 -0
- package/dist/{platform-wcAkkv9F.js → platform-CVewe4wQ.js} +9 -10
- 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-CH_7PphT.js → remote-rules-BJGDJGwA.js} +29 -30
- package/dist/remote-rules-BJGDJGwA.js.map +1 -0
- package/dist/{remote-rules-BL8km4xk.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-Bh_-KpZ2.cjs → reports-BsbqmP8h.cjs} +2 -2
- package/dist/reports-BsbqmP8h.cjs.map +1 -0
- package/dist/{reports-BOKyY3_A.js → reports-BuXekPOS.js} +4 -5
- package/dist/reports-BuXekPOS.js.map +1 -0
- package/dist/{resource-timing-BROnEJ0E.js → resource-timing-CXGHwFRD.js} +6 -7
- package/dist/resource-timing-CXGHwFRD.js.map +1 -0
- package/dist/{resource-timing-CbgwNpog.cjs → resource-timing-DkycFGDa.cjs} +2 -2
- package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
- package/dist/{sampling-ECGVYiDD.cjs → sampling-Dd0wllyq.cjs} +2 -2
- package/dist/sampling-Dd0wllyq.cjs.map +1 -0
- package/dist/{sampling-BLO_pcV4.js → sampling-UUDbi3K0.js} +11 -12
- package/dist/sampling-UUDbi3K0.js.map +1 -0
- package/dist/{sanitize-DS0G4_ea.js → sanitize-CNmsD9r3.js} +4 -5
- package/dist/sanitize-CNmsD9r3.js.map +1 -0
- package/dist/{sanitize-Bsn8HQWC.cjs → sanitize-ChLn97Ch.cjs} +2 -2
- package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
- package/dist/{select-DWO0-w8_.cjs → select-CTk-K5mG.cjs} +3 -3
- package/dist/select-CTk-K5mG.cjs.map +1 -0
- package/dist/{select-wqt9Wxio.js → select-DPv_j6wq.js} +64 -67
- package/dist/select-DPv_j6wq.js.map +1 -0
- package/dist/{sender-BkAVt-Rq.js → sender-15zEsZpr.js} +98 -101
- 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-w7Tslvlq.js → storage-DZwed89z.js} +2 -3
- package/dist/storage-DZwed89z.js.map +1 -0
- package/dist/{storm-DD4cUkoL.js → storm-BTSNTIWI.js} +4 -5
- package/dist/storm-BTSNTIWI.js.map +1 -0
- package/dist/{storm-DCEsqViG.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-BR9t_w28.js → types-BAerHgCq.js} +2 -3
- package/dist/types-BAerHgCq.js.map +1 -0
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-CwdpbUDg.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
- package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
- package/dist/{unclean-exit-BYZ5yaSI.js → unclean-exit-Cob_jyTv.js} +3 -4
- 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-Di2ra5DB.js → user-timing-DgHubxCI.js} +7 -6
- 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-DwBNhgre.cjs → web-socket-BTuvYoJI.cjs} +2 -2
- package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
- package/dist/{web-socket-B-5qqPy7.js → web-socket-DthJuSAg.js} +14 -15
- 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-0HMf4-kY.js → worker-protocol-B0_8rWy5.js} +6 -7
- package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
- package/dist/{worker-protocol-DXekoADQ.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-CKcmX5m5.js → worker-server-Cne9MX9I.js} +25 -26
- package/dist/{worker-server-CKcmX5m5.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-2220ghFZ.js → worker-transport-C3SjJAEC.js} +64 -65
- package/dist/worker-transport-C3SjJAEC.js.map +1 -0
- package/package.json +33 -41
- package/dist/batch-BHXypM1j.cjs.map +0 -1
- package/dist/batch-BMdT9mKm.js.map +0 -1
- package/dist/bus-DKfBaica.js.map +0 -1
- package/dist/bus-Dea9rVhy.cjs +0 -2
- package/dist/bus-Dea9rVhy.cjs.map +0 -1
- package/dist/console-BX_0UCV7.js.map +0 -1
- package/dist/console-DZEcs7FL.cjs +0 -2
- package/dist/console-DZEcs7FL.cjs.map +0 -1
- package/dist/constants-CL0ZdI2f.cjs +0 -2
- package/dist/constants-CL0ZdI2f.cjs.map +0 -1
- package/dist/constants-CU60FG4w.js +0 -305
- package/dist/constants-CU60FG4w.js.map +0 -1
- package/dist/context-storage-DxZf4Gfh.js.map +0 -1
- package/dist/deadline-5_PecIl5.js.map +0 -1
- package/dist/deadline-XSnm95pg.cjs +0 -2
- package/dist/deadline-XSnm95pg.cjs.map +0 -1
- package/dist/debug-bundle-CZZ6SQQh.js.map +0 -1
- package/dist/debug-bundle-yRkrU1ny.cjs +0 -2
- package/dist/debug-bundle-yRkrU1ny.cjs.map +0 -1
- package/dist/emergency-queue-CQ-9acZf.cjs.map +0 -1
- package/dist/emergency-queue-Cs8-i2xw.js.map +0 -1
- package/dist/error-like-Ywo5uRHo.js.map +0 -1
- package/dist/errors-CigX45pL.cjs.map +0 -1
- package/dist/errors-oyxrpHjY.js.map +0 -1
- package/dist/factory-Bgsky_e0.js.map +0 -1
- package/dist/factory-BkjNzPYL.cjs.map +0 -1
- package/dist/fixed-window-CtaFHanJ.js.map +0 -1
- package/dist/global-scope-dp2jADRl.js.map +0 -1
- package/dist/guards-CpvOpJL6.js.map +0 -1
- package/dist/identity-BMlKGHUM.cjs.map +0 -1
- package/dist/identity-DOaHdfhT.js.map +0 -1
- package/dist/indexeddb-storage-CaXGJqDD.cjs.map +0 -1
- package/dist/indexeddb-storage-D-lUW_5P.js.map +0 -1
- package/dist/interactions-8DgxtmgO.cjs.map +0 -1
- package/dist/interactions-CqDNrtIR.js.map +0 -1
- package/dist/journey-5tcxEbnG.cjs +0 -2
- package/dist/journey-5tcxEbnG.cjs.map +0 -1
- package/dist/journey-DgIjhrIc.js.map +0 -1
- package/dist/keys-D5r_GH9q.js.map +0 -1
- package/dist/library-console-CabK2j2-.js +0 -14
- package/dist/library-console-CabK2j2-.js.map +0 -1
- package/dist/library-console-g_VU-wzP.cjs.map +0 -1
- package/dist/library-request-CyC-9IOk.js.map +0 -1
- package/dist/library-request-FQaiWjCP.cjs.map +0 -1
- package/dist/lifecycle-BLC4VU7c.js.map +0 -1
- package/dist/lifecycle-C2z_d8OX.cjs.map +0 -1
- package/dist/log-record-CndanC-p.js.map +0 -1
- package/dist/log-record-DKvo-B-d.cjs.map +0 -1
- package/dist/long-frames-BQef9rXR.js.map +0 -1
- package/dist/long-frames-CV5ZG2cx.cjs +0 -2
- package/dist/long-frames-CV5ZG2cx.cjs.map +0 -1
- package/dist/network-CqnQOqon.cjs.map +0 -1
- package/dist/network-CvkvYzRU.js.map +0 -1
- package/dist/openfin-BwEN0uj4.js +0 -8
- package/dist/openfin-BwEN0uj4.js.map +0 -1
- package/dist/otlp-CYIL7MOE.js.map +0 -1
- package/dist/otlp-RVbkNQRh.cjs +0 -2
- package/dist/otlp-RVbkNQRh.cjs.map +0 -1
- package/dist/patch-CCWfuEY7.js.map +0 -1
- package/dist/platform-KMWkoI-v.cjs.map +0 -1
- package/dist/platform-wcAkkv9F.js.map +0 -1
- package/dist/remote-rules-BL8km4xk.cjs.map +0 -1
- package/dist/remote-rules-CH_7PphT.js.map +0 -1
- package/dist/reports-BOKyY3_A.js.map +0 -1
- package/dist/reports-Bh_-KpZ2.cjs.map +0 -1
- package/dist/resource-timing-BROnEJ0E.js.map +0 -1
- package/dist/resource-timing-CbgwNpog.cjs.map +0 -1
- package/dist/sampling-BLO_pcV4.js.map +0 -1
- package/dist/sampling-ECGVYiDD.cjs.map +0 -1
- package/dist/sanitize-Bsn8HQWC.cjs.map +0 -1
- package/dist/sanitize-DS0G4_ea.js.map +0 -1
- package/dist/select-DWO0-w8_.cjs.map +0 -1
- package/dist/select-wqt9Wxio.js.map +0 -1
- package/dist/sender-BkAVt-Rq.js.map +0 -1
- package/dist/sender-D82PxlCY.cjs +0 -2
- package/dist/sender-D82PxlCY.cjs.map +0 -1
- package/dist/storage-w7Tslvlq.js.map +0 -1
- package/dist/storm-DCEsqViG.cjs.map +0 -1
- package/dist/storm-DD4cUkoL.js.map +0 -1
- package/dist/types-BR9t_w28.js.map +0 -1
- package/dist/unclean-exit-BYZ5yaSI.js.map +0 -1
- package/dist/unclean-exit-CwdpbUDg.cjs.map +0 -1
- package/dist/user-timing-C1kB3JEg.cjs +0 -2
- package/dist/user-timing-C1kB3JEg.cjs.map +0 -1
- package/dist/user-timing-Di2ra5DB.js.map +0 -1
- package/dist/web-socket-B-5qqPy7.js.map +0 -1
- package/dist/web-socket-DwBNhgre.cjs.map +0 -1
- package/dist/web-vitals-Bflr5jSA.js +0 -53
- package/dist/web-vitals-Bflr5jSA.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-0HMf4-kY.js.map +0 -1
- package/dist/worker-protocol-DXekoADQ.cjs.map +0 -1
- package/dist/worker-server-BQK5z2yl.cjs +0 -2
- package/dist/worker-server-BQK5z2yl.cjs.map +0 -1
- package/dist/worker-transport-2220ghFZ.js.map +0 -1
- package/dist/worker-transport-Dj2yCQN5.cjs +0 -2
- package/dist/worker-transport-Dj2yCQN5.cjs.map +0 -1
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
function g(
|
|
10
|
-
if (typeof
|
|
11
|
-
let
|
|
12
|
-
if (typeof
|
|
13
|
-
let i = (e) => typeof
|
|
14
|
-
switch (
|
|
15
|
-
case
|
|
16
|
-
case
|
|
17
|
-
case
|
|
18
|
-
case
|
|
19
|
-
case
|
|
20
|
-
case
|
|
21
|
-
case
|
|
22
|
-
case
|
|
23
|
-
case
|
|
1
|
+
import { Cn as e, M as t, Mn as n, O as r, an as i, j as a, k as o } from "./constants-Bwl_YtQi.js";
|
|
2
|
+
import { r as s } from "./journey-35yCMNFo.js";
|
|
3
|
+
import { n as c, t as l } from "./remote-rules-BJGDJGwA.js";
|
|
4
|
+
import { n as u, t as d } from "./log-record-DIA6McNr.js";
|
|
5
|
+
import { t as f } from "./openfin-Bxelt0yg.js";
|
|
6
|
+
import { n as p, t as m } from "./fixed-window-Dq3MLUUv.js";
|
|
7
|
+
import { t as h } from "./unref-DgHPQeWv.js";
|
|
8
|
+
// src/bus/validation.ts
|
|
9
|
+
function g(e) {
|
|
10
|
+
if (typeof e != "object" || !e) return !1;
|
|
11
|
+
let r = e;
|
|
12
|
+
if (typeof r.from != "string" || !r.from || typeof r.t != "string") return !1;
|
|
13
|
+
let i = (e) => typeof r[e] == "string";
|
|
14
|
+
switch (r.t) {
|
|
15
|
+
case t.hello:
|
|
16
|
+
case t.tab: return i("tabId");
|
|
17
|
+
case t.welcome: return i("to") && i("tabId") && (r.routingContextId === void 0 || i("routingContextId"));
|
|
18
|
+
case t.journeyRequest:
|
|
19
|
+
case t.samplingRequest: return !0;
|
|
20
|
+
case t.securityContext: return i("id") && r.id !== "";
|
|
21
|
+
case t.journey: return (r.to === void 0 || i("to")) && "journey" in r;
|
|
22
|
+
case t.sampling: return i("to") && "rules" in r;
|
|
23
|
+
case t.records: return Array.isArray(r.records) && (r.routingContextId === void 0 || i("routingContextId")) && r.records.every((e) => !u(e) || !d(e.severityText) ? !1 : !Array.isArray(e.attributes) && !Array.isArray(e.resource) && /^\d+$/.test(e.timeUnixNano) && (e.observedTimeUnixNano === void 0 || /^\d+$/.test(e.observedTimeUnixNano)) && typeof e.traceId == "string" && /^(?:[a-f\d]{32})?$/.test(e.traceId) && typeof e.spanId == "string" && /^(?:[a-f\d]{16})?$/.test(e.spanId) && Number.isInteger(e.traceFlags) && e.traceFlags >= 0 && e.traceFlags <= 255 && e.severityNumber === n[e.severityText]);
|
|
24
24
|
default: return !1;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
//#region src/models/bus.ts
|
|
27
|
+
// src/models/bus.ts
|
|
29
28
|
function _(e) {
|
|
30
29
|
return {
|
|
31
30
|
p: a,
|
|
@@ -39,9 +38,8 @@ function v(e) {
|
|
|
39
38
|
let n = t.m;
|
|
40
39
|
return typeof n.t == "string" ? n : null;
|
|
41
40
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var y = Symbol.for(i), b = "null";
|
|
41
|
+
// src/bus/links.ts
|
|
42
|
+
var y = Symbol.for(e), b = "null";
|
|
45
43
|
function x(e, t) {
|
|
46
44
|
return e === b ? `The bus ignored ${t} from a sandboxed frame. The frame has an opaque origin. Set bus.mode: "sender" in the frame. Add allow-same-origin to the sandbox attribute only for content that you trust.` : `The bus ignored ${t} from ${e}. If you own this origin, add it to bus.trustedOrigins.`;
|
|
47
45
|
}
|
|
@@ -183,7 +181,7 @@ function E(e, t, n) {
|
|
|
183
181
|
}) : null;
|
|
184
182
|
}
|
|
185
183
|
function D(e, t, n, r) {
|
|
186
|
-
let i =
|
|
184
|
+
let i = f()?.InterApplicationBus;
|
|
187
185
|
if (!i) return null;
|
|
188
186
|
if (!t) return r.report("openfin.unavailable", "OpenFin gives no application uuid. The InterApplicationBus link stays closed."), null;
|
|
189
187
|
let a = `${e}.${t}`;
|
|
@@ -241,8 +239,7 @@ function k(e, t, n) {
|
|
|
241
239
|
}
|
|
242
240
|
};
|
|
243
241
|
}
|
|
244
|
-
|
|
245
|
-
//#region src/bus/bus.ts
|
|
242
|
+
// src/bus/bus.ts
|
|
246
243
|
var A = {
|
|
247
244
|
timeoutMs: o,
|
|
248
245
|
maxAttempts: 3
|
|
@@ -262,9 +259,9 @@ var A = {
|
|
|
262
259
|
rates = /* @__PURE__ */ new WeakMap();
|
|
263
260
|
channelRates = /* @__PURE__ */ new Map();
|
|
264
261
|
directReplies = /* @__PURE__ */ new Map();
|
|
265
|
-
mayPost(
|
|
262
|
+
mayPost(e, n) {
|
|
266
263
|
let r = this.sources.get(n)?.permissions;
|
|
267
|
-
return r ?
|
|
264
|
+
return r ? e.t === t.journey ? r.includes("journey:read") : e.t === t.journeyRequest ? r.includes("journey:write") : e.t !== t.sampling || r.includes("sampling:read") : this.config.bus.sourcePolicy === "trusted-origin";
|
|
268
265
|
}
|
|
269
266
|
registerFrame(e, t) {
|
|
270
267
|
let n = typeof HTMLIFrameElement > "u" ? void 0 : HTMLIFrameElement, r = n && e instanceof n ? e.contentWindow : e;
|
|
@@ -285,13 +282,13 @@ var A = {
|
|
|
285
282
|
rotateContext() {
|
|
286
283
|
this.passContext(this.role === "sender");
|
|
287
284
|
}
|
|
288
|
-
passContext(
|
|
285
|
+
passContext(e) {
|
|
289
286
|
let n = {
|
|
290
|
-
t:
|
|
287
|
+
t: t.securityContext,
|
|
291
288
|
from: this.contextId,
|
|
292
289
|
id: this.config.securityContext.id
|
|
293
290
|
};
|
|
294
|
-
this.postOver("children", n), this.postOver("worker", n), this.postToDirectChildren(n),
|
|
291
|
+
this.postOver("children", n), this.postOver("worker", n), this.postToDirectChildren(n), e && this.postOver("openfin", n);
|
|
295
292
|
}
|
|
296
293
|
postToDirectChildren(e) {
|
|
297
294
|
for (let [t, n] of this.directReplies) {
|
|
@@ -347,25 +344,25 @@ var A = {
|
|
|
347
344
|
via: i ? n.kind : "none"
|
|
348
345
|
}), this.announce(), this.role;
|
|
349
346
|
}
|
|
350
|
-
sendRecords(
|
|
351
|
-
let { maxRecordsPerMessage: n, maxMessageBytes: r } = this.config.bus, i = new TextEncoder(), a = (e) => r ? i.encode(JSON.stringify(e)).length : 0, o = (
|
|
352
|
-
t:
|
|
347
|
+
sendRecords(e) {
|
|
348
|
+
let { maxRecordsPerMessage: n, maxMessageBytes: r } = this.config.bus, i = new TextEncoder(), a = (e) => r ? i.encode(JSON.stringify(e)).length : 0, o = (e) => ({
|
|
349
|
+
t: t.records,
|
|
353
350
|
from: this.contextId,
|
|
354
|
-
records:
|
|
351
|
+
records: e,
|
|
355
352
|
routingContextId: this.config.securityContext.id || void 0
|
|
356
353
|
}), s = a(o([])), c = [], l = s;
|
|
357
|
-
for (let
|
|
358
|
-
let
|
|
359
|
-
if (r && s +
|
|
354
|
+
for (let t of e) {
|
|
355
|
+
let e = a(t);
|
|
356
|
+
if (r && s + e > r) {
|
|
360
357
|
this.diagnostics.count("bus.rejected_message");
|
|
361
358
|
continue;
|
|
362
359
|
}
|
|
363
360
|
let i = +(c.length > 0);
|
|
364
|
-
(n && c.length >= n || r && l + i +
|
|
361
|
+
(n && c.length >= n || r && l + i + e > r) && (this.upstream?.post(o(c)), c = [], l = s), l += +(c.length > 0) + e, c.push(t);
|
|
365
362
|
}
|
|
366
363
|
c.length > 0 && this.upstream?.post(o(c));
|
|
367
364
|
}
|
|
368
|
-
acceptDirect(
|
|
365
|
+
acceptDirect(e, n, r) {
|
|
369
366
|
let i = {
|
|
370
367
|
link: "direct",
|
|
371
368
|
origin: "same-origin",
|
|
@@ -376,11 +373,11 @@ var A = {
|
|
|
376
373
|
n(e, i);
|
|
377
374
|
}
|
|
378
375
|
};
|
|
379
|
-
this.acceptsMessage(
|
|
380
|
-
t:
|
|
376
|
+
this.acceptsMessage(e, a, !0) && e.from !== this.contextId && (r && this.keepDirectReply(r, n), e.t === t.samplingRequest ? n(this.rulesAnswer(e.from), i) : (e.t === t.records && !this.awaitingWelcome && e.routingContextId !== this.config.securityContext.id && n({
|
|
377
|
+
t: t.securityContext,
|
|
381
378
|
from: this.contextId,
|
|
382
379
|
id: this.config.securityContext.id
|
|
383
|
-
}, i), this.routeMessage(
|
|
380
|
+
}, i), this.routeMessage(e, a)));
|
|
384
381
|
}
|
|
385
382
|
attachWorker(e, t = {}) {
|
|
386
383
|
let n = {
|
|
@@ -400,11 +397,11 @@ var A = {
|
|
|
400
397
|
t >= 0 && this.links.splice(t, 1), this.sources.get(e) === n && this.sources.delete(e);
|
|
401
398
|
};
|
|
402
399
|
}
|
|
403
|
-
broadcastJourney(
|
|
400
|
+
broadcastJourney(e) {
|
|
404
401
|
this.postJourney({
|
|
405
|
-
t:
|
|
402
|
+
t: t.journey,
|
|
406
403
|
from: this.contextId,
|
|
407
|
-
journey:
|
|
404
|
+
journey: e
|
|
408
405
|
});
|
|
409
406
|
}
|
|
410
407
|
destroy() {
|
|
@@ -435,7 +432,7 @@ var A = {
|
|
|
435
432
|
}
|
|
436
433
|
return r || this.diagnostics.count("bus.rejected_message"), r;
|
|
437
434
|
}
|
|
438
|
-
passesChecks(
|
|
435
|
+
passesChecks(e, n, r) {
|
|
439
436
|
let { bus: i } = this.config, a = typeof n.peer == "object" ? this.sources.get(n.peer) : void 0;
|
|
440
437
|
if (r && i.sourcePolicy === "registered" && !a) return !1;
|
|
441
438
|
let o = typeof n.peer == "object" ? n.peer : void 0, s = typeof n.peer == "string" ? n.peer : n.link, c = Date.now(), l = (o ? this.rates.get(o) : this.channelRates.get(s)) ?? {
|
|
@@ -444,72 +441,72 @@ var A = {
|
|
|
444
441
|
};
|
|
445
442
|
if (o) this.rates.set(o, l);
|
|
446
443
|
else {
|
|
447
|
-
for (let [e, t] of this.channelRates)
|
|
444
|
+
for (let [e, t] of this.channelRates) p(t, 1e3, c) && this.channelRates.delete(e);
|
|
448
445
|
if (i.maxTrackedSources && this.channelRates.size >= i.maxTrackedSources && !this.channelRates.has(s)) return !1;
|
|
449
446
|
this.channelRates.set(s, l);
|
|
450
447
|
}
|
|
451
|
-
if (!
|
|
452
|
-
let u = JSON.stringify(
|
|
448
|
+
if (!m(l, i.maxMessagesPerSecond || Infinity, 1e3)) return !1;
|
|
449
|
+
let u = JSON.stringify(e, (e, t) => {
|
|
453
450
|
if (i.validation === "strict" && typeof t == "number" && !Number.isFinite(t)) throw Error("Non-finite value");
|
|
454
451
|
return t;
|
|
455
452
|
});
|
|
456
|
-
if (i.maxMessageBytes && new TextEncoder().encode(u).length > i.maxMessageBytes || i.validation === "strict" && !g(
|
|
453
|
+
if (i.maxMessageBytes && new TextEncoder().encode(u).length > i.maxMessageBytes || i.validation === "strict" && !g(e) || e.t === t.records && i.maxRecordsPerMessage && e.records.length > i.maxRecordsPerMessage) return !1;
|
|
457
454
|
if (a) {
|
|
458
|
-
let n =
|
|
455
|
+
let n = e.t === t.records ? "records" : e.t === t.journey ? "journey:write" : e.t === t.journeyRequest ? "journey:read" : e.t === t.samplingRequest ? "sampling:read" : void 0;
|
|
459
456
|
if (n && !a.permissions?.includes(n)) return !1;
|
|
460
457
|
}
|
|
461
|
-
return r && (
|
|
458
|
+
return r && (e.t === t.sampling || e.t === t.securityContext) ? !1 : i.sourcePolicy !== "registered" || n.link !== "broadcast" || e.t !== t.records;
|
|
462
459
|
}
|
|
463
|
-
routeMessage(
|
|
464
|
-
if (
|
|
465
|
-
case
|
|
460
|
+
routeMessage(e, n) {
|
|
461
|
+
if (e.from !== this.contextId) switch (e.t) {
|
|
462
|
+
case t.hello:
|
|
466
463
|
this.canOwn(n.link) && this.answer(n, {
|
|
467
|
-
t:
|
|
464
|
+
t: t.welcome,
|
|
468
465
|
from: this.contextId,
|
|
469
|
-
to:
|
|
466
|
+
to: e.from,
|
|
470
467
|
tabId: this.tabId,
|
|
471
468
|
routingContextId: this.awaitingWelcome ? void 0 : this.config.securityContext.id || void 0
|
|
472
469
|
});
|
|
473
470
|
break;
|
|
474
|
-
case
|
|
475
|
-
if (
|
|
471
|
+
case t.welcome:
|
|
472
|
+
if (e.to !== this.contextId) break;
|
|
476
473
|
if (this.awaitingWelcome?.link === n.link || this.upstream?.kind === n.link && this.ownerId === null) {
|
|
477
|
-
this.ownerId =
|
|
478
|
-
let
|
|
479
|
-
if (
|
|
480
|
-
this.config.securityContext.id !==
|
|
474
|
+
this.ownerId = e.from, this.ownerPeer = n.peer;
|
|
475
|
+
let t = this.config.securityContext.id;
|
|
476
|
+
if (e.routingContextId && this.handlers.onSecurityContext?.(e.routingContextId) === !1) break;
|
|
477
|
+
this.config.securityContext.id !== t && this.passContext(!1), this.awaitingWelcome?.settle(!0);
|
|
481
478
|
}
|
|
482
479
|
break;
|
|
483
|
-
case
|
|
484
|
-
if (this.config.securityContext.isolation && this.config.securityContext.id &&
|
|
480
|
+
case t.records:
|
|
481
|
+
if (this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) {
|
|
485
482
|
this.diagnostics.count("security.context_mismatch");
|
|
486
483
|
break;
|
|
487
484
|
}
|
|
488
|
-
this.role === "sender" ? this.handlers.onRecords(
|
|
485
|
+
this.role === "sender" ? this.handlers.onRecords(e.records) : this.upstream && this.canRelay(n.link) && this.upstream.post(e);
|
|
489
486
|
break;
|
|
490
|
-
case
|
|
491
|
-
n.link === this.upstream?.kind && this.ownerId ===
|
|
487
|
+
case t.securityContext:
|
|
488
|
+
n.link === this.upstream?.kind && this.ownerId === e.from && this.ownerPeer === n.peer && this.handlers.onSecurityContext?.(e.id) !== !1 && this.rotateContext();
|
|
492
489
|
break;
|
|
493
|
-
case
|
|
494
|
-
this.acceptsJourney(
|
|
490
|
+
case t.journey:
|
|
491
|
+
this.acceptsJourney(e, n) && this.applyJourney(e.journey);
|
|
495
492
|
break;
|
|
496
|
-
case
|
|
493
|
+
case t.journeyRequest: {
|
|
497
494
|
let r = this.handlers.onJourneyRequest();
|
|
498
495
|
r && this.journeyLink(n.link) && this.answer(n, {
|
|
499
|
-
t:
|
|
496
|
+
t: t.journey,
|
|
500
497
|
from: this.contextId,
|
|
501
|
-
to:
|
|
498
|
+
to: e.from,
|
|
502
499
|
journey: r
|
|
503
500
|
});
|
|
504
501
|
break;
|
|
505
502
|
}
|
|
506
|
-
case
|
|
507
|
-
(this.role === "forwarder" ? n.link !== this.upstream?.kind : this.canOwn(n.link)) && this.answer(n, this.rulesAnswer(
|
|
503
|
+
case t.samplingRequest:
|
|
504
|
+
(this.role === "forwarder" ? n.link !== this.upstream?.kind : this.canOwn(n.link)) && this.answer(n, this.rulesAnswer(e.from));
|
|
508
505
|
break;
|
|
509
|
-
case
|
|
510
|
-
this.acceptsRules(
|
|
506
|
+
case t.sampling:
|
|
507
|
+
this.acceptsRules(e.to, n) && this.applyRules(e.rules);
|
|
511
508
|
break;
|
|
512
|
-
case
|
|
509
|
+
case t.tab: n.link === "broadcast" && e.tabId === this.tabId && this.contextId > e.from && this.handlers.onTabConflict();
|
|
513
510
|
}
|
|
514
511
|
}
|
|
515
512
|
answer(e, t) {
|
|
@@ -525,7 +522,7 @@ var A = {
|
|
|
525
522
|
let e = this.config.bus.openFinRole;
|
|
526
523
|
if (e !== "auto") return e === "provider";
|
|
527
524
|
if (this.platform.platform !== "openfin" && this.platform.platform !== "openfin_web") return !1;
|
|
528
|
-
let t =
|
|
525
|
+
let t = f()?.me;
|
|
529
526
|
return !t?.identity || t.isView ? !1 : !!(t.identity.name && t.identity.name === t.identity.uuid);
|
|
530
527
|
}
|
|
531
528
|
orphanPolicy() {
|
|
@@ -546,7 +543,7 @@ var A = {
|
|
|
546
543
|
let e = (e) => {
|
|
547
544
|
e && this.links.push(e);
|
|
548
545
|
};
|
|
549
|
-
this.platform.isWorker || this.ensureChildrenLink(), this.platform.isTopLevelDocument && e(E(
|
|
546
|
+
this.platform.isWorker || this.ensureChildrenLink(), this.platform.isTopLevelDocument && e(E(r, this.receive, this.diagnostics)), (this.platform.platform === "openfin" || this.platform.platform === "openfin_web") && e(this.ensureOpenFinLink());
|
|
550
547
|
}
|
|
551
548
|
ensureChildrenLink() {
|
|
552
549
|
if (this.links.some((e) => e.kind === "children")) return;
|
|
@@ -562,22 +559,22 @@ var A = {
|
|
|
562
559
|
e && this.links.push(e);
|
|
563
560
|
}
|
|
564
561
|
ensureOpenFinLink() {
|
|
565
|
-
return this.openFinLink ??= D(
|
|
562
|
+
return this.openFinLink ??= D(r, this.platform.openfinUuid, this.receive, this.diagnostics), this.openFinLink;
|
|
566
563
|
}
|
|
567
|
-
handshake(
|
|
564
|
+
handshake(e) {
|
|
568
565
|
return new Promise((n) => {
|
|
569
566
|
let r = !1, i = (e) => {
|
|
570
567
|
r || (r = !0, this.awaitingWelcome = null, clearTimeout(a), n(e));
|
|
571
568
|
};
|
|
572
569
|
this.awaitingWelcome = {
|
|
573
|
-
link:
|
|
570
|
+
link: e.kind,
|
|
574
571
|
settle: i
|
|
575
572
|
};
|
|
576
573
|
let a = setTimeout(() => {
|
|
577
574
|
i(!1);
|
|
578
575
|
}, this.handshakeOptions.timeoutMs);
|
|
579
|
-
|
|
580
|
-
t:
|
|
576
|
+
h(a), e.post({
|
|
577
|
+
t: t.hello,
|
|
581
578
|
from: this.contextId,
|
|
582
579
|
tabId: this.tabId
|
|
583
580
|
});
|
|
@@ -585,15 +582,15 @@ var A = {
|
|
|
585
582
|
}
|
|
586
583
|
announce() {
|
|
587
584
|
this.postOver("broadcast", {
|
|
588
|
-
t:
|
|
585
|
+
t: t.tab,
|
|
589
586
|
from: this.contextId,
|
|
590
587
|
tabId: this.tabId
|
|
591
588
|
}), this.upstream && this.ownerId === null && this.upstream.post({
|
|
592
|
-
t:
|
|
589
|
+
t: t.hello,
|
|
593
590
|
from: this.contextId,
|
|
594
591
|
tabId: this.tabId
|
|
595
592
|
}), this.postJourney({
|
|
596
|
-
t:
|
|
593
|
+
t: t.journeyRequest,
|
|
597
594
|
from: this.contextId
|
|
598
595
|
}), this.pollRules(), this.passContext(!1);
|
|
599
596
|
}
|
|
@@ -618,15 +615,15 @@ var A = {
|
|
|
618
615
|
this.handlers.onJourney(null);
|
|
619
616
|
return;
|
|
620
617
|
}
|
|
621
|
-
let t =
|
|
618
|
+
let t = s(e);
|
|
622
619
|
t === null ? this.diagnostics.report("record.dropped_malformed", "The bus dropped a journey message. Its payload is not a journey.", { type: "journey" }) : this.handlers.onJourney(t);
|
|
623
620
|
}
|
|
624
|
-
rulesAnswer(
|
|
621
|
+
rulesAnswer(e) {
|
|
625
622
|
let n = this.handlers.remote.sampling?.wire() ?? null;
|
|
626
623
|
return {
|
|
627
|
-
t:
|
|
624
|
+
t: t.sampling,
|
|
628
625
|
from: this.contextId,
|
|
629
|
-
to:
|
|
626
|
+
to: e,
|
|
630
627
|
rules: n
|
|
631
628
|
};
|
|
632
629
|
}
|
|
@@ -640,25 +637,24 @@ var A = {
|
|
|
640
637
|
}
|
|
641
638
|
applyRules(e) {
|
|
642
639
|
if (e === null) {
|
|
643
|
-
|
|
640
|
+
l(this.handlers.remote, this.config, null);
|
|
644
641
|
return;
|
|
645
642
|
}
|
|
646
|
-
let t =
|
|
647
|
-
t &&
|
|
643
|
+
let t = c(e, this.diagnostics);
|
|
644
|
+
t && l(this.handlers.remote, this.config, t);
|
|
648
645
|
}
|
|
649
646
|
pollRules() {
|
|
650
|
-
let { upstream:
|
|
651
|
-
if (this.destroyed || this.role !== "forwarder" || !
|
|
652
|
-
let
|
|
653
|
-
this.config.sampling.remote &&
|
|
654
|
-
t:
|
|
647
|
+
let { upstream: e } = this;
|
|
648
|
+
if (this.destroyed || this.role !== "forwarder" || !e) return;
|
|
649
|
+
let n = () => {
|
|
650
|
+
this.config.sampling.remote && e.post({
|
|
651
|
+
t: t.samplingRequest,
|
|
655
652
|
from: this.contextId
|
|
656
653
|
});
|
|
657
654
|
};
|
|
658
|
-
|
|
655
|
+
n(), this.rulesPoll = setInterval(n, i), h(this.rulesPoll);
|
|
659
656
|
}
|
|
660
657
|
};
|
|
661
|
-
//#endregion
|
|
662
658
|
export { M as Bus };
|
|
663
659
|
|
|
664
|
-
//# sourceMappingURL=bus-
|
|
660
|
+
//# sourceMappingURL=bus-ecxUNTja.js.map
|