@safaricom-mxl/web-sdk 0.0.15 → 0.0.17
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/DATA_EXPORT.md +2 -3
- package/REACT.md +5 -7
- package/README.md +94 -57
- package/UPGRADING.md +29 -19
- package/dist/api-logs/api/LogAPI/LogAPI.cjs +3 -3
- package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.js +3 -3
- package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
- package/dist/api-logs/manager/types.d.cts +4 -4
- package/dist/api-logs/manager/types.d.cts.map +1 -1
- package/dist/api-logs/manager/types.d.ts +4 -4
- package/dist/api-logs/manager/types.d.ts.map +1 -1
- package/dist/api-page/api/PageAPI/PageAPI.cjs +3 -3
- package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
- package/dist/api-page/api/PageAPI/PageAPI.js +3 -3
- package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +9 -9
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +5 -7
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +5 -7
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js +9 -9
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
- package/dist/api-sessions/index.cjs +4 -4
- package/dist/api-sessions/index.d.cts +4 -4
- package/dist/api-sessions/index.d.ts +4 -4
- package/dist/api-sessions/index.js +3 -3
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs +47 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs.map +1 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts +30 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts.map +1 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts +30 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts.map +1 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js +46 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js.map +1 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/index.cjs +3 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.cts +2 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.ts +2 -0
- package/dist/api-sessions/manager/NoOpUserSessionManager/index.js +2 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs +81 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs.map +1 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts +35 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts.map +1 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts +35 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts.map +1 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js +81 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js.map +1 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/index.cjs +3 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.cts +2 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.ts +2 -0
- package/dist/api-sessions/manager/ProxyUserSessionManager/index.js +2 -0
- package/dist/api-sessions/manager/index.cjs +4 -4
- package/dist/api-sessions/manager/index.d.cts +4 -4
- package/dist/api-sessions/manager/index.d.ts +4 -4
- package/dist/api-sessions/manager/index.js +3 -3
- package/dist/api-sessions/manager/types.d.cts +14 -24
- package/dist/api-sessions/manager/types.d.cts.map +1 -1
- package/dist/api-sessions/manager/types.d.ts +14 -24
- package/dist/api-sessions/manager/types.d.ts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +3 -3
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.js +3 -3
- package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.cts +2 -2
- package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts +2 -2
- package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.cjs +3 -3
- package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.js +3 -3
- package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
- package/dist/common/types.d.cts +2 -0
- package/dist/common/types.d.cts.map +1 -1
- package/dist/common/types.d.ts +2 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/constants/attributes.cjs +30 -0
- package/dist/constants/attributes.cjs.map +1 -1
- package/dist/constants/attributes.d.cts +18 -2
- package/dist/constants/attributes.d.cts.map +1 -1
- package/dist/constants/attributes.d.ts +18 -2
- package/dist/constants/attributes.d.ts.map +1 -1
- package/dist/constants/attributes.js +17 -1
- package/dist/constants/attributes.js.map +1 -1
- package/dist/constants/index.cjs +14 -0
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
- package/dist/exporters/constants.cjs +1 -1
- package/dist/exporters/constants.cjs.map +1 -1
- package/dist/exporters/constants.d.cts +1 -1
- package/dist/exporters/constants.d.ts +1 -1
- package/dist/exporters/constants.js +1 -1
- package/dist/exporters/constants.js.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +2 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.cts.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.ts.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +2 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +6 -7
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +4 -5
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +4 -5
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +6 -7
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +8 -8
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +8 -8
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +10 -10
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +10 -10
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +2 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +2 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +5 -5
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +5 -5
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +4 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +4 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +7 -7
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +7 -7
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +3 -3
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts +4 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts +4 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +4 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
- package/dist/instrumentations/index.cjs +2 -4
- package/dist/instrumentations/index.d.cts +4 -6
- package/dist/instrumentations/index.d.ts +4 -6
- package/dist/instrumentations/index.js +2 -3
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +23 -23
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +2 -3
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +2 -3
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +23 -23
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +5 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +5 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts +10 -10
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts +10 -10
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts +2 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts +2 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs +257 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts +56 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts +56 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js +252 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs +15 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts +9 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts +9 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.js +10 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/index.js +2 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts +17 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts +17 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs +18 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs.map +1 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts +8 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts.map +1 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts +8 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts.map +1 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js +17 -0
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js.map +1 -0
- package/dist/instrumentations/replay/index.cjs +8 -0
- package/dist/instrumentations/replay/index.d.cts +4 -0
- package/dist/instrumentations/replay/index.d.ts +4 -0
- package/dist/instrumentations/replay/index.js +3 -0
- package/dist/instrumentations/replay/utils/index.cjs +5 -0
- package/dist/instrumentations/replay/utils/index.d.cts +2 -0
- package/dist/instrumentations/replay/utils/index.d.ts +2 -0
- package/dist/instrumentations/replay/utils/index.js +2 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.cjs +79 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.cjs.map +1 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.d.cts +32 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.d.cts.map +1 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.d.ts +32 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.d.ts.map +1 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.js +73 -0
- package/dist/instrumentations/replay/utils/session-recording-utils.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +6 -6
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +6 -6
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/index.cjs +0 -6
- package/dist/instrumentations/session/index.d.cts +2 -7
- package/dist/instrumentations/session/index.d.ts +2 -7
- package/dist/instrumentations/session/index.js +1 -4
- package/dist/instrumentations/session/types.d.cts +5 -5
- package/dist/instrumentations/session/types.d.cts.map +1 -1
- package/dist/instrumentations/session/types.d.ts +5 -5
- package/dist/instrumentations/session/types.d.ts.map +1 -1
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +10 -10
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +10 -10
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +15 -15
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +15 -15
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -3
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -3
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +0 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +0 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
- package/dist/managers/MXLConfigManager/constants.cjs +2 -2
- package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/constants.js +2 -2
- package/dist/managers/MXLConfigManager/constants.js.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.cts +8 -7
- package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.ts +8 -7
- package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +20 -20
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.js +20 -20
- package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
- package/dist/managers/MXLLimitManager/constants.cjs +20 -20
- package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/constants.js +20 -20
- package/dist/managers/MXLLimitManager/constants.js.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.cts +8 -8
- package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.ts +8 -8
- package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.cjs +22 -20
- package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts +2 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts +2 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.js +23 -21
- package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
- package/dist/managers/MXLLogManager/types.d.cts +2 -2
- package/dist/managers/MXLLogManager/types.d.ts +2 -2
- package/dist/managers/MXLPageManager/MXLPageManager.cjs +1 -3
- package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.cts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js +1 -3
- package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +0 -4
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +0 -4
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.cjs +14 -14
- package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.js +14 -14
- package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs +574 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs.map +1 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts +142 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts +142 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js +572 -0
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js.map +1 -0
- package/dist/managers/MXLUserSessionManager/constants.cjs +55 -0
- package/dist/managers/MXLUserSessionManager/constants.cjs.map +1 -0
- package/dist/managers/MXLUserSessionManager/constants.d.cts +31 -0
- package/dist/managers/MXLUserSessionManager/constants.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/constants.d.ts +31 -0
- package/dist/managers/MXLUserSessionManager/constants.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/constants.js +37 -0
- package/dist/managers/MXLUserSessionManager/constants.js.map +1 -0
- package/dist/managers/MXLUserSessionManager/index.cjs +6 -0
- package/dist/managers/MXLUserSessionManager/index.d.cts +4 -0
- package/dist/managers/MXLUserSessionManager/index.d.ts +4 -0
- package/dist/managers/MXLUserSessionManager/index.js +3 -0
- package/dist/managers/MXLUserSessionManager/types.d.cts +84 -0
- package/dist/managers/MXLUserSessionManager/types.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/types.d.ts +84 -0
- package/dist/managers/MXLUserSessionManager/types.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.cjs +25 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.cjs.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.d.cts +40 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.d.ts +40 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.js +22 -0
- package/dist/managers/MXLUserSessionManager/utils/activity.js.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/index.cjs +11 -0
- package/dist/managers/MXLUserSessionManager/utils/index.d.cts +3 -0
- package/dist/managers/MXLUserSessionManager/utils/index.d.ts +3 -0
- package/dist/managers/MXLUserSessionManager/utils/index.js +3 -0
- package/dist/managers/MXLUserSessionManager/utils/state.cjs +78 -0
- package/dist/managers/MXLUserSessionManager/utils/state.cjs.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.cts +39 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.ts +39 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/state.js +73 -0
- package/dist/managers/MXLUserSessionManager/utils/state.js.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs +132 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts +33 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts +33 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts.map +1 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.js +127 -0
- package/dist/managers/MXLUserSessionManager/utils/tabTracking.js.map +1 -0
- package/dist/managers/index.cjs +5 -2
- package/dist/managers/index.d.cts +4 -3
- package/dist/managers/index.d.ts +4 -3
- package/dist/managers/index.js +3 -2
- package/dist/mxl-web-sdk.js +1 -58
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/types.d.cts +2 -2
- package/dist/processors/LogRecordScrubProcessor/types.d.cts.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/types.d.ts +2 -2
- package/dist/processors/LogRecordScrubProcessor/types.d.ts.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.cts +2 -2
- package/dist/processors/MXLLogRecordProcessor/types.d.cts.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.ts +2 -2
- package/dist/processors/MXLLogRecordProcessor/types.d.ts.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs +74 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs.map +1 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts +28 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts.map +1 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts +28 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts.map +1 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js +72 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js.map +1 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.cjs +3 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.cts +3 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.ts +3 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.js +2 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts +15 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts.map +1 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts +15 -0
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts.map +1 -0
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs +34 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs.map +1 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts +16 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts.map +1 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts +16 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts.map +1 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js +32 -0
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js.map +1 -0
- package/dist/processors/UserSessionLogRecordProcessor/index.cjs +3 -0
- package/dist/processors/UserSessionLogRecordProcessor/index.d.cts +3 -0
- package/dist/processors/UserSessionLogRecordProcessor/index.d.ts +3 -0
- package/dist/processors/UserSessionLogRecordProcessor/index.js +2 -0
- package/dist/processors/UserSessionLogRecordProcessor/types.d.cts +8 -0
- package/dist/processors/UserSessionLogRecordProcessor/types.d.cts.map +1 -0
- package/dist/processors/UserSessionLogRecordProcessor/types.d.ts +8 -0
- package/dist/processors/UserSessionLogRecordProcessor/types.d.ts.map +1 -0
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
- package/dist/processors/index.cjs +4 -4
- package/dist/processors/index.d.cts +3 -3
- package/dist/processors/index.d.ts +3 -3
- package/dist/processors/index.js +3 -3
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
- package/dist/resources/appInstanceId.cjs +4 -4
- package/dist/resources/appInstanceId.cjs.map +1 -1
- package/dist/resources/appInstanceId.js +4 -4
- package/dist/resources/appInstanceId.js.map +1 -1
- package/dist/resources/constants/index.cjs +1 -1
- package/dist/resources/constants/index.cjs.map +1 -1
- package/dist/resources/constants/index.d.cts +1 -1
- package/dist/resources/constants/index.d.ts +1 -1
- package/dist/resources/constants/index.js +1 -1
- package/dist/resources/constants/index.js.map +1 -1
- package/dist/resources/webSdkResource.cjs +15 -19
- package/dist/resources/webSdkResource.cjs.map +1 -1
- package/dist/resources/webSdkResource.d.cts.map +1 -1
- package/dist/resources/webSdkResource.d.ts.map +1 -1
- package/dist/resources/webSdkResource.js +15 -19
- package/dist/resources/webSdkResource.js.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.cjs +8 -8
- package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.js +8 -8
- package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
- package/dist/sdk/index.d.cts +3 -2
- package/dist/sdk/index.d.ts +3 -2
- package/dist/sdk/initSDK.cjs +139 -98
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +4 -2
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +4 -2
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +139 -98
- package/dist/sdk/initSDK.js.map +1 -1
- package/dist/sdk/noopSessionRecording.cjs +10 -0
- package/dist/sdk/noopSessionRecording.cjs.map +1 -0
- package/dist/sdk/noopSessionRecording.d.cts +7 -0
- package/dist/sdk/noopSessionRecording.d.cts.map +1 -0
- package/dist/sdk/noopSessionRecording.d.ts +7 -0
- package/dist/sdk/noopSessionRecording.d.ts.map +1 -0
- package/dist/sdk/noopSessionRecording.js +9 -0
- package/dist/sdk/noopSessionRecording.js.map +1 -0
- package/dist/sdk/registry.cjs +1 -3
- package/dist/sdk/registry.cjs.map +1 -1
- package/dist/sdk/registry.d.cts.map +1 -1
- package/dist/sdk/registry.d.ts.map +1 -1
- package/dist/sdk/registry.js +1 -3
- package/dist/sdk/registry.js.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.cjs +9 -5
- package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.cts +5 -2
- package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.ts +5 -2
- package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.js +9 -5
- package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
- package/dist/sdk/types.d.cts +68 -56
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +69 -57
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/utils.cjs +1 -1
- package/dist/sdk/utils.cjs.map +1 -1
- package/dist/sdk/utils.d.cts.map +1 -1
- package/dist/sdk/utils.d.ts.map +1 -1
- package/dist/sdk/utils.js +1 -1
- package/dist/sdk/utils.js.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.cjs +13 -13
- package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.js +13 -13
- package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.cjs +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.js +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +69 -24
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +27 -13
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +27 -13
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js +68 -24
- package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
- package/dist/utils/clampNumber.cjs +23 -0
- package/dist/utils/clampNumber.cjs.map +1 -0
- package/dist/utils/clampNumber.d.cts +24 -0
- package/dist/utils/clampNumber.d.cts.map +1 -0
- package/dist/utils/clampNumber.d.ts +24 -0
- package/dist/utils/clampNumber.d.ts.map +1 -0
- package/dist/utils/clampNumber.js +22 -0
- package/dist/utils/clampNumber.js.map +1 -0
- package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -2
- package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.d.cts.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.d.ts.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.js +2 -2
- package/dist/utils/createSafeProxy/createSafeProxy.js.map +1 -1
- package/dist/utils/generateWebVitalID.cjs +1 -3
- package/dist/utils/generateWebVitalID.cjs.map +1 -1
- package/dist/utils/generateWebVitalID.js +1 -3
- package/dist/utils/generateWebVitalID.js.map +1 -1
- package/dist/utils/getIncrementedCount.cjs +2 -2
- package/dist/utils/getIncrementedCount.cjs.map +1 -1
- package/dist/utils/getIncrementedCount.js +2 -2
- package/dist/utils/getIncrementedCount.js.map +1 -1
- package/dist/utils/globalConfig.cjs.map +1 -1
- package/dist/utils/globalConfig.d.cts +2 -2
- package/dist/utils/globalConfig.d.cts.map +1 -1
- package/dist/utils/globalConfig.d.ts +2 -2
- package/dist/utils/globalConfig.d.ts.map +1 -1
- package/dist/utils/globalConfig.js.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
- package/dist/utils/isDeviceIdEnabled.js.map +1 -1
- package/dist/utils/performanceObserver/performanceObserver.cjs +3 -3
- package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -1
- package/dist/utils/performanceObserver/performanceObserver.js +3 -3
- package/dist/utils/performanceObserver/performanceObserver.js.map +1 -1
- package/dist/utils/throttle.cjs +13 -9
- package/dist/utils/throttle.cjs.map +1 -1
- package/dist/utils/throttle.d.cts +6 -3
- package/dist/utils/throttle.d.cts.map +1 -1
- package/dist/utils/throttle.d.ts +6 -3
- package/dist/utils/throttle.d.ts.map +1 -1
- package/dist/utils/throttle.js +13 -9
- package/dist/utils/throttle.js.map +1 -1
- package/package.json +56 -56
- package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -8
- package/dist/api-sessions/api/SessionAPI/types.d.cts.map +0 -1
- package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -8
- package/dist/api-sessions/api/SessionAPI/types.d.ts.map +0 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +0 -31
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +0 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts +0 -24
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts.map +0 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -24
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +0 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +0 -30
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +0 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +0 -3
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.cts +0 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.ts +0 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +0 -55
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +0 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts +0 -27
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts.map +0 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -27
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +0 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +0 -55
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +0 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +0 -3
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.cts +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.ts +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +0 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +0 -27
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts +0 -15
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts +0 -15
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +0 -25
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +0 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.cts +0 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.ts +0 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +0 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts +0 -9
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts +0 -9
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/fetch/index.cjs +0 -3
- package/dist/instrumentations/fetch/index.d.cts +0 -3
- package/dist/instrumentations/fetch/index.d.ts +0 -3
- package/dist/instrumentations/fetch/index.js +0 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +0 -60
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts +0 -24
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -24
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +0 -59
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +0 -19
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts +0 -10
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts +0 -10
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +0 -16
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.cts +0 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.ts +0 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +0 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -6
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -6
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +0 -24
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts +0 -14
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -14
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +0 -23
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.cts +0 -3
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.ts +0 -3
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +0 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -6
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -6
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +0 -55
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts +0 -22
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -22
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +0 -54
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +0 -7
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts +0 -5
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts +0 -5
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +0 -6
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.cts +0 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.ts +0 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +0 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -6
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -6
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.js +0 -0
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +0 -38
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +0 -17
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +0 -17
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +0 -37
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.cts +0 -3
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.ts +0 -3
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +0 -2
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +0 -10
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +0 -10
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.js +0 -0
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +0 -27
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts +0 -15
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts +0 -15
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +0 -25
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +0 -3
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.cts +0 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.ts +0 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +0 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts +0 -9
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts +0 -9
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts.map +0 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.js +0 -0
- package/dist/instrumentations/xhr/index.cjs +0 -3
- package/dist/instrumentations/xhr/index.d.cts +0 -3
- package/dist/instrumentations/xhr/index.d.ts +0 -3
- package/dist/instrumentations/xhr/index.js +0 -2
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +0 -350
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +0 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +0 -72
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +0 -72
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +0 -348
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +0 -1
- package/dist/managers/MXLSpanSessionManager/constants.cjs +0 -11
- package/dist/managers/MXLSpanSessionManager/constants.cjs.map +0 -1
- package/dist/managers/MXLSpanSessionManager/constants.d.cts +0 -7
- package/dist/managers/MXLSpanSessionManager/constants.d.cts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/constants.d.ts +0 -7
- package/dist/managers/MXLSpanSessionManager/constants.d.ts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/constants.js +0 -8
- package/dist/managers/MXLSpanSessionManager/constants.js.map +0 -1
- package/dist/managers/MXLSpanSessionManager/index.cjs +0 -3
- package/dist/managers/MXLSpanSessionManager/index.d.cts +0 -3
- package/dist/managers/MXLSpanSessionManager/index.d.ts +0 -3
- package/dist/managers/MXLSpanSessionManager/index.js +0 -2
- package/dist/managers/MXLSpanSessionManager/types.cjs +0 -0
- package/dist/managers/MXLSpanSessionManager/types.d.cts +0 -41
- package/dist/managers/MXLSpanSessionManager/types.d.cts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/types.d.ts +0 -41
- package/dist/managers/MXLSpanSessionManager/types.d.ts.map +0 -1
- package/dist/managers/MXLSpanSessionManager/types.js +0 -0
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +0 -28
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts +0 -16
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts +0 -16
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +0 -26
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +0 -3
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.cts +0 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.ts +0 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +0 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.cjs +0 -0
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts +0 -9
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -9
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.js +0 -0
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +0 -95
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts +0 -34
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts +0 -34
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +0 -93
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +0 -3
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.cts +0 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.ts +0 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +0 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.cjs +0 -0
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts +0 -19
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -19
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.js +0 -0
- package/dist/sdk/setupSessionRecorder.cjs +0 -45
- package/dist/sdk/setupSessionRecorder.cjs.map +0 -1
- package/dist/sdk/setupSessionRecorder.d.cts +0 -21
- package/dist/sdk/setupSessionRecorder.d.cts.map +0 -1
- package/dist/sdk/setupSessionRecorder.d.ts +0 -21
- package/dist/sdk/setupSessionRecorder.d.ts.map +0 -1
- package/dist/sdk/setupSessionRecorder.js +0 -42
- package/dist/sdk/setupSessionRecorder.js.map +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +0 -116
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts +0 -42
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts.map +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -42
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +0 -114
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +0 -1
- package/dist/utils/MXLSpanStorage/index.cjs +0 -3
- package/dist/utils/MXLSpanStorage/index.d.cts +0 -2
- package/dist/utils/MXLSpanStorage/index.d.ts +0 -2
- package/dist/utils/MXLSpanStorage/index.js +0 -2
- package/dist/utils/MXLSpanStorage/types.cjs +0 -0
- package/dist/utils/MXLSpanStorage/types.d.cts +0 -2
- package/dist/utils/MXLSpanStorage/types.d.ts +0 -2
- package/dist/utils/MXLSpanStorage/types.js +0 -0
- /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.cjs +0 -0
- /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.js +0 -0
- /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.cjs +0 -0
- /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.js +0 -0
- /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.cjs +0 -0
- /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.js +0 -0
- /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.cjs +0 -0
- /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clampNumber.d.ts","names":[],"sources":["../../src/utils/clampNumber.ts"],"mappings":";;;;;AAOA;;;cAAa,WAAA;EAAe,IAAA;EAAA,KAAA;EAAA,YAAA;EAAA,GAAA;EAAA;AAAA;EAO1B,IAAA,GAAO,UAAA;EACP,KAAA;EACA,YAAA;EACA,GAAA;EACA,GAAA;AAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/utils/clampNumber.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates `value` against `[min, max]`, returning `defaultValue` (and
|
|
4
|
+
* warning via `diag`) when the value is non-finite or out of range.
|
|
5
|
+
* Returns `defaultValue` silently when `value` is undefined.
|
|
6
|
+
*/
|
|
7
|
+
const clampNumber = ({ diag, value, defaultValue, min, max }) => {
|
|
8
|
+
if (value === void 0) return defaultValue;
|
|
9
|
+
if (!Number.isFinite(value)) {
|
|
10
|
+
diag?.warn(`value is not a finite number; falling back to default (${defaultValue.toString()}).`);
|
|
11
|
+
return defaultValue;
|
|
12
|
+
}
|
|
13
|
+
if (value < min || value > max) {
|
|
14
|
+
diag?.warn(`value (${value.toString()}) is outside the allowed range [${min.toString()}, ${max.toString()}]; falling back to default (${defaultValue.toString()}).`);
|
|
15
|
+
return defaultValue;
|
|
16
|
+
}
|
|
17
|
+
return value;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { clampNumber };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=clampNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clampNumber.js","names":[],"sources":["../../src/utils/clampNumber.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n/**\n * Validates `value` against `[min, max]`, returning `defaultValue` (and\n * warning via `diag`) when the value is non-finite or out of range.\n * Returns `defaultValue` silently when `value` is undefined.\n */\nexport const clampNumber = ({\n diag,\n value,\n defaultValue,\n min,\n max,\n}: {\n diag?: DiagLogger;\n value: number | undefined;\n defaultValue: number;\n min: number;\n max: number;\n}): number => {\n if (value === undefined) {\n return defaultValue;\n }\n if (!Number.isFinite(value)) {\n diag?.warn(\n `value is not a finite number; falling back to default (${defaultValue.toString()}).`,\n );\n return defaultValue;\n }\n if (value < min || value > max) {\n diag?.warn(\n `value (${value.toString()}) is outside the allowed range ` +\n `[${min.toString()}, ${max.toString()}]; ` +\n `falling back to default (${defaultValue.toString()}).`,\n );\n return defaultValue;\n }\n return value;\n};\n"],"mappings":";;;;;;AAOA,MAAa,eAAe,EAC1B,MACA,OACA,cACA,KACA,UAOY;AACZ,KAAI,UAAU,KAAA,EACZ,QAAO;AAET,KAAI,CAAC,OAAO,SAAS,MAAM,EAAE;AAC3B,QAAM,KACJ,0DAA0D,aAAa,UAAU,CAAC,IACnF;AACD,SAAO;;AAET,KAAI,QAAQ,OAAO,QAAQ,KAAK;AAC9B,QAAM,KACJ,UAAU,MAAM,UAAU,CAAC,kCACrB,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,8BACV,aAAa,UAAU,CAAC,IACvD;AACD,SAAO;;AAET,QAAO"}
|
|
@@ -17,8 +17,8 @@ function createSafeProxy(target, noOpFallback, diag, excludeMethods = /* @__PURE
|
|
|
17
17
|
return (...args) => {
|
|
18
18
|
try {
|
|
19
19
|
return value.apply(obj, args);
|
|
20
|
-
} catch (
|
|
21
|
-
const message =
|
|
20
|
+
} catch (error) {
|
|
21
|
+
const message = error instanceof Error ? error.message : "Unknown error";
|
|
22
22
|
diag.error(`${String(prop)}: ${message}`);
|
|
23
23
|
const fallbackMethod = noOpFallback[prop];
|
|
24
24
|
if (typeof fallbackMethod === "function") return fallbackMethod.apply(noOpFallback, args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSafeProxy.cjs","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n/**\n * Creates a proxy that wraps all method calls in try-catch.\n * On error, logs via diag and returns the NoOp manager's value.\n *\n * @param target - The object to wrap (typically a ProxyManager)\n * @param noOpFallback - A NoOp implementation to get fallback return values\n * @param diag - Logger for error reporting\n * @param excludeMethods - Methods to exclude from wrapping (e.g., internal methods)\n */\nexport function createSafeProxy<T extends object, F extends object>(\n target: T,\n noOpFallback: F,\n diag: DiagLogger,\n excludeMethods
|
|
1
|
+
{"version":3,"file":"createSafeProxy.cjs","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n/**\n * Creates a proxy that wraps all method calls in try-catch.\n * On error, logs via diag and returns the NoOp manager's value.\n *\n * @param target - The object to wrap (typically a ProxyManager)\n * @param noOpFallback - A NoOp implementation to get fallback return values\n * @param diag - Logger for error reporting\n * @param excludeMethods - Methods to exclude from wrapping (e.g., internal methods)\n */\nexport function createSafeProxy<T extends object, F extends object>(\n target: T,\n noOpFallback: F,\n diag: DiagLogger,\n excludeMethods = new Set<string>(),\n): T {\n return new Proxy(target, {\n get(obj, prop, receiver) {\n const value = Reflect.get(obj, prop, receiver);\n\n if (typeof value !== 'function') {\n return value;\n }\n\n if (excludeMethods.has(prop as string)) {\n return value;\n }\n\n return (...args: unknown[]) => {\n try {\n return (value as (...args: unknown[]) => unknown).apply(obj, args);\n } catch (error) {\n const message =\n error instanceof Error ? error.message : 'Unknown error';\n diag.error(`${String(prop)}: ${message}`);\n\n // Get fallback from NoOp manager\n const fallbackMethod = (noOpFallback as Record<string, unknown>)[\n prop as string\n ];\n if (typeof fallbackMethod === 'function') {\n return (fallbackMethod as (...args: unknown[]) => unknown).apply(\n noOpFallback,\n args,\n );\n }\n return undefined;\n }\n };\n },\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,gBACd,QACA,cACA,MACA,iCAAiB,IAAI,KAAa,EAC/B;AACH,QAAO,IAAI,MAAM,QAAQ,EACvB,IAAI,KAAK,MAAM,UAAU;EACvB,MAAM,QAAQ,QAAQ,IAAI,KAAK,MAAM,SAAS;AAE9C,MAAI,OAAO,UAAU,WACnB,QAAO;AAGT,MAAI,eAAe,IAAI,KAAe,CACpC,QAAO;AAGT,UAAQ,GAAG,SAAoB;AAC7B,OAAI;AACF,WAAQ,MAA0C,MAAM,KAAK,KAAK;YAC3D,OAAO;IACd,MAAM,UACJ,iBAAiB,QAAQ,MAAM,UAAU;AAC3C,SAAK,MAAM,GAAG,OAAO,KAAK,CAAC,IAAI,UAAU;IAGzC,MAAM,iBAAkB,aACtB;AAEF,QAAI,OAAO,mBAAmB,WAC5B,QAAQ,eAAmD,MACzD,cACA,KACD;AAEH;;;IAIP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSafeProxy.d.cts","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"mappings":";;;;;AAWA;;;;;;;iBAAgB,eAAA,oCAAA,CACd,MAAA,EAAQ,CAAA,EACR,YAAA,EAAc,CAAA,EACd,IAAA,EAAM,UAAA,EACN,cAAA,
|
|
1
|
+
{"version":3,"file":"createSafeProxy.d.cts","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"mappings":";;;;;AAWA;;;;;;;iBAAgB,eAAA,oCAAA,CACd,MAAA,EAAQ,CAAA,EACR,YAAA,EAAc,CAAA,EACd,IAAA,EAAM,UAAA,EACN,cAAA,GAAc,GAAA,WACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSafeProxy.d.ts","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"mappings":";;;;;AAWA;;;;;;;iBAAgB,eAAA,oCAAA,CACd,MAAA,EAAQ,CAAA,EACR,YAAA,EAAc,CAAA,EACd,IAAA,EAAM,UAAA,EACN,cAAA,
|
|
1
|
+
{"version":3,"file":"createSafeProxy.d.ts","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"mappings":";;;;;AAWA;;;;;;;iBAAgB,eAAA,oCAAA,CACd,MAAA,EAAQ,CAAA,EACR,YAAA,EAAc,CAAA,EACd,IAAA,EAAM,UAAA,EACN,cAAA,GAAc,GAAA,WACb,CAAA"}
|
|
@@ -16,8 +16,8 @@ function createSafeProxy(target, noOpFallback, diag, excludeMethods = /* @__PURE
|
|
|
16
16
|
return (...args) => {
|
|
17
17
|
try {
|
|
18
18
|
return value.apply(obj, args);
|
|
19
|
-
} catch (
|
|
20
|
-
const message =
|
|
19
|
+
} catch (error) {
|
|
20
|
+
const message = error instanceof Error ? error.message : "Unknown error";
|
|
21
21
|
diag.error(`${String(prop)}: ${message}`);
|
|
22
22
|
const fallbackMethod = noOpFallback[prop];
|
|
23
23
|
if (typeof fallbackMethod === "function") return fallbackMethod.apply(noOpFallback, args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSafeProxy.js","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n/**\n * Creates a proxy that wraps all method calls in try-catch.\n * On error, logs via diag and returns the NoOp manager's value.\n *\n * @param target - The object to wrap (typically a ProxyManager)\n * @param noOpFallback - A NoOp implementation to get fallback return values\n * @param diag - Logger for error reporting\n * @param excludeMethods - Methods to exclude from wrapping (e.g., internal methods)\n */\nexport function createSafeProxy<T extends object, F extends object>(\n target: T,\n noOpFallback: F,\n diag: DiagLogger,\n excludeMethods
|
|
1
|
+
{"version":3,"file":"createSafeProxy.js","names":[],"sources":["../../../src/utils/createSafeProxy/createSafeProxy.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n/**\n * Creates a proxy that wraps all method calls in try-catch.\n * On error, logs via diag and returns the NoOp manager's value.\n *\n * @param target - The object to wrap (typically a ProxyManager)\n * @param noOpFallback - A NoOp implementation to get fallback return values\n * @param diag - Logger for error reporting\n * @param excludeMethods - Methods to exclude from wrapping (e.g., internal methods)\n */\nexport function createSafeProxy<T extends object, F extends object>(\n target: T,\n noOpFallback: F,\n diag: DiagLogger,\n excludeMethods = new Set<string>(),\n): T {\n return new Proxy(target, {\n get(obj, prop, receiver) {\n const value = Reflect.get(obj, prop, receiver);\n\n if (typeof value !== 'function') {\n return value;\n }\n\n if (excludeMethods.has(prop as string)) {\n return value;\n }\n\n return (...args: unknown[]) => {\n try {\n return (value as (...args: unknown[]) => unknown).apply(obj, args);\n } catch (error) {\n const message =\n error instanceof Error ? error.message : 'Unknown error';\n diag.error(`${String(prop)}: ${message}`);\n\n // Get fallback from NoOp manager\n const fallbackMethod = (noOpFallback as Record<string, unknown>)[\n prop as string\n ];\n if (typeof fallbackMethod === 'function') {\n return (fallbackMethod as (...args: unknown[]) => unknown).apply(\n noOpFallback,\n args,\n );\n }\n return undefined;\n }\n };\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,gBACd,QACA,cACA,MACA,iCAAiB,IAAI,KAAa,EAC/B;AACH,QAAO,IAAI,MAAM,QAAQ,EACvB,IAAI,KAAK,MAAM,UAAU;EACvB,MAAM,QAAQ,QAAQ,IAAI,KAAK,MAAM,SAAS;AAE9C,MAAI,OAAO,UAAU,WACnB,QAAO;AAGT,MAAI,eAAe,IAAI,KAAe,CACpC,QAAO;AAGT,UAAQ,GAAG,SAAoB;AAC7B,OAAI;AACF,WAAQ,MAA0C,MAAM,KAAK,KAAK;YAC3D,OAAO;IACd,MAAM,UACJ,iBAAiB,QAAQ,MAAM,UAAU;AAC3C,SAAK,MAAM,GAAG,OAAO,KAAK,CAAC,IAAI,UAAU;IAGzC,MAAM,iBAAkB,aACtB;AAEF,QAAI,OAAO,mBAAmB,WAC5B,QAAQ,eAAmD,MACzD,cACA,KACD;AAEH;;;IAIP,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/utils/generateWebVitalID.ts
|
|
3
|
-
const generateWebVitalID = () => {
|
|
4
|
-
return `mxlv2-${Date.now()}-${Math.floor(Math.random() * 8999999999999) + 0xe8d4a51000}`;
|
|
5
|
-
};
|
|
3
|
+
const generateWebVitalID = () => `mxlv2-${Date.now()}-${Math.floor(Math.random() * 8999999999999) + 0xe8d4a51000}`;
|
|
6
4
|
//#endregion
|
|
7
5
|
exports.generateWebVitalID = generateWebVitalID;
|
|
8
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateWebVitalID.cjs","names":[],"sources":["../../src/utils/generateWebVitalID.ts"],"sourcesContent":["// Generates a unique ID for web vitals metrics, following the format \"v5-{timestamp}-{randomNumber}\"\n// https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/generateUniqueID.ts\nexport const generateWebVitalID = ()
|
|
1
|
+
{"version":3,"file":"generateWebVitalID.cjs","names":[],"sources":["../../src/utils/generateWebVitalID.ts"],"sourcesContent":["// Generates a unique ID for web vitals metrics, following the format \"v5-{timestamp}-{randomNumber}\"\n// https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/generateUniqueID.ts\nexport const generateWebVitalID = () =>\n `mxlv2-${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`;\n"],"mappings":";;AAEA,MAAa,2BACX,SAAS,KAAK,KAAK,CAAC,GAAG,KAAK,MAAM,KAAK,QAAQ,GAAI,cAAU,GAAG"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/utils/generateWebVitalID.ts
|
|
2
|
-
const generateWebVitalID = () => {
|
|
3
|
-
return `mxlv2-${Date.now()}-${Math.floor(Math.random() * 8999999999999) + 0xe8d4a51000}`;
|
|
4
|
-
};
|
|
2
|
+
const generateWebVitalID = () => `mxlv2-${Date.now()}-${Math.floor(Math.random() * 8999999999999) + 0xe8d4a51000}`;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { generateWebVitalID };
|
|
7
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateWebVitalID.js","names":[],"sources":["../../src/utils/generateWebVitalID.ts"],"sourcesContent":["// Generates a unique ID for web vitals metrics, following the format \"v5-{timestamp}-{randomNumber}\"\n// https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/generateUniqueID.ts\nexport const generateWebVitalID = ()
|
|
1
|
+
{"version":3,"file":"generateWebVitalID.js","names":[],"sources":["../../src/utils/generateWebVitalID.ts"],"sourcesContent":["// Generates a unique ID for web vitals metrics, following the format \"v5-{timestamp}-{randomNumber}\"\n// https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/generateUniqueID.ts\nexport const generateWebVitalID = () =>\n `mxlv2-${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`;\n"],"mappings":";AAEA,MAAa,2BACX,SAAS,KAAK,KAAK,CAAC,GAAG,KAAK,MAAM,KAAK,QAAQ,GAAI,cAAU,GAAG"}
|
|
@@ -11,8 +11,8 @@ const getIncrementedCount = (storage, key, diag) => {
|
|
|
11
11
|
number++;
|
|
12
12
|
storage.setItem(key, number.toString());
|
|
13
13
|
return number;
|
|
14
|
-
} catch (
|
|
15
|
-
diag.warn(`Failed to retrieve ${key} from storage: `,
|
|
14
|
+
} catch (error) {
|
|
15
|
+
diag.warn(`Failed to retrieve ${key} from storage: `, error);
|
|
16
16
|
return 1;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIncrementedCount.cjs","names":[],"sources":["../../src/utils/getIncrementedCount.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n// Increments and returns a global counter shared across all tabs\n// Race conditions are possible but acceptable for diagnostic use-cases\nexport const getIncrementedCount = (\n storage: Storage,\n key: string,\n diag: DiagLogger,\n) => {\n try {\n const value = storage.getItem(key);\n let number = value ? parseInt(value, 10) : 0;\n if (Number.isNaN(number)) {\n diag.warn(\n `Non-numeric value stored at ${key} (${String(value)}); resetting counter.`,\n );\n number = 0;\n }\n number++;\n storage.setItem(key, number.toString());\n return number;\n } catch (
|
|
1
|
+
{"version":3,"file":"getIncrementedCount.cjs","names":[],"sources":["../../src/utils/getIncrementedCount.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n// Increments and returns a global counter shared across all tabs\n// Race conditions are possible but acceptable for diagnostic use-cases\nexport const getIncrementedCount = (\n storage: Storage,\n key: string,\n diag: DiagLogger,\n) => {\n try {\n const value = storage.getItem(key);\n let number = value ? parseInt(value, 10) : 0;\n if (Number.isNaN(number)) {\n diag.warn(\n `Non-numeric value stored at ${key} (${String(value)}); resetting counter.`,\n );\n number = 0;\n }\n number++;\n storage.setItem(key, number.toString());\n return number;\n } catch (error) {\n diag.warn(`Failed to retrieve ${key} from storage: `, error);\n return 1;\n }\n};\n"],"mappings":";;AAIA,MAAa,uBACX,SACA,KACA,SACG;AACH,KAAI;EACF,MAAM,QAAQ,QAAQ,QAAQ,IAAI;EAClC,IAAI,SAAS,QAAQ,SAAS,OAAO,GAAG,GAAG;AAC3C,MAAI,OAAO,MAAM,OAAO,EAAE;AACxB,QAAK,KACH,+BAA+B,IAAI,IAAI,OAAO,MAAM,CAAC,uBACtD;AACD,YAAS;;AAEX;AACA,UAAQ,QAAQ,KAAK,OAAO,UAAU,CAAC;AACvC,SAAO;UACA,OAAO;AACd,OAAK,KAAK,sBAAsB,IAAI,kBAAkB,MAAM;AAC5D,SAAO"}
|
|
@@ -10,8 +10,8 @@ const getIncrementedCount = (storage, key, diag) => {
|
|
|
10
10
|
number++;
|
|
11
11
|
storage.setItem(key, number.toString());
|
|
12
12
|
return number;
|
|
13
|
-
} catch (
|
|
14
|
-
diag.warn(`Failed to retrieve ${key} from storage: `,
|
|
13
|
+
} catch (error) {
|
|
14
|
+
diag.warn(`Failed to retrieve ${key} from storage: `, error);
|
|
15
15
|
return 1;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIncrementedCount.js","names":[],"sources":["../../src/utils/getIncrementedCount.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n// Increments and returns a global counter shared across all tabs\n// Race conditions are possible but acceptable for diagnostic use-cases\nexport const getIncrementedCount = (\n storage: Storage,\n key: string,\n diag: DiagLogger,\n) => {\n try {\n const value = storage.getItem(key);\n let number = value ? parseInt(value, 10) : 0;\n if (Number.isNaN(number)) {\n diag.warn(\n `Non-numeric value stored at ${key} (${String(value)}); resetting counter.`,\n );\n number = 0;\n }\n number++;\n storage.setItem(key, number.toString());\n return number;\n } catch (
|
|
1
|
+
{"version":3,"file":"getIncrementedCount.js","names":[],"sources":["../../src/utils/getIncrementedCount.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\n// Increments and returns a global counter shared across all tabs\n// Race conditions are possible but acceptable for diagnostic use-cases\nexport const getIncrementedCount = (\n storage: Storage,\n key: string,\n diag: DiagLogger,\n) => {\n try {\n const value = storage.getItem(key);\n let number = value ? parseInt(value, 10) : 0;\n if (Number.isNaN(number)) {\n diag.warn(\n `Non-numeric value stored at ${key} (${String(value)}); resetting counter.`,\n );\n number = 0;\n }\n number++;\n storage.setItem(key, number.toString());\n return number;\n } catch (error) {\n diag.warn(`Failed to retrieve ${key} from storage: `, error);\n return 1;\n }\n};\n"],"mappings":";AAIA,MAAa,uBACX,SACA,KACA,SACG;AACH,KAAI;EACF,MAAM,QAAQ,QAAQ,QAAQ,IAAI;EAClC,IAAI,SAAS,QAAQ,SAAS,OAAO,GAAG,GAAG;AAC3C,MAAI,OAAO,MAAM,OAAO,EAAE;AACxB,QAAK,KACH,+BAA+B,IAAI,IAAI,OAAO,MAAM,CAAC,uBACtD;AACD,YAAS;;AAEX;AACA,UAAQ,QAAQ,KAAK,OAAO,UAAU,CAAC;AACvC,SAAO;UACA,OAAO;AACd,OAAK,KAAK,sBAAsB,IAAI,kBAAkB,MAAM;AAC5D,SAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalConfig.cjs","names":[],"sources":["../../src/utils/globalConfig.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"file":"globalConfig.cjs","names":[],"sources":["../../src/utils/globalConfig.ts"],"sourcesContent":["export interface GlobalConfig {\n _MXLFileBundleIDs?: Record<string, string>;\n}\n\nexport const GLOBAL_CONFIG = globalThis as unknown as GlobalConfig;\n"],"mappings":";;AAIA,MAAa,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalConfig.d.cts","names":[],"sources":["../../src/utils/globalConfig.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"globalConfig.d.cts","names":[],"sources":["../../src/utils/globalConfig.ts"],"mappings":";UAAiB,YAAA;EACf,iBAAA,GAAoB,MAAA;AAAA;AAAA,cAGT,aAAA,EAAyC,YAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalConfig.d.ts","names":[],"sources":["../../src/utils/globalConfig.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"globalConfig.d.ts","names":[],"sources":["../../src/utils/globalConfig.ts"],"mappings":";UAAiB,YAAA;EACf,iBAAA,GAAoB,MAAA;AAAA;AAAA,cAGT,aAAA,EAAyC,YAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalConfig.js","names":[],"sources":["../../src/utils/globalConfig.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"file":"globalConfig.js","names":[],"sources":["../../src/utils/globalConfig.ts"],"sourcesContent":["export interface GlobalConfig {\n _MXLFileBundleIDs?: Record<string, string>;\n}\n\nexport const GLOBAL_CONFIG = globalThis as unknown as GlobalConfig;\n"],"mappings":";AAIA,MAAa,gBAAgB"}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_utils_clampNumber = require("./clampNumber.cjs");
|
|
2
3
|
const require_utils_bulkAddEventListener_bulkAddEventListener = require("./bulkAddEventListener/bulkAddEventListener.cjs");
|
|
3
4
|
const require_utils_bulkRemoveEventListener_bulkRemoveEventListener = require("./bulkRemoveEventListener/bulkRemoveEventListener.cjs");
|
|
4
5
|
const require_utils_createSafeProxy_createSafeProxy = require("./createSafeProxy/createSafeProxy.cjs");
|
|
@@ -8,18 +9,17 @@ const require_utils_getIncrementedCount = require("./getIncrementedCount.cjs");
|
|
|
8
9
|
const require_utils_getVisibilityState = require("./getVisibilityState.cjs");
|
|
9
10
|
const require_utils_globalConfig = require("./globalConfig.cjs");
|
|
10
11
|
const require_utils_isDeviceIdEnabled = require("./isDeviceIdEnabled.cjs");
|
|
11
|
-
const require_utils_MXLSpanStorage_MXLSpanStorage = require("./MXLSpanStorage/MXLSpanStorage.cjs");
|
|
12
12
|
const require_utils_NamespacedStorage_NamespacedStorage = require("./NamespacedStorage/NamespacedStorage.cjs");
|
|
13
13
|
const require_utils_nsfConfigValidation = require("./nsfConfigValidation.cjs");
|
|
14
14
|
const require_utils_PerformanceManager_OTelPerformanceManager = require("./PerformanceManager/OTelPerformanceManager.cjs");
|
|
15
15
|
const require_utils_performanceObserver_performanceObserver = require("./performanceObserver/performanceObserver.cjs");
|
|
16
16
|
const require_utils_throttle = require("./throttle.cjs");
|
|
17
17
|
exports.GLOBAL_CONFIG = require_utils_globalConfig.GLOBAL_CONFIG;
|
|
18
|
-
exports.MXLSpanStorage = require_utils_MXLSpanStorage_MXLSpanStorage.MXLSpanStorage;
|
|
19
18
|
exports.NamespacedStorage = require_utils_NamespacedStorage_NamespacedStorage.NamespacedStorage;
|
|
20
19
|
exports.OTelPerformanceManager = require_utils_PerformanceManager_OTelPerformanceManager.OTelPerformanceManager;
|
|
21
20
|
exports.bulkAddEventListener = require_utils_bulkAddEventListener_bulkAddEventListener.bulkAddEventListener;
|
|
22
21
|
exports.bulkRemoveEventListener = require_utils_bulkRemoveEventListener_bulkRemoveEventListener.bulkRemoveEventListener;
|
|
22
|
+
exports.clampNumber = require_utils_clampNumber.clampNumber;
|
|
23
23
|
exports.createPerformanceObserver = require_utils_performanceObserver_performanceObserver.createPerformanceObserver;
|
|
24
24
|
exports.createSafeProxy = require_utils_createSafeProxy_createSafeProxy.createSafeProxy;
|
|
25
25
|
exports.generateUUID = require_utils_generateUUID.generateUUID;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clampNumber } from "./clampNumber.cjs";
|
|
1
2
|
import { bulkAddEventListener } from "./bulkAddEventListener/bulkAddEventListener.cjs";
|
|
2
3
|
import { bulkRemoveEventListener } from "./bulkRemoveEventListener/bulkRemoveEventListener.cjs";
|
|
3
4
|
import { createSafeProxy } from "./createSafeProxy/createSafeProxy.cjs";
|
|
@@ -7,12 +8,11 @@ import { getIncrementedCount } from "./getIncrementedCount.cjs";
|
|
|
7
8
|
import { getVisibilityState } from "./getVisibilityState.cjs";
|
|
8
9
|
import { GLOBAL_CONFIG } from "./globalConfig.cjs";
|
|
9
10
|
import { isDeviceIdEnabled } from "./isDeviceIdEnabled.cjs";
|
|
10
|
-
import { MXLSpanStorage } from "./MXLSpanStorage/MXLSpanStorage.cjs";
|
|
11
11
|
import { NamespacedStorage } from "./NamespacedStorage/NamespacedStorage.cjs";
|
|
12
12
|
import { nsfConfigValidation } from "./nsfConfigValidation.cjs";
|
|
13
13
|
import { PerformanceManager } from "./PerformanceManager/types.cjs";
|
|
14
14
|
import { OTelPerformanceManager } from "./PerformanceManager/OTelPerformanceManager.cjs";
|
|
15
15
|
import { createPerformanceObserver, isEntryTypeSupported } from "./performanceObserver/performanceObserver.cjs";
|
|
16
|
-
import { throttle } from "./throttle.cjs";
|
|
16
|
+
import { ThrottledFunction, throttle } from "./throttle.cjs";
|
|
17
17
|
import { TimeoutRef } from "./timeout/types.cjs";
|
|
18
|
-
export { GLOBAL_CONFIG,
|
|
18
|
+
export { GLOBAL_CONFIG, NamespacedStorage, OTelPerformanceManager, type PerformanceManager, type ThrottledFunction, type TimeoutRef, bulkAddEventListener, bulkRemoveEventListener, clampNumber, createPerformanceObserver, createSafeProxy, generateUUID, generateWebVitalID, getIncrementedCount, getVisibilityState, isDeviceIdEnabled, isEntryTypeSupported, nsfConfigValidation, throttle };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clampNumber } from "./clampNumber.js";
|
|
1
2
|
import { bulkAddEventListener } from "./bulkAddEventListener/bulkAddEventListener.js";
|
|
2
3
|
import { bulkRemoveEventListener } from "./bulkRemoveEventListener/bulkRemoveEventListener.js";
|
|
3
4
|
import { createSafeProxy } from "./createSafeProxy/createSafeProxy.js";
|
|
@@ -7,12 +8,11 @@ import { getIncrementedCount } from "./getIncrementedCount.js";
|
|
|
7
8
|
import { getVisibilityState } from "./getVisibilityState.js";
|
|
8
9
|
import { GLOBAL_CONFIG } from "./globalConfig.js";
|
|
9
10
|
import { isDeviceIdEnabled } from "./isDeviceIdEnabled.js";
|
|
10
|
-
import { MXLSpanStorage } from "./MXLSpanStorage/MXLSpanStorage.js";
|
|
11
11
|
import { NamespacedStorage } from "./NamespacedStorage/NamespacedStorage.js";
|
|
12
12
|
import { nsfConfigValidation } from "./nsfConfigValidation.js";
|
|
13
13
|
import { PerformanceManager } from "./PerformanceManager/types.js";
|
|
14
14
|
import { OTelPerformanceManager } from "./PerformanceManager/OTelPerformanceManager.js";
|
|
15
15
|
import { createPerformanceObserver, isEntryTypeSupported } from "./performanceObserver/performanceObserver.js";
|
|
16
|
-
import { throttle } from "./throttle.js";
|
|
16
|
+
import { ThrottledFunction, throttle } from "./throttle.js";
|
|
17
17
|
import { TimeoutRef } from "./timeout/types.js";
|
|
18
|
-
export { GLOBAL_CONFIG,
|
|
18
|
+
export { GLOBAL_CONFIG, NamespacedStorage, OTelPerformanceManager, type PerformanceManager, type ThrottledFunction, type TimeoutRef, bulkAddEventListener, bulkRemoveEventListener, clampNumber, createPerformanceObserver, createSafeProxy, generateUUID, generateWebVitalID, getIncrementedCount, getVisibilityState, isDeviceIdEnabled, isEntryTypeSupported, nsfConfigValidation, throttle };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clampNumber } from "./clampNumber.js";
|
|
1
2
|
import { bulkAddEventListener } from "./bulkAddEventListener/bulkAddEventListener.js";
|
|
2
3
|
import { bulkRemoveEventListener } from "./bulkRemoveEventListener/bulkRemoveEventListener.js";
|
|
3
4
|
import { createSafeProxy } from "./createSafeProxy/createSafeProxy.js";
|
|
@@ -7,10 +8,9 @@ import { getIncrementedCount } from "./getIncrementedCount.js";
|
|
|
7
8
|
import { getVisibilityState } from "./getVisibilityState.js";
|
|
8
9
|
import { GLOBAL_CONFIG } from "./globalConfig.js";
|
|
9
10
|
import { isDeviceIdEnabled } from "./isDeviceIdEnabled.js";
|
|
10
|
-
import { MXLSpanStorage } from "./MXLSpanStorage/MXLSpanStorage.js";
|
|
11
11
|
import { NamespacedStorage } from "./NamespacedStorage/NamespacedStorage.js";
|
|
12
12
|
import { nsfConfigValidation } from "./nsfConfigValidation.js";
|
|
13
13
|
import { OTelPerformanceManager } from "./PerformanceManager/OTelPerformanceManager.js";
|
|
14
14
|
import { createPerformanceObserver, isEntryTypeSupported } from "./performanceObserver/performanceObserver.js";
|
|
15
15
|
import { throttle } from "./throttle.js";
|
|
16
|
-
export { GLOBAL_CONFIG,
|
|
16
|
+
export { GLOBAL_CONFIG, NamespacedStorage, OTelPerformanceManager, bulkAddEventListener, bulkRemoveEventListener, clampNumber, createPerformanceObserver, createSafeProxy, generateUUID, generateWebVitalID, getIncrementedCount, getVisibilityState, isDeviceIdEnabled, isEntryTypeSupported, nsfConfigValidation, throttle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDeviceIdEnabled.cjs","names":[],"sources":["../../src/utils/isDeviceIdEnabled.ts"],"sourcesContent":["const DIGITS = 6;\n\n/**\n * Determines whether a deviceId is enabled for the given pctEnabled. This is achieved\n * by taking a normalized hex value from the last 6 digits of the device ID, and comparing\n * it against the enabled percentage. This ensures that devices are consistently in a given\n * group for beta functionality.\n *\n * This can be used to:\n * - Select sample devices for telemetry collection\n * - Enable/disable features for a percentage of users\n *\n * The normalized device ID has 16^6 possibilities (roughly 1.6m) which should be sufficient\n * granularity for our needs.\n */\nexport const isDeviceIdEnabled = (deviceId: string, pctEnabled?: number) => {\n if (!pctEnabled || pctEnabled <= 0 || pctEnabled > 100) {\n return false;\n }\n\n const normalizedDeviceId = getNormalizedDeviceId(deviceId);\n\n return pctEnabled >= normalizedDeviceId;\n};\n\nexport const getNormalizedDeviceId = (deviceId: string): number => {\n if (deviceId.length < DIGITS) {\n return 0;\n }\n\n const finalChars = deviceId.slice(-DIGITS); //
|
|
1
|
+
{"version":3,"file":"isDeviceIdEnabled.cjs","names":[],"sources":["../../src/utils/isDeviceIdEnabled.ts"],"sourcesContent":["const DIGITS = 6;\n\n/**\n * Determines whether a deviceId is enabled for the given pctEnabled. This is achieved\n * by taking a normalized hex value from the last 6 digits of the device ID, and comparing\n * it against the enabled percentage. This ensures that devices are consistently in a given\n * group for beta functionality.\n *\n * This can be used to:\n * - Select sample devices for telemetry collection\n * - Enable/disable features for a percentage of users\n *\n * The normalized device ID has 16^6 possibilities (roughly 1.6m) which should be sufficient\n * granularity for our needs.\n */\nexport const isDeviceIdEnabled = (deviceId: string, pctEnabled?: number) => {\n if (!pctEnabled || pctEnabled <= 0 || pctEnabled > 100) {\n return false;\n }\n\n const normalizedDeviceId = getNormalizedDeviceId(deviceId);\n\n return pctEnabled >= normalizedDeviceId;\n};\n\nexport const getNormalizedDeviceId = (deviceId: string): number => {\n if (deviceId.length < DIGITS) {\n return 0;\n }\n\n const finalChars = deviceId.slice(-DIGITS); // Last 6 chars\n const radix = 16;\n const space = radix ** DIGITS - 1;\n const value = parseInt(finalChars, radix);\n\n return (value / space) * 100;\n};\n"],"mappings":";;AAAA,MAAM,SAAS;;;;;;;;;;;;;;AAef,MAAa,qBAAqB,UAAkB,eAAwB;AAC1E,KAAI,CAAC,cAAc,cAAc,KAAK,aAAa,IACjD,QAAO;AAKT,QAAO,cAFoB,sBAAsB,SAEV;;AAGzC,MAAa,yBAAyB,aAA6B;AACjE,KAAI,SAAS,SAAS,OACpB,QAAO;CAGT,MAAM,aAAa,SAAS,MAAM,CAAC,OAAO;CAC1C,MAAM,QAAQ;CACd,MAAM,QAAQ,SAAS,SAAS;AAGhC,QAFc,SAAS,YAAY,MAEtB,GAAG,QAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDeviceIdEnabled.js","names":[],"sources":["../../src/utils/isDeviceIdEnabled.ts"],"sourcesContent":["const DIGITS = 6;\n\n/**\n * Determines whether a deviceId is enabled for the given pctEnabled. This is achieved\n * by taking a normalized hex value from the last 6 digits of the device ID, and comparing\n * it against the enabled percentage. This ensures that devices are consistently in a given\n * group for beta functionality.\n *\n * This can be used to:\n * - Select sample devices for telemetry collection\n * - Enable/disable features for a percentage of users\n *\n * The normalized device ID has 16^6 possibilities (roughly 1.6m) which should be sufficient\n * granularity for our needs.\n */\nexport const isDeviceIdEnabled = (deviceId: string, pctEnabled?: number) => {\n if (!pctEnabled || pctEnabled <= 0 || pctEnabled > 100) {\n return false;\n }\n\n const normalizedDeviceId = getNormalizedDeviceId(deviceId);\n\n return pctEnabled >= normalizedDeviceId;\n};\n\nexport const getNormalizedDeviceId = (deviceId: string): number => {\n if (deviceId.length < DIGITS) {\n return 0;\n }\n\n const finalChars = deviceId.slice(-DIGITS); //
|
|
1
|
+
{"version":3,"file":"isDeviceIdEnabled.js","names":[],"sources":["../../src/utils/isDeviceIdEnabled.ts"],"sourcesContent":["const DIGITS = 6;\n\n/**\n * Determines whether a deviceId is enabled for the given pctEnabled. This is achieved\n * by taking a normalized hex value from the last 6 digits of the device ID, and comparing\n * it against the enabled percentage. This ensures that devices are consistently in a given\n * group for beta functionality.\n *\n * This can be used to:\n * - Select sample devices for telemetry collection\n * - Enable/disable features for a percentage of users\n *\n * The normalized device ID has 16^6 possibilities (roughly 1.6m) which should be sufficient\n * granularity for our needs.\n */\nexport const isDeviceIdEnabled = (deviceId: string, pctEnabled?: number) => {\n if (!pctEnabled || pctEnabled <= 0 || pctEnabled > 100) {\n return false;\n }\n\n const normalizedDeviceId = getNormalizedDeviceId(deviceId);\n\n return pctEnabled >= normalizedDeviceId;\n};\n\nexport const getNormalizedDeviceId = (deviceId: string): number => {\n if (deviceId.length < DIGITS) {\n return 0;\n }\n\n const finalChars = deviceId.slice(-DIGITS); // Last 6 chars\n const radix = 16;\n const space = radix ** DIGITS - 1;\n const value = parseInt(finalChars, radix);\n\n return (value / space) * 100;\n};\n"],"mappings":";AAAA,MAAM,SAAS;;;;;;;;;;;;;;AAef,MAAa,qBAAqB,UAAkB,eAAwB;AAC1E,KAAI,CAAC,cAAc,cAAc,KAAK,aAAa,IACjD,QAAO;AAKT,QAAO,cAFoB,sBAAsB,SAEV;;AAGzC,MAAa,yBAAyB,aAA6B;AACjE,KAAI,SAAS,SAAS,OACpB,QAAO;CAGT,MAAM,aAAa,SAAS,MAAM,CAAC,OAAO;CAC1C,MAAM,QAAQ;CACd,MAAM,QAAQ,SAAS,SAAS;AAGhC,QAFc,SAAS,YAAY,MAEtB,GAAG,QAAS"}
|
|
@@ -26,13 +26,13 @@ function createPerformanceObserver(type, processEntry, options) {
|
|
|
26
26
|
const observer = new PerformanceObserver((list) => {
|
|
27
27
|
for (const entry of list.getEntries()) try {
|
|
28
28
|
processEntry(entry);
|
|
29
|
-
} catch (
|
|
30
|
-
diag?.error(`error processing ${type} entry`,
|
|
29
|
+
} catch (error) {
|
|
30
|
+
diag?.error(`error processing ${type} entry`, error);
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
observer.observe({
|
|
34
|
-
type,
|
|
35
34
|
buffered: true,
|
|
35
|
+
type,
|
|
36
36
|
...observeOptions
|
|
37
37
|
});
|
|
38
38
|
return observer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performanceObserver.cjs","names":[],"sources":["../../../src/utils/performanceObserver/performanceObserver.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\nexport function isEntryTypeSupported(type: string): boolean {\n return (\n typeof PerformanceObserver !== 'undefined' &&\n (PerformanceObserver.supportedEntryTypes?.includes(type) ?? false)\n );\n}\n\n/**\n * Creates a PerformanceObserver for the specified entry type if supported, and starts observing.\n * Returns the observer instance, or null if the entry type is not supported or if an error occurs.\n *\n * Each entry is passed individually to `processEntry`. Errors thrown by `processEntry` are caught\n * and logged via `diag` (if provided) so that one bad entry does not block the rest.\n *\n * Note: The observer is created with the \"buffered\" option set to true, so it will receive entries\n * that were recorded before the observer was created.\n * buffered: true is not supported when observing multiple entry types, so if you need to observe\n * multiple types, you should create separate observers for each type with buffered: true.\n * See https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe#entrytypes\n */\nexport function createPerformanceObserver<T extends PerformanceEntry>(\n type: string,\n processEntry: (entry: T) => void,\n options?: PerformanceObserverInit & { diag?: DiagLogger },\n): PerformanceObserver | null {\n const { diag, ...observeOptions } = options ?? {};\n\n if (!isEntryTypeSupported(type)) {\n diag?.debug(`${type} not supported, skipping observer`);\n return null;\n }\n\n try {\n const observer = new PerformanceObserver((list) => {\n for (const entry of list.getEntries() as T[]) {\n try {\n processEntry(entry);\n } catch (
|
|
1
|
+
{"version":3,"file":"performanceObserver.cjs","names":[],"sources":["../../../src/utils/performanceObserver/performanceObserver.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\nexport function isEntryTypeSupported(type: string): boolean {\n return (\n typeof PerformanceObserver !== 'undefined' &&\n (PerformanceObserver.supportedEntryTypes?.includes(type) ?? false)\n );\n}\n\n/**\n * Creates a PerformanceObserver for the specified entry type if supported, and starts observing.\n * Returns the observer instance, or null if the entry type is not supported or if an error occurs.\n *\n * Each entry is passed individually to `processEntry`. Errors thrown by `processEntry` are caught\n * and logged via `diag` (if provided) so that one bad entry does not block the rest.\n *\n * Note: The observer is created with the \"buffered\" option set to true, so it will receive entries\n * that were recorded before the observer was created.\n * buffered: true is not supported when observing multiple entry types, so if you need to observe\n * multiple types, you should create separate observers for each type with buffered: true.\n * See https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe#entrytypes\n */\nexport function createPerformanceObserver<T extends PerformanceEntry>(\n type: string,\n processEntry: (entry: T) => void,\n options?: PerformanceObserverInit & { diag?: DiagLogger },\n): PerformanceObserver | null {\n const { diag, ...observeOptions } = options ?? {};\n\n if (!isEntryTypeSupported(type)) {\n diag?.debug(`${type} not supported, skipping observer`);\n return null;\n }\n\n try {\n const observer = new PerformanceObserver((list) => {\n for (const entry of list.getEntries() as T[]) {\n try {\n processEntry(entry);\n } catch (error) {\n diag?.error(`error processing ${type} entry`, error);\n }\n }\n });\n observer.observe({ buffered: true, type, ...observeOptions });\n return observer;\n } catch {\n return null;\n }\n}\n"],"mappings":";;AAEA,SAAgB,qBAAqB,MAAuB;AAC1D,QACE,OAAO,wBAAwB,gBAC9B,oBAAoB,qBAAqB,SAAS,KAAK,IAAI;;;;;;;;;;;;;;;AAiBhE,SAAgB,0BACd,MACA,cACA,SAC4B;CAC5B,MAAM,EAAE,MAAM,GAAG,mBAAmB,WAAW,EAAE;AAEjD,KAAI,CAAC,qBAAqB,KAAK,EAAE;AAC/B,QAAM,MAAM,GAAG,KAAK,mCAAmC;AACvD,SAAO;;AAGT,KAAI;EACF,MAAM,WAAW,IAAI,qBAAqB,SAAS;AACjD,QAAK,MAAM,SAAS,KAAK,YAAY,CACnC,KAAI;AACF,iBAAa,MAAM;YACZ,OAAO;AACd,UAAM,MAAM,oBAAoB,KAAK,SAAS,MAAM;;IAGxD;AACF,WAAS,QAAQ;GAAE,UAAU;GAAM;GAAM,GAAG;GAAgB,CAAC;AAC7D,SAAO;SACD;AACN,SAAO"}
|
|
@@ -25,13 +25,13 @@ function createPerformanceObserver(type, processEntry, options) {
|
|
|
25
25
|
const observer = new PerformanceObserver((list) => {
|
|
26
26
|
for (const entry of list.getEntries()) try {
|
|
27
27
|
processEntry(entry);
|
|
28
|
-
} catch (
|
|
29
|
-
diag?.error(`error processing ${type} entry`,
|
|
28
|
+
} catch (error) {
|
|
29
|
+
diag?.error(`error processing ${type} entry`, error);
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
observer.observe({
|
|
33
|
-
type,
|
|
34
33
|
buffered: true,
|
|
34
|
+
type,
|
|
35
35
|
...observeOptions
|
|
36
36
|
});
|
|
37
37
|
return observer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performanceObserver.js","names":[],"sources":["../../../src/utils/performanceObserver/performanceObserver.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\nexport function isEntryTypeSupported(type: string): boolean {\n return (\n typeof PerformanceObserver !== 'undefined' &&\n (PerformanceObserver.supportedEntryTypes?.includes(type) ?? false)\n );\n}\n\n/**\n * Creates a PerformanceObserver for the specified entry type if supported, and starts observing.\n * Returns the observer instance, or null if the entry type is not supported or if an error occurs.\n *\n * Each entry is passed individually to `processEntry`. Errors thrown by `processEntry` are caught\n * and logged via `diag` (if provided) so that one bad entry does not block the rest.\n *\n * Note: The observer is created with the \"buffered\" option set to true, so it will receive entries\n * that were recorded before the observer was created.\n * buffered: true is not supported when observing multiple entry types, so if you need to observe\n * multiple types, you should create separate observers for each type with buffered: true.\n * See https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe#entrytypes\n */\nexport function createPerformanceObserver<T extends PerformanceEntry>(\n type: string,\n processEntry: (entry: T) => void,\n options?: PerformanceObserverInit & { diag?: DiagLogger },\n): PerformanceObserver | null {\n const { diag, ...observeOptions } = options ?? {};\n\n if (!isEntryTypeSupported(type)) {\n diag?.debug(`${type} not supported, skipping observer`);\n return null;\n }\n\n try {\n const observer = new PerformanceObserver((list) => {\n for (const entry of list.getEntries() as T[]) {\n try {\n processEntry(entry);\n } catch (
|
|
1
|
+
{"version":3,"file":"performanceObserver.js","names":[],"sources":["../../../src/utils/performanceObserver/performanceObserver.ts"],"sourcesContent":["import type { DiagLogger } from '@opentelemetry/api';\n\nexport function isEntryTypeSupported(type: string): boolean {\n return (\n typeof PerformanceObserver !== 'undefined' &&\n (PerformanceObserver.supportedEntryTypes?.includes(type) ?? false)\n );\n}\n\n/**\n * Creates a PerformanceObserver for the specified entry type if supported, and starts observing.\n * Returns the observer instance, or null if the entry type is not supported or if an error occurs.\n *\n * Each entry is passed individually to `processEntry`. Errors thrown by `processEntry` are caught\n * and logged via `diag` (if provided) so that one bad entry does not block the rest.\n *\n * Note: The observer is created with the \"buffered\" option set to true, so it will receive entries\n * that were recorded before the observer was created.\n * buffered: true is not supported when observing multiple entry types, so if you need to observe\n * multiple types, you should create separate observers for each type with buffered: true.\n * See https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe#entrytypes\n */\nexport function createPerformanceObserver<T extends PerformanceEntry>(\n type: string,\n processEntry: (entry: T) => void,\n options?: PerformanceObserverInit & { diag?: DiagLogger },\n): PerformanceObserver | null {\n const { diag, ...observeOptions } = options ?? {};\n\n if (!isEntryTypeSupported(type)) {\n diag?.debug(`${type} not supported, skipping observer`);\n return null;\n }\n\n try {\n const observer = new PerformanceObserver((list) => {\n for (const entry of list.getEntries() as T[]) {\n try {\n processEntry(entry);\n } catch (error) {\n diag?.error(`error processing ${type} entry`, error);\n }\n }\n });\n observer.observe({ buffered: true, type, ...observeOptions });\n return observer;\n } catch {\n return null;\n }\n}\n"],"mappings":";AAEA,SAAgB,qBAAqB,MAAuB;AAC1D,QACE,OAAO,wBAAwB,gBAC9B,oBAAoB,qBAAqB,SAAS,KAAK,IAAI;;;;;;;;;;;;;;;AAiBhE,SAAgB,0BACd,MACA,cACA,SAC4B;CAC5B,MAAM,EAAE,MAAM,GAAG,mBAAmB,WAAW,EAAE;AAEjD,KAAI,CAAC,qBAAqB,KAAK,EAAE;AAC/B,QAAM,MAAM,GAAG,KAAK,mCAAmC;AACvD,SAAO;;AAGT,KAAI;EACF,MAAM,WAAW,IAAI,qBAAqB,SAAS;AACjD,QAAK,MAAM,SAAS,KAAK,YAAY,CACnC,KAAI;AACF,iBAAa,MAAM;YACZ,OAAO;AACd,UAAM,MAAM,oBAAoB,KAAK,SAAS,MAAM;;IAGxD;AACF,WAAS,QAAQ;GAAE,UAAU;GAAM;GAAM,GAAG;GAAgB,CAAC;AAC7D,SAAO;SACD;AACN,SAAO"}
|
package/dist/utils/throttle.cjs
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/utils/throttle.ts
|
|
3
|
-
/** throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again
|
|
4
|
-
* any subsequent calls before the time window has passed will be ignored.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: if the wrapped function makes use of "this", it must be properly bind from the caller, as this wrapper will not bind it.
|
|
7
|
-
* For this, we suggest you always pass functions declared as fat arrow functions, as they have their "this" lexically defined.
|
|
8
|
-
* */
|
|
9
3
|
const throttle = (func, timeout = 1e3) => {
|
|
10
4
|
let isWaiting = false;
|
|
11
|
-
|
|
5
|
+
let timeoutId = null;
|
|
6
|
+
const throttled = ((...args) => {
|
|
12
7
|
if (isWaiting) return;
|
|
13
8
|
func(...args);
|
|
14
|
-
|
|
9
|
+
isWaiting = true;
|
|
10
|
+
timeoutId = setTimeout(() => {
|
|
15
11
|
isWaiting = false;
|
|
12
|
+
timeoutId = null;
|
|
16
13
|
}, timeout);
|
|
17
|
-
|
|
14
|
+
});
|
|
15
|
+
throttled.cancel = () => {
|
|
16
|
+
if (timeoutId !== null) {
|
|
17
|
+
clearTimeout(timeoutId);
|
|
18
|
+
timeoutId = null;
|
|
19
|
+
}
|
|
20
|
+
isWaiting = false;
|
|
18
21
|
};
|
|
22
|
+
return throttled;
|
|
19
23
|
};
|
|
20
24
|
//#endregion
|
|
21
25
|
exports.throttle = throttle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.cjs","names":[],"sources":["../../src/utils/throttle.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"throttle.cjs","names":[],"sources":["../../src/utils/throttle.ts"],"sourcesContent":["/** Throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again\n * any subsequent calls before the time window has passed will be ignored.\n *\n * NOTE: if the wrapped function makes use of \"this\", it must be properly bind from the caller, as this wrapper will not bind it.\n * For this, we suggest you always pass functions declared as fat arrow functions, as they have their \"this\" lexically defined.\n * */\nexport type ThrottledFunction<F extends (...args: never[]) => unknown> = ((\n ...args: Parameters<F>\n) => ReturnType<F>) & {\n cancel: () => void;\n};\n\nexport const throttle = <F extends (...args: Parameters<F>) => ReturnType<F>>(\n func: F,\n timeout = 1000,\n): ThrottledFunction<F> => {\n let isWaiting = false;\n let timeoutId: ReturnType<typeof setTimeout> | null = null;\n\n const throttled = ((...args: Parameters<F>) => {\n if (isWaiting) {\n return;\n }\n func(...args);\n isWaiting = true;\n timeoutId = setTimeout(() => {\n isWaiting = false;\n timeoutId = null;\n }, timeout);\n }) as ThrottledFunction<F>;\n\n throttled.cancel = () => {\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n isWaiting = false;\n };\n\n return throttled;\n};\n"],"mappings":";;AAYA,MAAa,YACX,MACA,UAAU,QACe;CACzB,IAAI,YAAY;CAChB,IAAI,YAAkD;CAEtD,MAAM,cAAc,GAAG,SAAwB;AAC7C,MAAI,UACF;AAEF,OAAK,GAAG,KAAK;AACb,cAAY;AACZ,cAAY,iBAAiB;AAC3B,eAAY;AACZ,eAAY;KACX,QAAQ;;AAGb,WAAU,eAAe;AACvB,MAAI,cAAc,MAAM;AACtB,gBAAa,UAAU;AACvB,eAAY;;AAEd,cAAY;;AAGd,QAAO"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
//#region src/utils/throttle.d.ts
|
|
2
|
-
/**
|
|
2
|
+
/** Throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again
|
|
3
3
|
* any subsequent calls before the time window has passed will be ignored.
|
|
4
4
|
*
|
|
5
5
|
* NOTE: if the wrapped function makes use of "this", it must be properly bind from the caller, as this wrapper will not bind it.
|
|
6
6
|
* For this, we suggest you always pass functions declared as fat arrow functions, as they have their "this" lexically defined.
|
|
7
7
|
* */
|
|
8
|
-
|
|
8
|
+
type ThrottledFunction<F extends (...args: never[]) => unknown> = ((...args: Parameters<F>) => ReturnType<F>) & {
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const throttle: <F extends (...args: Parameters<F>) => ReturnType<F>>(func: F, timeout?: number) => ThrottledFunction<F>;
|
|
9
12
|
//#endregion
|
|
10
|
-
export { throttle };
|
|
13
|
+
export { ThrottledFunction, throttle };
|
|
11
14
|
//# sourceMappingURL=throttle.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.d.cts","names":[],"sources":["../../src/utils/throttle.ts"],"mappings":";;AAMA;;;;;
|
|
1
|
+
{"version":3,"file":"throttle.d.cts","names":[],"sources":["../../src/utils/throttle.ts"],"mappings":";;AAMA;;;;;KAAY,iBAAA,eAAgC,IAAA,8BACvC,IAAA,EAAM,UAAA,CAAW,CAAA,MACjB,UAAA,CAAW,CAAA;EACd,MAAA;AAAA;AAAA,cAGW,QAAA,iBAA0B,IAAA,EAAM,UAAA,CAAW,CAAA,MAAO,UAAA,CAAW,CAAA,GACxE,IAAA,EAAM,CAAA,EACN,OAAA,cACC,iBAAA,CAAkB,CAAA"}
|
package/dist/utils/throttle.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
//#region src/utils/throttle.d.ts
|
|
2
|
-
/**
|
|
2
|
+
/** Throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again
|
|
3
3
|
* any subsequent calls before the time window has passed will be ignored.
|
|
4
4
|
*
|
|
5
5
|
* NOTE: if the wrapped function makes use of "this", it must be properly bind from the caller, as this wrapper will not bind it.
|
|
6
6
|
* For this, we suggest you always pass functions declared as fat arrow functions, as they have their "this" lexically defined.
|
|
7
7
|
* */
|
|
8
|
-
|
|
8
|
+
type ThrottledFunction<F extends (...args: never[]) => unknown> = ((...args: Parameters<F>) => ReturnType<F>) & {
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const throttle: <F extends (...args: Parameters<F>) => ReturnType<F>>(func: F, timeout?: number) => ThrottledFunction<F>;
|
|
9
12
|
//#endregion
|
|
10
|
-
export { throttle };
|
|
13
|
+
export { ThrottledFunction, throttle };
|
|
11
14
|
//# sourceMappingURL=throttle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.d.ts","names":[],"sources":["../../src/utils/throttle.ts"],"mappings":";;AAMA;;;;;
|
|
1
|
+
{"version":3,"file":"throttle.d.ts","names":[],"sources":["../../src/utils/throttle.ts"],"mappings":";;AAMA;;;;;KAAY,iBAAA,eAAgC,IAAA,8BACvC,IAAA,EAAM,UAAA,CAAW,CAAA,MACjB,UAAA,CAAW,CAAA;EACd,MAAA;AAAA;AAAA,cAGW,QAAA,iBAA0B,IAAA,EAAM,UAAA,CAAW,CAAA,MAAO,UAAA,CAAW,CAAA,GACxE,IAAA,EAAM,CAAA,EACN,OAAA,cACC,iBAAA,CAAkB,CAAA"}
|
package/dist/utils/throttle.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
//#region src/utils/throttle.ts
|
|
2
|
-
/** throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again
|
|
3
|
-
* any subsequent calls before the time window has passed will be ignored.
|
|
4
|
-
*
|
|
5
|
-
* NOTE: if the wrapped function makes use of "this", it must be properly bind from the caller, as this wrapper will not bind it.
|
|
6
|
-
* For this, we suggest you always pass functions declared as fat arrow functions, as they have their "this" lexically defined.
|
|
7
|
-
* */
|
|
8
2
|
const throttle = (func, timeout = 1e3) => {
|
|
9
3
|
let isWaiting = false;
|
|
10
|
-
|
|
4
|
+
let timeoutId = null;
|
|
5
|
+
const throttled = ((...args) => {
|
|
11
6
|
if (isWaiting) return;
|
|
12
7
|
func(...args);
|
|
13
|
-
|
|
8
|
+
isWaiting = true;
|
|
9
|
+
timeoutId = setTimeout(() => {
|
|
14
10
|
isWaiting = false;
|
|
11
|
+
timeoutId = null;
|
|
15
12
|
}, timeout);
|
|
16
|
-
|
|
13
|
+
});
|
|
14
|
+
throttled.cancel = () => {
|
|
15
|
+
if (timeoutId !== null) {
|
|
16
|
+
clearTimeout(timeoutId);
|
|
17
|
+
timeoutId = null;
|
|
18
|
+
}
|
|
19
|
+
isWaiting = false;
|
|
17
20
|
};
|
|
21
|
+
return throttled;
|
|
18
22
|
};
|
|
19
23
|
//#endregion
|
|
20
24
|
export { throttle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","names":[],"sources":["../../src/utils/throttle.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"throttle.js","names":[],"sources":["../../src/utils/throttle.ts"],"sourcesContent":["/** Throttle wraps a function so it can only be called once, and then a time window must pass before it can be called again\n * any subsequent calls before the time window has passed will be ignored.\n *\n * NOTE: if the wrapped function makes use of \"this\", it must be properly bind from the caller, as this wrapper will not bind it.\n * For this, we suggest you always pass functions declared as fat arrow functions, as they have their \"this\" lexically defined.\n * */\nexport type ThrottledFunction<F extends (...args: never[]) => unknown> = ((\n ...args: Parameters<F>\n) => ReturnType<F>) & {\n cancel: () => void;\n};\n\nexport const throttle = <F extends (...args: Parameters<F>) => ReturnType<F>>(\n func: F,\n timeout = 1000,\n): ThrottledFunction<F> => {\n let isWaiting = false;\n let timeoutId: ReturnType<typeof setTimeout> | null = null;\n\n const throttled = ((...args: Parameters<F>) => {\n if (isWaiting) {\n return;\n }\n func(...args);\n isWaiting = true;\n timeoutId = setTimeout(() => {\n isWaiting = false;\n timeoutId = null;\n }, timeout);\n }) as ThrottledFunction<F>;\n\n throttled.cancel = () => {\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n isWaiting = false;\n };\n\n return throttled;\n};\n"],"mappings":";AAYA,MAAa,YACX,MACA,UAAU,QACe;CACzB,IAAI,YAAY;CAChB,IAAI,YAAkD;CAEtD,MAAM,cAAc,GAAG,SAAwB;AAC7C,MAAI,UACF;AAEF,OAAK,GAAG,KAAK;AACb,cAAY;AACZ,cAAY,iBAAiB;AAC3B,eAAY;AACZ,eAAY;KACX,QAAQ;;AAGb,WAAU,eAAe;AACvB,MAAI,cAAc,MAAM;AACtB,gBAAa,UAAU;AACvB,eAAY;;AAEd,cAAY;;AAGd,QAAO"}
|