@elenjical-ai/browser 0.0.0-stage → 10.76.2
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/LICENSE +21 -0
- package/README.md +57 -2
- package/build/npm/cjs/dev/client.js +77 -0
- package/build/npm/cjs/dev/client.js.map +1 -0
- package/build/npm/cjs/dev/debug-build.js +6 -0
- package/build/npm/cjs/dev/debug-build.js.map +1 -0
- package/build/npm/cjs/dev/diagnose-sdk.js +34 -0
- package/build/npm/cjs/dev/diagnose-sdk.js.map +1 -0
- package/build/npm/cjs/dev/eventbuilder.js +231 -0
- package/build/npm/cjs/dev/eventbuilder.js.map +1 -0
- package/build/npm/cjs/dev/feedbackAsync.js +11 -0
- package/build/npm/cjs/dev/feedbackAsync.js.map +1 -0
- package/build/npm/cjs/dev/feedbackSync.js +11 -0
- package/build/npm/cjs/dev/feedbackSync.js.map +1 -0
- package/build/npm/cjs/dev/helpers.js +108 -0
- package/build/npm/cjs/dev/helpers.js.map +1 -0
- package/build/npm/cjs/dev/index.js +208 -0
- package/build/npm/cjs/dev/index.js.map +1 -0
- package/build/npm/cjs/dev/integrations/breadcrumbs.js +249 -0
- package/build/npm/cjs/dev/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/cjs/dev/integrations/browserapierrors.js +167 -0
- package/build/npm/cjs/dev/integrations/browserapierrors.js.map +1 -0
- package/build/npm/cjs/dev/integrations/browsersession.js +50 -0
- package/build/npm/cjs/dev/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/dev/integrations/contextlines.js +53 -0
- package/build/npm/cjs/dev/integrations/contextlines.js.map +1 -0
- package/build/npm/cjs/dev/integrations/culturecontext.js +50 -0
- package/build/npm/cjs/dev/integrations/culturecontext.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/growthbook/integration.js +8 -0
- package/build/npm/cjs/dev/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/launchdarkly/integration.js +30 -0
- package/build/npm/cjs/dev/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/openfeature/integration.js +32 -0
- package/build/npm/cjs/dev/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/statsig/integration.js +23 -0
- package/build/npm/cjs/dev/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/unleash/integration.js +37 -0
- package/build/npm/cjs/dev/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js +60 -0
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/cjs/dev/integrations/globalhandlers.js +143 -0
- package/build/npm/cjs/dev/integrations/globalhandlers.js.map +1 -0
- package/build/npm/cjs/dev/integrations/graphqlClient.js +148 -0
- package/build/npm/cjs/dev/integrations/graphqlClient.js.map +1 -0
- package/build/npm/cjs/dev/integrations/httpclient.js +250 -0
- package/build/npm/cjs/dev/integrations/httpclient.js.map +1 -0
- package/build/npm/cjs/dev/integrations/httpcontext.js +47 -0
- package/build/npm/cjs/dev/integrations/httpcontext.js.map +1 -0
- package/build/npm/cjs/dev/integrations/linkederrors.js +31 -0
- package/build/npm/cjs/dev/integrations/linkederrors.js.map +1 -0
- package/build/npm/cjs/dev/integrations/reportingobserver.js +60 -0
- package/build/npm/cjs/dev/integrations/reportingobserver.js.map +1 -0
- package/build/npm/cjs/dev/integrations/spanstreaming.js +49 -0
- package/build/npm/cjs/dev/integrations/spanstreaming.js.map +1 -0
- package/build/npm/cjs/dev/integrations/spotlight.js +61 -0
- package/build/npm/cjs/dev/integrations/spotlight.js.map +1 -0
- package/build/npm/cjs/dev/integrations/view-hierarchy.js +74 -0
- package/build/npm/cjs/dev/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/cjs/dev/integrations/webVitals.js +62 -0
- package/build/npm/cjs/dev/integrations/webVitals.js.map +1 -0
- package/build/npm/cjs/dev/integrations/webWorker.js +133 -0
- package/build/npm/cjs/dev/integrations/webWorker.js.map +1 -0
- package/build/npm/cjs/dev/normalizeStringifyValue.js +27 -0
- package/build/npm/cjs/dev/normalizeStringifyValue.js.map +1 -0
- package/build/npm/cjs/dev/profiling/UIProfiler.js +306 -0
- package/build/npm/cjs/dev/profiling/UIProfiler.js.map +1 -0
- package/build/npm/cjs/dev/profiling/index.js +38 -0
- package/build/npm/cjs/dev/profiling/index.js.map +1 -0
- package/build/npm/cjs/dev/profiling/integration.js +120 -0
- package/build/npm/cjs/dev/profiling/integration.js.map +1 -0
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js +91 -0
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/cjs/dev/profiling/utils.js +498 -0
- package/build/npm/cjs/dev/profiling/utils.js.map +1 -0
- package/build/npm/cjs/dev/report-dialog.js +53 -0
- package/build/npm/cjs/dev/report-dialog.js.map +1 -0
- package/build/npm/cjs/dev/sdk.js +70 -0
- package/build/npm/cjs/dev/sdk.js.map +1 -0
- package/build/npm/cjs/dev/stack-parsers.js +118 -0
- package/build/npm/cjs/dev/stack-parsers.js.map +1 -0
- package/build/npm/cjs/dev/tracing/backgroundtab.js +34 -0
- package/build/npm/cjs/dev/tracing/backgroundtab.js.map +1 -0
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +437 -0
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/cjs/dev/tracing/linkedTraces.js +140 -0
- package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -0
- package/build/npm/cjs/dev/tracing/reportPageLoaded.js +10 -0
- package/build/npm/cjs/dev/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/cjs/dev/tracing/request.js +236 -0
- package/build/npm/cjs/dev/tracing/request.js.map +1 -0
- package/build/npm/cjs/dev/tracing/setActiveSpan.js +21 -0
- package/build/npm/cjs/dev/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/cjs/dev/tracing/utils.js +31 -0
- package/build/npm/cjs/dev/tracing/utils.js.map +1 -0
- package/build/npm/cjs/dev/transports/fetch.js +58 -0
- package/build/npm/cjs/dev/transports/fetch.js.map +1 -0
- package/build/npm/cjs/dev/transports/offline.js +111 -0
- package/build/npm/cjs/dev/transports/offline.js.map +1 -0
- package/build/npm/cjs/dev/userfeedback.js +32 -0
- package/build/npm/cjs/dev/userfeedback.js.map +1 -0
- package/build/npm/cjs/dev/utils/detectBrowserExtension.js +38 -0
- package/build/npm/cjs/dev/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js +92 -0
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/cjs/prod/client.js +77 -0
- package/build/npm/cjs/prod/client.js.map +1 -0
- package/build/npm/cjs/prod/debug-build.js +6 -0
- package/build/npm/cjs/prod/debug-build.js.map +1 -0
- package/build/npm/cjs/prod/diagnose-sdk.js +34 -0
- package/build/npm/cjs/prod/diagnose-sdk.js.map +1 -0
- package/build/npm/cjs/prod/eventbuilder.js +231 -0
- package/build/npm/cjs/prod/eventbuilder.js.map +1 -0
- package/build/npm/cjs/prod/feedbackAsync.js +11 -0
- package/build/npm/cjs/prod/feedbackAsync.js.map +1 -0
- package/build/npm/cjs/prod/feedbackSync.js +11 -0
- package/build/npm/cjs/prod/feedbackSync.js.map +1 -0
- package/build/npm/cjs/prod/helpers.js +108 -0
- package/build/npm/cjs/prod/helpers.js.map +1 -0
- package/build/npm/cjs/prod/index.js +208 -0
- package/build/npm/cjs/prod/index.js.map +1 -0
- package/build/npm/cjs/prod/integrations/breadcrumbs.js +249 -0
- package/build/npm/cjs/prod/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/cjs/prod/integrations/browserapierrors.js +167 -0
- package/build/npm/cjs/prod/integrations/browserapierrors.js.map +1 -0
- package/build/npm/cjs/prod/integrations/browsersession.js +50 -0
- package/build/npm/cjs/prod/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/prod/integrations/contextlines.js +53 -0
- package/build/npm/cjs/prod/integrations/contextlines.js.map +1 -0
- package/build/npm/cjs/prod/integrations/culturecontext.js +50 -0
- package/build/npm/cjs/prod/integrations/culturecontext.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/growthbook/integration.js +8 -0
- package/build/npm/cjs/prod/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/launchdarkly/integration.js +30 -0
- package/build/npm/cjs/prod/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/openfeature/integration.js +32 -0
- package/build/npm/cjs/prod/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/statsig/integration.js +23 -0
- package/build/npm/cjs/prod/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/unleash/integration.js +37 -0
- package/build/npm/cjs/prod/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js +60 -0
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/cjs/prod/integrations/globalhandlers.js +143 -0
- package/build/npm/cjs/prod/integrations/globalhandlers.js.map +1 -0
- package/build/npm/cjs/prod/integrations/graphqlClient.js +148 -0
- package/build/npm/cjs/prod/integrations/graphqlClient.js.map +1 -0
- package/build/npm/cjs/prod/integrations/httpclient.js +250 -0
- package/build/npm/cjs/prod/integrations/httpclient.js.map +1 -0
- package/build/npm/cjs/prod/integrations/httpcontext.js +47 -0
- package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -0
- package/build/npm/cjs/prod/integrations/linkederrors.js +31 -0
- package/build/npm/cjs/prod/integrations/linkederrors.js.map +1 -0
- package/build/npm/cjs/prod/integrations/reportingobserver.js +60 -0
- package/build/npm/cjs/prod/integrations/reportingobserver.js.map +1 -0
- package/build/npm/cjs/prod/integrations/spanstreaming.js +49 -0
- package/build/npm/cjs/prod/integrations/spanstreaming.js.map +1 -0
- package/build/npm/cjs/prod/integrations/spotlight.js +61 -0
- package/build/npm/cjs/prod/integrations/spotlight.js.map +1 -0
- package/build/npm/cjs/prod/integrations/view-hierarchy.js +74 -0
- package/build/npm/cjs/prod/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/cjs/prod/integrations/webVitals.js +62 -0
- package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -0
- package/build/npm/cjs/prod/integrations/webWorker.js +133 -0
- package/build/npm/cjs/prod/integrations/webWorker.js.map +1 -0
- package/build/npm/cjs/prod/normalizeStringifyValue.js +27 -0
- package/build/npm/cjs/prod/normalizeStringifyValue.js.map +1 -0
- package/build/npm/cjs/prod/profiling/UIProfiler.js +306 -0
- package/build/npm/cjs/prod/profiling/UIProfiler.js.map +1 -0
- package/build/npm/cjs/prod/profiling/index.js +38 -0
- package/build/npm/cjs/prod/profiling/index.js.map +1 -0
- package/build/npm/cjs/prod/profiling/integration.js +120 -0
- package/build/npm/cjs/prod/profiling/integration.js.map +1 -0
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js +91 -0
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/cjs/prod/profiling/utils.js +498 -0
- package/build/npm/cjs/prod/profiling/utils.js.map +1 -0
- package/build/npm/cjs/prod/report-dialog.js +53 -0
- package/build/npm/cjs/prod/report-dialog.js.map +1 -0
- package/build/npm/cjs/prod/sdk.js +60 -0
- package/build/npm/cjs/prod/sdk.js.map +1 -0
- package/build/npm/cjs/prod/stack-parsers.js +118 -0
- package/build/npm/cjs/prod/stack-parsers.js.map +1 -0
- package/build/npm/cjs/prod/tracing/backgroundtab.js +34 -0
- package/build/npm/cjs/prod/tracing/backgroundtab.js.map +1 -0
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +437 -0
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/cjs/prod/tracing/linkedTraces.js +139 -0
- package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -0
- package/build/npm/cjs/prod/tracing/reportPageLoaded.js +10 -0
- package/build/npm/cjs/prod/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/cjs/prod/tracing/request.js +236 -0
- package/build/npm/cjs/prod/tracing/request.js.map +1 -0
- package/build/npm/cjs/prod/tracing/setActiveSpan.js +21 -0
- package/build/npm/cjs/prod/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/cjs/prod/tracing/utils.js +31 -0
- package/build/npm/cjs/prod/tracing/utils.js.map +1 -0
- package/build/npm/cjs/prod/transports/fetch.js +58 -0
- package/build/npm/cjs/prod/transports/fetch.js.map +1 -0
- package/build/npm/cjs/prod/transports/offline.js +111 -0
- package/build/npm/cjs/prod/transports/offline.js.map +1 -0
- package/build/npm/cjs/prod/userfeedback.js +32 -0
- package/build/npm/cjs/prod/userfeedback.js.map +1 -0
- package/build/npm/cjs/prod/utils/detectBrowserExtension.js +38 -0
- package/build/npm/cjs/prod/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js +92 -0
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/esm/dev/client.js +74 -0
- package/build/npm/esm/dev/client.js.map +1 -0
- package/build/npm/esm/dev/debug-build.js +4 -0
- package/build/npm/esm/dev/debug-build.js.map +1 -0
- package/build/npm/esm/dev/diagnose-sdk.js +32 -0
- package/build/npm/esm/dev/diagnose-sdk.js.map +1 -0
- package/build/npm/esm/dev/eventbuilder.js +224 -0
- package/build/npm/esm/dev/eventbuilder.js.map +1 -0
- package/build/npm/esm/dev/feedbackAsync.js +9 -0
- package/build/npm/esm/dev/feedbackAsync.js.map +1 -0
- package/build/npm/esm/dev/feedbackSync.js +9 -0
- package/build/npm/esm/dev/feedbackSync.js.map +1 -0
- package/build/npm/esm/dev/helpers.js +102 -0
- package/build/npm/esm/dev/helpers.js.map +1 -0
- package/build/npm/esm/dev/index.js +48 -0
- package/build/npm/esm/dev/index.js.map +1 -0
- package/build/npm/esm/dev/integrations/breadcrumbs.js +247 -0
- package/build/npm/esm/dev/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/esm/dev/integrations/browserapierrors.js +165 -0
- package/build/npm/esm/dev/integrations/browserapierrors.js.map +1 -0
- package/build/npm/esm/dev/integrations/browsersession.js +48 -0
- package/build/npm/esm/dev/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/dev/integrations/contextlines.js +50 -0
- package/build/npm/esm/dev/integrations/contextlines.js.map +1 -0
- package/build/npm/esm/dev/integrations/culturecontext.js +48 -0
- package/build/npm/esm/dev/integrations/culturecontext.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/growthbook/integration.js +6 -0
- package/build/npm/esm/dev/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/launchdarkly/integration.js +27 -0
- package/build/npm/esm/dev/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/openfeature/integration.js +29 -0
- package/build/npm/esm/dev/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/statsig/integration.js +21 -0
- package/build/npm/esm/dev/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/unleash/integration.js +35 -0
- package/build/npm/esm/dev/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js +58 -0
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/esm/dev/integrations/globalhandlers.js +139 -0
- package/build/npm/esm/dev/integrations/globalhandlers.js.map +1 -0
- package/build/npm/esm/dev/integrations/graphqlClient.js +142 -0
- package/build/npm/esm/dev/integrations/graphqlClient.js.map +1 -0
- package/build/npm/esm/dev/integrations/httpclient.js +248 -0
- package/build/npm/esm/dev/integrations/httpclient.js.map +1 -0
- package/build/npm/esm/dev/integrations/httpcontext.js +45 -0
- package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -0
- package/build/npm/esm/dev/integrations/linkederrors.js +29 -0
- package/build/npm/esm/dev/integrations/linkederrors.js.map +1 -0
- package/build/npm/esm/dev/integrations/reportingobserver.js +58 -0
- package/build/npm/esm/dev/integrations/reportingobserver.js.map +1 -0
- package/build/npm/esm/dev/integrations/spanstreaming.js +47 -0
- package/build/npm/esm/dev/integrations/spanstreaming.js.map +1 -0
- package/build/npm/esm/dev/integrations/spotlight.js +57 -0
- package/build/npm/esm/dev/integrations/spotlight.js.map +1 -0
- package/build/npm/esm/dev/integrations/view-hierarchy.js +72 -0
- package/build/npm/esm/dev/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/esm/dev/integrations/webVitals.js +59 -0
- package/build/npm/esm/dev/integrations/webVitals.js.map +1 -0
- package/build/npm/esm/dev/integrations/webWorker.js +129 -0
- package/build/npm/esm/dev/integrations/webWorker.js.map +1 -0
- package/build/npm/esm/dev/normalizeStringifyValue.js +25 -0
- package/build/npm/esm/dev/normalizeStringifyValue.js.map +1 -0
- package/build/npm/esm/dev/package.json +1 -0
- package/build/npm/esm/dev/profiling/UIProfiler.js +304 -0
- package/build/npm/esm/dev/profiling/UIProfiler.js.map +1 -0
- package/build/npm/esm/dev/profiling/index.js +36 -0
- package/build/npm/esm/dev/profiling/index.js.map +1 -0
- package/build/npm/esm/dev/profiling/integration.js +118 -0
- package/build/npm/esm/dev/profiling/integration.js.map +1 -0
- package/build/npm/esm/dev/profiling/startProfileForSpan.js +89 -0
- package/build/npm/esm/dev/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/esm/dev/profiling/utils.js +474 -0
- package/build/npm/esm/dev/profiling/utils.js.map +1 -0
- package/build/npm/esm/dev/report-dialog.js +51 -0
- package/build/npm/esm/dev/report-dialog.js.map +1 -0
- package/build/npm/esm/dev/sdk.js +65 -0
- package/build/npm/esm/dev/sdk.js.map +1 -0
- package/build/npm/esm/dev/stack-parsers.js +110 -0
- package/build/npm/esm/dev/stack-parsers.js.map +1 -0
- package/build/npm/esm/dev/tracing/backgroundtab.js +32 -0
- package/build/npm/esm/dev/tracing/backgroundtab.js.map +1 -0
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js +429 -0
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/esm/dev/tracing/linkedTraces.js +131 -0
- package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -0
- package/build/npm/esm/dev/tracing/reportPageLoaded.js +8 -0
- package/build/npm/esm/dev/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/esm/dev/tracing/request.js +232 -0
- package/build/npm/esm/dev/tracing/request.js.map +1 -0
- package/build/npm/esm/dev/tracing/setActiveSpan.js +19 -0
- package/build/npm/esm/dev/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/esm/dev/tracing/utils.js +26 -0
- package/build/npm/esm/dev/tracing/utils.js.map +1 -0
- package/build/npm/esm/dev/transports/fetch.js +56 -0
- package/build/npm/esm/dev/transports/fetch.js.map +1 -0
- package/build/npm/esm/dev/transports/offline.js +105 -0
- package/build/npm/esm/dev/transports/offline.js.map +1 -0
- package/build/npm/esm/dev/userfeedback.js +30 -0
- package/build/npm/esm/dev/userfeedback.js.map +1 -0
- package/build/npm/esm/dev/utils/detectBrowserExtension.js +36 -0
- package/build/npm/esm/dev/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js +89 -0
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/esm/prod/client.js +74 -0
- package/build/npm/esm/prod/client.js.map +1 -0
- package/build/npm/esm/prod/debug-build.js +4 -0
- package/build/npm/esm/prod/debug-build.js.map +1 -0
- package/build/npm/esm/prod/diagnose-sdk.js +32 -0
- package/build/npm/esm/prod/diagnose-sdk.js.map +1 -0
- package/build/npm/esm/prod/eventbuilder.js +224 -0
- package/build/npm/esm/prod/eventbuilder.js.map +1 -0
- package/build/npm/esm/prod/feedbackAsync.js +9 -0
- package/build/npm/esm/prod/feedbackAsync.js.map +1 -0
- package/build/npm/esm/prod/feedbackSync.js +9 -0
- package/build/npm/esm/prod/feedbackSync.js.map +1 -0
- package/build/npm/esm/prod/helpers.js +102 -0
- package/build/npm/esm/prod/helpers.js.map +1 -0
- package/build/npm/esm/prod/index.js +48 -0
- package/build/npm/esm/prod/index.js.map +1 -0
- package/build/npm/esm/prod/integrations/breadcrumbs.js +247 -0
- package/build/npm/esm/prod/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/esm/prod/integrations/browserapierrors.js +165 -0
- package/build/npm/esm/prod/integrations/browserapierrors.js.map +1 -0
- package/build/npm/esm/prod/integrations/browsersession.js +48 -0
- package/build/npm/esm/prod/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/prod/integrations/contextlines.js +50 -0
- package/build/npm/esm/prod/integrations/contextlines.js.map +1 -0
- package/build/npm/esm/prod/integrations/culturecontext.js +48 -0
- package/build/npm/esm/prod/integrations/culturecontext.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/growthbook/integration.js +6 -0
- package/build/npm/esm/prod/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/launchdarkly/integration.js +27 -0
- package/build/npm/esm/prod/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/openfeature/integration.js +29 -0
- package/build/npm/esm/prod/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/statsig/integration.js +21 -0
- package/build/npm/esm/prod/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/unleash/integration.js +35 -0
- package/build/npm/esm/prod/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js +58 -0
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/esm/prod/integrations/globalhandlers.js +139 -0
- package/build/npm/esm/prod/integrations/globalhandlers.js.map +1 -0
- package/build/npm/esm/prod/integrations/graphqlClient.js +142 -0
- package/build/npm/esm/prod/integrations/graphqlClient.js.map +1 -0
- package/build/npm/esm/prod/integrations/httpclient.js +248 -0
- package/build/npm/esm/prod/integrations/httpclient.js.map +1 -0
- package/build/npm/esm/prod/integrations/httpcontext.js +45 -0
- package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -0
- package/build/npm/esm/prod/integrations/linkederrors.js +29 -0
- package/build/npm/esm/prod/integrations/linkederrors.js.map +1 -0
- package/build/npm/esm/prod/integrations/reportingobserver.js +58 -0
- package/build/npm/esm/prod/integrations/reportingobserver.js.map +1 -0
- package/build/npm/esm/prod/integrations/spanstreaming.js +47 -0
- package/build/npm/esm/prod/integrations/spanstreaming.js.map +1 -0
- package/build/npm/esm/prod/integrations/spotlight.js +57 -0
- package/build/npm/esm/prod/integrations/spotlight.js.map +1 -0
- package/build/npm/esm/prod/integrations/view-hierarchy.js +72 -0
- package/build/npm/esm/prod/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/esm/prod/integrations/webVitals.js +59 -0
- package/build/npm/esm/prod/integrations/webVitals.js.map +1 -0
- package/build/npm/esm/prod/integrations/webWorker.js +129 -0
- package/build/npm/esm/prod/integrations/webWorker.js.map +1 -0
- package/build/npm/esm/prod/normalizeStringifyValue.js +25 -0
- package/build/npm/esm/prod/normalizeStringifyValue.js.map +1 -0
- package/build/npm/esm/prod/package.json +1 -0
- package/build/npm/esm/prod/profiling/UIProfiler.js +304 -0
- package/build/npm/esm/prod/profiling/UIProfiler.js.map +1 -0
- package/build/npm/esm/prod/profiling/index.js +36 -0
- package/build/npm/esm/prod/profiling/index.js.map +1 -0
- package/build/npm/esm/prod/profiling/integration.js +118 -0
- package/build/npm/esm/prod/profiling/integration.js.map +1 -0
- package/build/npm/esm/prod/profiling/startProfileForSpan.js +89 -0
- package/build/npm/esm/prod/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/esm/prod/profiling/utils.js +474 -0
- package/build/npm/esm/prod/profiling/utils.js.map +1 -0
- package/build/npm/esm/prod/report-dialog.js +51 -0
- package/build/npm/esm/prod/report-dialog.js.map +1 -0
- package/build/npm/esm/prod/sdk.js +55 -0
- package/build/npm/esm/prod/sdk.js.map +1 -0
- package/build/npm/esm/prod/stack-parsers.js +110 -0
- package/build/npm/esm/prod/stack-parsers.js.map +1 -0
- package/build/npm/esm/prod/tracing/backgroundtab.js +32 -0
- package/build/npm/esm/prod/tracing/backgroundtab.js.map +1 -0
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js +429 -0
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/esm/prod/tracing/linkedTraces.js +130 -0
- package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -0
- package/build/npm/esm/prod/tracing/reportPageLoaded.js +8 -0
- package/build/npm/esm/prod/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/esm/prod/tracing/request.js +232 -0
- package/build/npm/esm/prod/tracing/request.js.map +1 -0
- package/build/npm/esm/prod/tracing/setActiveSpan.js +19 -0
- package/build/npm/esm/prod/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/esm/prod/tracing/utils.js +26 -0
- package/build/npm/esm/prod/tracing/utils.js.map +1 -0
- package/build/npm/esm/prod/transports/fetch.js +56 -0
- package/build/npm/esm/prod/transports/fetch.js.map +1 -0
- package/build/npm/esm/prod/transports/offline.js +105 -0
- package/build/npm/esm/prod/transports/offline.js.map +1 -0
- package/build/npm/esm/prod/userfeedback.js +30 -0
- package/build/npm/esm/prod/userfeedback.js.map +1 -0
- package/build/npm/esm/prod/utils/detectBrowserExtension.js +36 -0
- package/build/npm/esm/prod/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js +89 -0
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/types/client.d.ts +79 -0
- package/build/npm/types/client.d.ts.map +1 -0
- package/build/npm/types/debug-build.d.ts +7 -0
- package/build/npm/types/debug-build.d.ts.map +1 -0
- package/build/npm/types/diagnose-sdk.d.ts +11 -0
- package/build/npm/types/diagnose-sdk.d.ts.map +1 -0
- package/build/npm/types/eventbuilder.d.ts +40 -0
- package/build/npm/types/eventbuilder.d.ts.map +1 -0
- package/build/npm/types/exports.d.ts +21 -0
- package/build/npm/types/exports.d.ts.map +1 -0
- package/build/npm/types/feedbackAsync.d.ts +7 -0
- package/build/npm/types/feedbackAsync.d.ts.map +1 -0
- package/build/npm/types/feedbackSync.d.ts +4 -0
- package/build/npm/types/feedbackSync.d.ts.map +1 -0
- package/build/npm/types/helpers.d.ts +27 -0
- package/build/npm/types/helpers.d.ts.map +1 -0
- package/build/npm/types/index.bundle.base.d.ts +2 -0
- package/build/npm/types/index.bundle.base.d.ts.map +1 -0
- package/build/npm/types/index.bundle.d.ts +5 -0
- package/build/npm/types/index.bundle.d.ts.map +1 -0
- package/build/npm/types/index.bundle.feedback.d.ts +7 -0
- package/build/npm/types/index.bundle.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.logs.metrics.d.ts +6 -0
- package/build/npm/types/index.bundle.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.d.ts +6 -0
- package/build/npm/types/index.bundle.replay.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.feedback.d.ts +8 -0
- package/build/npm/types/index.bundle.replay.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts +7 -0
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.d.ts +13 -0
- package/build/npm/types/index.bundle.tracing.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts +13 -0
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts +16 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.d.ts +38 -0
- package/build/npm/types/index.d.ts.map +1 -0
- package/build/npm/types/integrations/breadcrumbs.d.ts +16 -0
- package/build/npm/types/integrations/breadcrumbs.d.ts.map +1 -0
- package/build/npm/types/integrations/browserapierrors.d.ts +23 -0
- package/build/npm/types/integrations/browserapierrors.d.ts.map +1 -0
- package/build/npm/types/integrations/browserprofiling.d.ts +2 -0
- package/build/npm/types/integrations/browserprofiling.d.ts.map +1 -0
- package/build/npm/types/integrations/browsersession.d.ts +25 -0
- package/build/npm/types/integrations/browsersession.d.ts.map +1 -0
- package/build/npm/types/integrations/contextlines.d.ts +32 -0
- package/build/npm/types/integrations/contextlines.d.ts.map +1 -0
- package/build/npm/types/integrations/culturecontext.d.ts +18 -0
- package/build/npm/types/integrations/culturecontext.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/growthbook/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/integration.d.ts +25 -0
- package/build/npm/types/integrations/featureFlags/growthbook/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/types.d.ts +6 -0
- package/build/npm/types/integrations/featureFlags/growthbook/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts +27 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts +18 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +78 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/statsig/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/integration.d.ts +30 -0
- package/build/npm/types/integrations/featureFlags/statsig/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/types.d.ts +14 -0
- package/build/npm/types/integrations/featureFlags/statsig/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/unleash/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/integration.d.ts +31 -0
- package/build/npm/types/integrations/featureFlags/unleash/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/types.d.ts +21 -0
- package/build/npm/types/integrations/featureFlags/unleash/types.d.ts.map +1 -0
- package/build/npm/types/integrations/fetchStreamPerformance.d.ts +16 -0
- package/build/npm/types/integrations/fetchStreamPerformance.d.ts.map +1 -0
- package/build/npm/types/integrations/globalhandlers.d.ts +19 -0
- package/build/npm/types/integrations/globalhandlers.d.ts.map +1 -0
- package/build/npm/types/integrations/graphqlClient.d.ts +60 -0
- package/build/npm/types/integrations/graphqlClient.d.ts.map +1 -0
- package/build/npm/types/integrations/httpclient.d.ts +29 -0
- package/build/npm/types/integrations/httpclient.d.ts.map +1 -0
- package/build/npm/types/integrations/httpcontext.d.ts +8 -0
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -0
- package/build/npm/types/integrations/linkederrors.d.ts +12 -0
- package/build/npm/types/integrations/linkederrors.d.ts.map +1 -0
- package/build/npm/types/integrations/reportingobserver.d.ts +12 -0
- package/build/npm/types/integrations/reportingobserver.d.ts.map +1 -0
- package/build/npm/types/integrations/spanstreaming.d.ts +4 -0
- package/build/npm/types/integrations/spanstreaming.d.ts.map +1 -0
- package/build/npm/types/integrations/spotlight.d.ts +21 -0
- package/build/npm/types/integrations/spotlight.d.ts.map +1 -0
- package/build/npm/types/integrations/view-hierarchy.d.ts +51 -0
- package/build/npm/types/integrations/view-hierarchy.d.ts.map +1 -0
- package/build/npm/types/integrations/webVitals.d.ts +26 -0
- package/build/npm/types/integrations/webVitals.d.ts.map +1 -0
- package/build/npm/types/integrations/webWorker.d.ts +129 -0
- package/build/npm/types/integrations/webWorker.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.captureconsole.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.captureconsole.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.dedupe.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.dedupe.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.extraerrordata.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.extraerrordata.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.feedback.d.ts +5 -0
- package/build/npm/types/integrations-bundle/index.feedback.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.graphqlclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.graphqlclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.modulemetadata.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.modulemetadata.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.rewriteframes.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.rewriteframes.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.spotlight.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.spotlight.d.ts.map +1 -0
- package/build/npm/types/normalizeStringifyValue.d.ts +15 -0
- package/build/npm/types/normalizeStringifyValue.d.ts.map +1 -0
- package/build/npm/types/pluggable-exports-bundle/index.multiplexedtransport.d.ts +2 -0
- package/build/npm/types/pluggable-exports-bundle/index.multiplexedtransport.d.ts.map +1 -0
- package/build/npm/types/profiling/UIProfiler.d.ts +75 -0
- package/build/npm/types/profiling/UIProfiler.d.ts.map +1 -0
- package/build/npm/types/profiling/index.d.ts +8 -0
- package/build/npm/types/profiling/index.d.ts.map +1 -0
- package/build/npm/types/profiling/integration.d.ts +4 -0
- package/build/npm/types/profiling/integration.d.ts.map +1 -0
- package/build/npm/types/profiling/jsSelfProfiling.d.ts +41 -0
- package/build/npm/types/profiling/jsSelfProfiling.d.ts.map +1 -0
- package/build/npm/types/profiling/startProfileForSpan.d.ts +8 -0
- package/build/npm/types/profiling/startProfileForSpan.d.ts.map +1 -0
- package/build/npm/types/profiling/utils.d.ts +112 -0
- package/build/npm/types/profiling/utils.d.ts.map +1 -0
- package/build/npm/types/report-dialog.d.ts +8 -0
- package/build/npm/types/report-dialog.d.ts.map +1 -0
- package/build/npm/types/sdk.d.ts +62 -0
- package/build/npm/types/sdk.d.ts.map +1 -0
- package/build/npm/types/stack-parsers.d.ts +9 -0
- package/build/npm/types/stack-parsers.d.ts.map +1 -0
- package/build/npm/types/tracing/backgroundtab.d.ts +6 -0
- package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -0
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +271 -0
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -0
- package/build/npm/types/tracing/linkedTraces.d.ts +52 -0
- package/build/npm/types/tracing/linkedTraces.d.ts.map +1 -0
- package/build/npm/types/tracing/reportPageLoaded.d.ts +11 -0
- package/build/npm/types/tracing/reportPageLoaded.d.ts.map +1 -0
- package/build/npm/types/tracing/request.d.ts +87 -0
- package/build/npm/types/tracing/request.d.ts.map +1 -0
- package/build/npm/types/tracing/setActiveSpan.d.ts +39 -0
- package/build/npm/types/tracing/setActiveSpan.d.ts.map +1 -0
- package/build/npm/types/tracing/utils.d.ts +17 -0
- package/build/npm/types/tracing/utils.d.ts.map +1 -0
- package/build/npm/types/transports/fetch.d.ts +8 -0
- package/build/npm/types/transports/fetch.d.ts.map +1 -0
- package/build/npm/types/transports/offline.d.ts +33 -0
- package/build/npm/types/transports/offline.d.ts.map +1 -0
- package/build/npm/types/transports/types.d.ts +6 -0
- package/build/npm/types/transports/types.d.ts.map +1 -0
- package/build/npm/types/userfeedback.d.ts +10 -0
- package/build/npm/types/userfeedback.d.ts.map +1 -0
- package/build/npm/types/utils/detectBrowserExtension.d.ts +6 -0
- package/build/npm/types/utils/detectBrowserExtension.d.ts.map +1 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts +13 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -0
- package/build/npm/types-ts3.8/client.d.ts +79 -0
- package/build/npm/types-ts3.8/debug-build.d.ts +7 -0
- package/build/npm/types-ts3.8/diagnose-sdk.d.ts +11 -0
- package/build/npm/types-ts3.8/eventbuilder.d.ts +40 -0
- package/build/npm/types-ts3.8/exports.d.ts +21 -0
- package/build/npm/types-ts3.8/feedbackAsync.d.ts +7 -0
- package/build/npm/types-ts3.8/feedbackSync.d.ts +4 -0
- package/build/npm/types-ts3.8/helpers.d.ts +27 -0
- package/build/npm/types-ts3.8/index.bundle.base.d.ts +2 -0
- package/build/npm/types-ts3.8/index.bundle.d.ts +5 -0
- package/build/npm/types-ts3.8/index.bundle.feedback.d.ts +7 -0
- package/build/npm/types-ts3.8/index.bundle.logs.metrics.d.ts +6 -0
- package/build/npm/types-ts3.8/index.bundle.replay.d.ts +6 -0
- package/build/npm/types-ts3.8/index.bundle.replay.feedback.d.ts +8 -0
- package/build/npm/types-ts3.8/index.bundle.replay.logs.metrics.d.ts +7 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.d.ts +13 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.logs.metrics.d.ts +13 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.d.ts +14 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.d.ts +16 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +14 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.logs.metrics.d.ts +14 -0
- package/build/npm/types-ts3.8/index.d.ts +38 -0
- package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +16 -0
- package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +23 -0
- package/build/npm/types-ts3.8/integrations/browserprofiling.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/browsersession.d.ts +25 -0
- package/build/npm/types-ts3.8/integrations/contextlines.d.ts +32 -0
- package/build/npm/types-ts3.8/integrations/culturecontext.d.ts +18 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/integration.d.ts +25 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/types.d.ts +6 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +27 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +18 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +78 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/integration.d.ts +30 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/types.d.ts +14 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/integration.d.ts +31 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/types.d.ts +21 -0
- package/build/npm/types-ts3.8/integrations/fetchStreamPerformance.d.ts +16 -0
- package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +19 -0
- package/build/npm/types-ts3.8/integrations/graphqlClient.d.ts +60 -0
- package/build/npm/types-ts3.8/integrations/httpclient.d.ts +32 -0
- package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +8 -0
- package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +12 -0
- package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +12 -0
- package/build/npm/types-ts3.8/integrations/spanstreaming.d.ts +4 -0
- package/build/npm/types-ts3.8/integrations/spotlight.d.ts +21 -0
- package/build/npm/types-ts3.8/integrations/view-hierarchy.d.ts +51 -0
- package/build/npm/types-ts3.8/integrations/webVitals.d.ts +26 -0
- package/build/npm/types-ts3.8/integrations/webWorker.d.ts +129 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.captureconsole.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.createlangchaincallbackhandler.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.dedupe.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.extraerrordata.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.feedback.d.ts +5 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.graphqlclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentanthropicaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlangchainembeddings.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlanggraph.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentopenaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentstategraph.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.modulemetadata.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.rewriteframes.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.spotlight.d.ts +2 -0
- package/build/npm/types-ts3.8/normalizeStringifyValue.d.ts +15 -0
- package/build/npm/types-ts3.8/pluggable-exports-bundle/index.multiplexedtransport.d.ts +2 -0
- package/build/npm/types-ts3.8/profiling/UIProfiler.d.ts +75 -0
- package/build/npm/types-ts3.8/profiling/index.d.ts +8 -0
- package/build/npm/types-ts3.8/profiling/integration.d.ts +4 -0
- package/build/npm/types-ts3.8/profiling/jsSelfProfiling.d.ts +41 -0
- package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +8 -0
- package/build/npm/types-ts3.8/profiling/utils.d.ts +112 -0
- package/build/npm/types-ts3.8/report-dialog.d.ts +8 -0
- package/build/npm/types-ts3.8/sdk.d.ts +62 -0
- package/build/npm/types-ts3.8/stack-parsers.d.ts +9 -0
- package/build/npm/types-ts3.8/tracing/backgroundtab.d.ts +6 -0
- package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +271 -0
- package/build/npm/types-ts3.8/tracing/linkedTraces.d.ts +52 -0
- package/build/npm/types-ts3.8/tracing/reportPageLoaded.d.ts +11 -0
- package/build/npm/types-ts3.8/tracing/request.d.ts +87 -0
- package/build/npm/types-ts3.8/tracing/setActiveSpan.d.ts +39 -0
- package/build/npm/types-ts3.8/tracing/utils.d.ts +17 -0
- package/build/npm/types-ts3.8/transports/fetch.d.ts +8 -0
- package/build/npm/types-ts3.8/transports/offline.d.ts +33 -0
- package/build/npm/types-ts3.8/transports/types.d.ts +6 -0
- package/build/npm/types-ts3.8/userfeedback.d.ts +10 -0
- package/build/npm/types-ts3.8/utils/detectBrowserExtension.d.ts +6 -0
- package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +37 -0
- package/package.json +85 -4
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { isErrorEvent, isDOMError, isDOMException, addExceptionTypeValue, isError, isPlainObject, isEvent, addExceptionMechanism, isParameterizedString, getClient, normalizeToSize, extractExceptionKeysForMessage, _INTERNAL_enhanceErrorWithElenjicalInfo, resolvedSyncPromise } from '@elenjical/core/browser';
|
|
2
|
+
|
|
3
|
+
function exceptionFromError(stackParser, ex) {
|
|
4
|
+
const frames = parseStackFrames(stackParser, ex);
|
|
5
|
+
const exception = {
|
|
6
|
+
type: extractType(ex),
|
|
7
|
+
value: extractMessage(ex)
|
|
8
|
+
};
|
|
9
|
+
if (frames.length) {
|
|
10
|
+
exception.stacktrace = { frames };
|
|
11
|
+
}
|
|
12
|
+
if (exception.type === void 0 && exception.value === "") {
|
|
13
|
+
exception.value = "Unrecoverable error caught";
|
|
14
|
+
}
|
|
15
|
+
return exception;
|
|
16
|
+
}
|
|
17
|
+
function eventFromPlainObject(stackParser, exception, syntheticException, isUnhandledRejection) {
|
|
18
|
+
const client = getClient();
|
|
19
|
+
const normalizeDepth = client?.getOptions().normalizeDepth;
|
|
20
|
+
const errorFromProp = getErrorPropertyFromObject(exception);
|
|
21
|
+
const extra = {
|
|
22
|
+
__serialized__: normalizeToSize(exception, normalizeDepth)
|
|
23
|
+
};
|
|
24
|
+
if (errorFromProp) {
|
|
25
|
+
return {
|
|
26
|
+
exception: {
|
|
27
|
+
values: [exceptionFromError(stackParser, errorFromProp)]
|
|
28
|
+
},
|
|
29
|
+
extra
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const event = {
|
|
33
|
+
exception: {
|
|
34
|
+
values: [
|
|
35
|
+
{
|
|
36
|
+
type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? "UnhandledRejection" : "Error",
|
|
37
|
+
value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection })
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
extra
|
|
42
|
+
};
|
|
43
|
+
if (syntheticException) {
|
|
44
|
+
const frames = parseStackFrames(stackParser, syntheticException);
|
|
45
|
+
if (frames.length) {
|
|
46
|
+
event.exception.values[0].stacktrace = { frames };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return event;
|
|
50
|
+
}
|
|
51
|
+
function eventFromError(stackParser, ex) {
|
|
52
|
+
return {
|
|
53
|
+
exception: {
|
|
54
|
+
values: [exceptionFromError(stackParser, ex)]
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function parseStackFrames(stackParser, ex) {
|
|
59
|
+
const stacktrace = ex.stacktrace || ex.stack || "";
|
|
60
|
+
const skipLines = getSkipFirstStackStringLines(ex);
|
|
61
|
+
const framesToPop = getPopFirstTopFrames(ex);
|
|
62
|
+
try {
|
|
63
|
+
return stackParser(stacktrace, skipLines, framesToPop);
|
|
64
|
+
} catch {
|
|
65
|
+
}
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
const reactMinifiedRegexp = /Minified React error #\d+;/i;
|
|
69
|
+
function getSkipFirstStackStringLines(ex) {
|
|
70
|
+
if (ex && reactMinifiedRegexp.test(ex.message)) {
|
|
71
|
+
return 1;
|
|
72
|
+
}
|
|
73
|
+
return 0;
|
|
74
|
+
}
|
|
75
|
+
function getPopFirstTopFrames(ex) {
|
|
76
|
+
if (typeof ex.framesToPop === "number") {
|
|
77
|
+
return ex.framesToPop;
|
|
78
|
+
}
|
|
79
|
+
return 0;
|
|
80
|
+
}
|
|
81
|
+
function isWebAssemblyException(exception) {
|
|
82
|
+
if (typeof WebAssembly !== "undefined" && typeof WebAssembly.Exception !== "undefined") {
|
|
83
|
+
return exception instanceof WebAssembly.Exception;
|
|
84
|
+
} else {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function extractType(ex) {
|
|
89
|
+
const name = ex?.name;
|
|
90
|
+
if (!name && isWebAssemblyException(ex)) {
|
|
91
|
+
const hasTypeInMessage = ex.message && Array.isArray(ex.message) && ex.message.length == 2;
|
|
92
|
+
return hasTypeInMessage ? ex.message[0] : "WebAssembly.Exception";
|
|
93
|
+
}
|
|
94
|
+
return name;
|
|
95
|
+
}
|
|
96
|
+
function extractMessage(ex) {
|
|
97
|
+
const message = ex?.message;
|
|
98
|
+
if (isWebAssemblyException(ex)) {
|
|
99
|
+
if (Array.isArray(ex.message) && ex.message.length == 2) {
|
|
100
|
+
return ex.message[1];
|
|
101
|
+
}
|
|
102
|
+
return "wasm exception";
|
|
103
|
+
}
|
|
104
|
+
if (!message) {
|
|
105
|
+
return "No error message";
|
|
106
|
+
}
|
|
107
|
+
if (message.error && typeof message.error.message === "string") {
|
|
108
|
+
return _INTERNAL_enhanceErrorWithElenjicalInfo(message.error);
|
|
109
|
+
}
|
|
110
|
+
return _INTERNAL_enhanceErrorWithElenjicalInfo(ex);
|
|
111
|
+
}
|
|
112
|
+
function eventFromException(stackParser, exception, hint, attachStacktrace) {
|
|
113
|
+
const syntheticException = hint?.syntheticException || void 0;
|
|
114
|
+
const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);
|
|
115
|
+
addExceptionMechanism(event);
|
|
116
|
+
event.level = "error";
|
|
117
|
+
if (hint?.event_id) {
|
|
118
|
+
event.event_id = hint.event_id;
|
|
119
|
+
}
|
|
120
|
+
return resolvedSyncPromise(event);
|
|
121
|
+
}
|
|
122
|
+
function eventFromMessage(stackParser, message, level = "info", hint, attachStacktrace) {
|
|
123
|
+
const syntheticException = hint?.syntheticException || void 0;
|
|
124
|
+
const event = eventFromString(stackParser, message, syntheticException, attachStacktrace);
|
|
125
|
+
event.level = level;
|
|
126
|
+
if (hint?.event_id) {
|
|
127
|
+
event.event_id = hint.event_id;
|
|
128
|
+
}
|
|
129
|
+
return resolvedSyncPromise(event);
|
|
130
|
+
}
|
|
131
|
+
function eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace, isUnhandledRejection) {
|
|
132
|
+
let event;
|
|
133
|
+
if (isErrorEvent(exception) && exception.error) {
|
|
134
|
+
const errorEvent = exception;
|
|
135
|
+
return eventFromError(stackParser, errorEvent.error);
|
|
136
|
+
}
|
|
137
|
+
if (isDOMError(exception) || isDOMException(exception)) {
|
|
138
|
+
const domException = exception;
|
|
139
|
+
if ("stack" in exception) {
|
|
140
|
+
event = eventFromError(stackParser, exception);
|
|
141
|
+
const firstException = event.exception?.values?.[0];
|
|
142
|
+
if (attachStacktrace && syntheticException && firstException && !firstException.stacktrace) {
|
|
143
|
+
const frames = parseStackFrames(stackParser, syntheticException);
|
|
144
|
+
if (frames.length) {
|
|
145
|
+
firstException.stacktrace = { frames };
|
|
146
|
+
addExceptionMechanism(event, { synthetic: true });
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
const name = domException.name || (isDOMError(domException) ? "DOMError" : "DOMException");
|
|
151
|
+
const message = domException.message ? `${name}: ${domException.message}` : name;
|
|
152
|
+
event = eventFromString(stackParser, message, syntheticException, attachStacktrace);
|
|
153
|
+
addExceptionTypeValue(event, message);
|
|
154
|
+
}
|
|
155
|
+
if ("code" in domException) {
|
|
156
|
+
event.tags = { ...event.tags, "DOMException.code": `${domException.code}` };
|
|
157
|
+
}
|
|
158
|
+
return event;
|
|
159
|
+
}
|
|
160
|
+
if (isError(exception)) {
|
|
161
|
+
return eventFromError(stackParser, exception);
|
|
162
|
+
}
|
|
163
|
+
if (isPlainObject(exception) || isEvent(exception)) {
|
|
164
|
+
const objectException = exception;
|
|
165
|
+
event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);
|
|
166
|
+
addExceptionMechanism(event, {
|
|
167
|
+
synthetic: true
|
|
168
|
+
});
|
|
169
|
+
return event;
|
|
170
|
+
}
|
|
171
|
+
event = eventFromString(stackParser, exception, syntheticException, attachStacktrace);
|
|
172
|
+
addExceptionTypeValue(event, `${exception}`, void 0);
|
|
173
|
+
addExceptionMechanism(event, {
|
|
174
|
+
synthetic: true
|
|
175
|
+
});
|
|
176
|
+
return event;
|
|
177
|
+
}
|
|
178
|
+
function eventFromString(stackParser, message, syntheticException, attachStacktrace) {
|
|
179
|
+
const event = {};
|
|
180
|
+
if (attachStacktrace && syntheticException) {
|
|
181
|
+
const frames = parseStackFrames(stackParser, syntheticException);
|
|
182
|
+
if (frames.length) {
|
|
183
|
+
event.exception = {
|
|
184
|
+
values: [{ value: message, stacktrace: { frames } }]
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
addExceptionMechanism(event, { synthetic: true });
|
|
188
|
+
}
|
|
189
|
+
if (isParameterizedString(message)) {
|
|
190
|
+
const { __elenjical_template_string__, __elenjical_template_values__ } = message;
|
|
191
|
+
event.logentry = {
|
|
192
|
+
message: __elenjical_template_string__,
|
|
193
|
+
params: __elenjical_template_values__
|
|
194
|
+
};
|
|
195
|
+
return event;
|
|
196
|
+
}
|
|
197
|
+
event.message = message;
|
|
198
|
+
return event;
|
|
199
|
+
}
|
|
200
|
+
function getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }) {
|
|
201
|
+
const keys = extractExceptionKeysForMessage(exception);
|
|
202
|
+
const captureType = isUnhandledRejection ? "promise rejection" : "exception";
|
|
203
|
+
if (isErrorEvent(exception)) {
|
|
204
|
+
return `Event \`ErrorEvent\` captured as ${captureType} with message \`${exception.message}\``;
|
|
205
|
+
}
|
|
206
|
+
if (isEvent(exception)) {
|
|
207
|
+
const className = getObjectClassName(exception);
|
|
208
|
+
return `Event \`${className}\` (type=${exception.type}) captured as ${captureType}`;
|
|
209
|
+
}
|
|
210
|
+
return `Object captured as ${captureType} with keys: ${keys}`;
|
|
211
|
+
}
|
|
212
|
+
function getObjectClassName(obj) {
|
|
213
|
+
try {
|
|
214
|
+
const prototype = Object.getPrototypeOf(obj);
|
|
215
|
+
return prototype ? prototype.constructor.name : void 0;
|
|
216
|
+
} catch {
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function getErrorPropertyFromObject(obj) {
|
|
220
|
+
return Object.values(obj).find(isError);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export { eventFromException, eventFromMessage, eventFromUnknownInput, exceptionFromError, extractMessage, extractType };
|
|
224
|
+
//# sourceMappingURL=eventbuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventbuilder.js","sources":["../../../../src/eventbuilder.ts"],"sourcesContent":["import type {\n Event,\n EventHint,\n Exception,\n ParameterizedString,\n SeverityLevel,\n StackFrame,\n StackParser,\n} from '@elenjical/core/browser';\nimport {\n _INTERNAL_enhanceErrorWithElenjicalInfo,\n addExceptionMechanism,\n addExceptionTypeValue,\n extractExceptionKeysForMessage,\n getClient,\n isDOMError,\n isDOMException,\n isError,\n isErrorEvent,\n isEvent,\n isParameterizedString,\n isPlainObject,\n normalizeToSize,\n resolvedSyncPromise,\n} from '@elenjical/core/browser';\n\ntype Prototype = { constructor: (...args: unknown[]) => unknown };\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nexport function exceptionFromError(stackParser: StackParser, ex: Error): Exception {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n const frames = parseStackFrames(stackParser, ex);\n\n const exception: Exception = {\n type: extractType(ex),\n value: extractMessage(ex),\n };\n\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n\nfunction eventFromPlainObject(\n stackParser: StackParser,\n exception: Record<string, unknown>,\n syntheticException?: Error,\n isUnhandledRejection?: boolean,\n): Event {\n const client = getClient();\n const normalizeDepth = client?.getOptions().normalizeDepth;\n\n // If we can, we extract an exception from the object properties\n const errorFromProp = getErrorPropertyFromObject(exception);\n\n const extra = {\n __serialized__: normalizeToSize(exception, normalizeDepth),\n };\n\n if (errorFromProp) {\n return {\n exception: {\n values: [exceptionFromError(stackParser, errorFromProp)],\n },\n extra,\n };\n }\n\n const event = {\n exception: {\n values: [\n {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n } as Exception,\n ],\n },\n extra,\n } satisfies Event;\n\n if (syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n // event.exception.values[0] has been set above\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception.values[0]!.stacktrace = { frames };\n }\n }\n\n return event;\n}\n\nfunction eventFromError(stackParser: StackParser, ex: Error): Event {\n return {\n exception: {\n values: [exceptionFromError(stackParser, ex)],\n },\n };\n}\n\n/** Parses stack frames from an error */\nfunction parseStackFrames(\n stackParser: StackParser,\n ex: Error & { framesToPop?: number; stacktrace?: string },\n): StackFrame[] {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n const stacktrace = ex.stacktrace || ex.stack || '';\n\n const skipLines = getSkipFirstStackStringLines(ex);\n const framesToPop = getPopFirstTopFrames(ex);\n\n try {\n return stackParser(stacktrace, skipLines, framesToPop);\n } catch {\n // no-empty\n }\n\n return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/elenjical/lang/javascript/errormapping.py#L83-L108\nconst reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\n/**\n * Certain known React errors contain links that would be falsely\n * parsed as frames. This function check for these errors and\n * returns number of the stack string lines to skip.\n */\nfunction getSkipFirstStackStringLines(ex: Error): number {\n if (ex && reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * If error has `framesToPop` property, it means that the\n * creator tells us the first x frames will be useless\n * and should be discarded. Typically error from wrapper function\n * which don't point to the actual location in the developer's code.\n *\n * Example: https://github.com/zertosh/invariant/blob/master/invariant.js#L46\n */\nfunction getPopFirstTopFrames(ex: Error & { framesToPop?: unknown }): number {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n return 0;\n}\n\n// https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Exception\n// @ts-expect-error - WebAssembly.Exception is a valid class\nfunction isWebAssemblyException(exception: unknown): exception is WebAssembly.Exception {\n // Check for support\n // @ts-expect-error - WebAssembly.Exception is a valid class\n // oxlint-disable-next-line typescript/prefer-optional-chain\n if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.Exception !== 'undefined') {\n // @ts-expect-error - WebAssembly.Exception is a valid class\n return exception instanceof WebAssembly.Exception;\n } else {\n return false;\n }\n}\n\n/**\n * Extracts from errors what we use as the exception `type` in error events.\n *\n * Usually, this is the `name` property on Error objects but WASM errors need to be treated differently.\n */\nexport function extractType(ex: Error & { message: { error?: Error } }): string | undefined {\n const name = ex?.name;\n\n // The name for WebAssembly.Exception Errors needs to be extracted differently.\n // Context: https://github.com/getsentry/sentry-javascript/issues/13787\n if (!name && isWebAssemblyException(ex)) {\n // Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n const hasTypeInMessage = ex.message && Array.isArray(ex.message) && ex.message.length == 2;\n return hasTypeInMessage ? ex.message[0] : 'WebAssembly.Exception';\n }\n\n return name;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nexport function extractMessage(ex: Error & { message: { error?: Error } }): string {\n const message = ex?.message;\n\n if (isWebAssemblyException(ex)) {\n // For Node 18, Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n if (Array.isArray(ex.message) && ex.message.length == 2) {\n return ex.message[1];\n }\n return 'wasm exception';\n }\n\n if (!message) {\n return 'No error message';\n }\n\n if (message.error && typeof message.error.message === 'string') {\n return _INTERNAL_enhanceErrorWithElenjicalInfo(message.error);\n }\n\n return _INTERNAL_enhanceErrorWithElenjicalInfo(ex);\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nexport function eventFromException(\n stackParser: StackParser,\n exception: unknown,\n hint?: EventHint,\n attachStacktrace?: boolean,\n): PromiseLike<Event> {\n const syntheticException = hint?.syntheticException || undefined;\n const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);\n addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n event.level = 'error';\n if (hint?.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n stackParser: StackParser,\n message: ParameterizedString,\n level: SeverityLevel = 'info',\n hint?: EventHint,\n attachStacktrace?: boolean,\n): PromiseLike<Event> {\n const syntheticException = hint?.syntheticException || undefined;\n const event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n event.level = level;\n if (hint?.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * @hidden\n */\nexport function eventFromUnknownInput(\n stackParser: StackParser,\n exception: unknown,\n syntheticException?: Error,\n attachStacktrace?: boolean,\n isUnhandledRejection?: boolean,\n): Event {\n let event: Event;\n\n if (isErrorEvent(exception as ErrorEvent) && (exception as ErrorEvent).error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n const errorEvent = exception as ErrorEvent;\n return eventFromError(stackParser, errorEvent.error as Error);\n }\n\n // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n if (isDOMError(exception) || isDOMException(exception as DOMException)) {\n const domException = exception as DOMException;\n\n if ('stack' in (exception as Error)) {\n event = eventFromError(stackParser, exception as Error);\n\n const firstException = event.exception?.values?.[0];\n if (attachStacktrace && syntheticException && firstException && !firstException.stacktrace) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n firstException.stacktrace = { frames };\n addExceptionMechanism(event, { synthetic: true });\n }\n }\n } else {\n const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n const message = domException.message ? `${name}: ${domException.message}` : name;\n event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n if ('code' in domException) {\n // eslint-disable-next-line typescript/no-deprecated\n event.tags = { ...event.tags, 'DOMException.code': `${domException.code}` };\n }\n\n return event;\n }\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(stackParser, exception);\n }\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n const objectException = exception;\n event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n return event;\n }\n\n // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n event = eventFromString(stackParser, exception as string, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, `${exception}`, undefined);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n\n return event;\n}\n\nfunction eventFromString(\n stackParser: StackParser,\n message: ParameterizedString,\n syntheticException?: Error,\n attachStacktrace?: boolean,\n): Event {\n const event: Event = {};\n\n if (attachStacktrace && syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n event.exception = {\n values: [{ value: message, stacktrace: { frames } }],\n };\n }\n addExceptionMechanism(event, { synthetic: true });\n }\n\n if (isParameterizedString(message)) {\n const { __elenjical_template_string__, __elenjical_template_values__ } = message;\n\n event.logentry = {\n message: __elenjical_template_string__,\n params: __elenjical_template_values__,\n };\n return event;\n }\n\n event.message = message;\n return event;\n}\n\nfunction getNonErrorObjectExceptionValue(\n exception: Record<string, unknown>,\n { isUnhandledRejection }: { isUnhandledRejection?: boolean },\n): string {\n const keys = extractExceptionKeysForMessage(exception);\n const captureType = isUnhandledRejection ? 'promise rejection' : 'exception';\n\n // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n // We still want to try to get a decent message for these cases\n if (isErrorEvent(exception)) {\n return `Event \\`ErrorEvent\\` captured as ${captureType} with message \\`${exception.message}\\``;\n }\n\n if (isEvent(exception)) {\n const className = getObjectClassName(exception);\n return `Event \\`${className}\\` (type=${exception.type}) captured as ${captureType}`;\n }\n\n return `Object captured as ${captureType} with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj: unknown): string | undefined | void {\n try {\n const prototype: Prototype | null = Object.getPrototypeOf(obj);\n return prototype ? prototype.constructor.name : undefined;\n } catch {\n // ignore errors here\n }\n}\n\n/** If a plain object has a property that is an `Error`, return this error. */\nfunction getErrorPropertyFromObject(obj: Record<string, unknown>): Error | undefined {\n return Object.values(obj).find(isError);\n}\n"],"names":[],"mappings":";;AA+BO,SAAS,kBAAA,CAAmB,aAA0B,EAAA,EAAsB;AAEjF,EAAA,MAAM,MAAA,GAAS,gBAAA,CAAiB,WAAA,EAAa,EAAE,CAAA;AAE/C,EAAA,MAAM,SAAA,GAAuB;AAAA,IAC3B,IAAA,EAAM,YAAY,EAAE,CAAA;AAAA,IACpB,KAAA,EAAO,eAAe,EAAE;AAAA,GAC1B;AAEA,EAAA,IAAI,OAAO,MAAA,EAAQ;AACjB,IAAA,SAAA,CAAU,UAAA,GAAa,EAAE,MAAA,EAAO;AAAA,EAClC;AAEA,EAAA,IAAI,SAAA,CAAU,IAAA,KAAS,MAAA,IAAa,SAAA,CAAU,UAAU,EAAA,EAAI;AAC1D,IAAA,SAAA,CAAU,KAAA,GAAQ,4BAAA;AAAA,EACpB;AAEA,EAAA,OAAO,SAAA;AACT;AAEA,SAAS,oBAAA,CACP,WAAA,EACA,SAAA,EACA,kBAAA,EACA,oBAAA,EACO;AACP,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,MAAM,cAAA,GAAiB,MAAA,EAAQ,UAAA,EAAW,CAAE,cAAA;AAG5C,EAAA,MAAM,aAAA,GAAgB,2BAA2B,SAAS,CAAA;AAE1D,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AM,SAAA,GAAY,mBAAmB,SAAS,CAAA;AAC9C,IAAA,OAAO,WAAW,SAAS,CAAA,SAAA,EAAY,SAAA,CAAU,IAAI,iBAAiB,WAAW,CAAA,CAAA;AAAA,EACnF;AAEA,EAAA,OAAO,CAAA,mBAAA,EAAsB,WAAW,CAAA,YAAA,EAAe,IAAI,CAAA,CAAA;AAC7D;AAEA,SAAS,mBAAmB,GAAA,EAAyC;AACnE,EAAA,IAAI;AACF,IAAA,MAAM,SAAA,GAA8B,MAAA,CAAO,cAAA,CAAe,GAAG,CAAA;AAC7D,IAAA,OAAO,SAAA,GAAY,SAAA,CAAU,WAAA,CAAY,IAAA,GAAO,KAAA,CAAA;AAAA,EAClD,CAAA,CAAA,MAAQ;AAAA,EAER;AACF;AAGA,SAAS,2BAA2B,GAAA,EAAiD;AACnF,EAAA,OAAO,MAAA,CAAO,MAAA,CAAO,GAAG,CAAA,CAAE,KAAK,OAAO,CAAA;AACxC;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { buildFeedbackIntegration } from '@elenjical/feedback';
|
|
2
|
+
import { lazyLoadIntegration } from './utils/lazyLoadIntegration.js';
|
|
3
|
+
|
|
4
|
+
const feedbackAsyncIntegration = buildFeedbackIntegration({
|
|
5
|
+
lazyLoadIntegration
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export { feedbackAsyncIntegration };
|
|
9
|
+
//# sourceMappingURL=feedbackAsync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedbackAsync.js","sources":["../../../../src/feedbackAsync.ts"],"sourcesContent":["import { buildFeedbackIntegration } from '@elenjical/feedback';\nimport { lazyLoadIntegration } from './utils/lazyLoadIntegration';\n\n/**\n * An integration to add user feedback to your application,\n * while loading most of the code lazily only when it's needed.\n */\nexport const feedbackAsyncIntegration: ReturnType<typeof buildFeedbackIntegration> = buildFeedbackIntegration({\n lazyLoadIntegration,\n});\n"],"names":[],"mappings":";;;AAOO,MAAM,2BAAwE,wBAAA,CAAyB;AAAA,EAC5G;AACF,CAAC;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { buildFeedbackIntegration, feedbackScreenshotIntegration, feedbackModalIntegration } from '@elenjical/feedback';
|
|
2
|
+
|
|
3
|
+
const feedbackSyncIntegration = buildFeedbackIntegration({
|
|
4
|
+
getModalIntegration: () => feedbackModalIntegration,
|
|
5
|
+
getScreenshotIntegration: () => feedbackScreenshotIntegration
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export { feedbackSyncIntegration };
|
|
9
|
+
//# sourceMappingURL=feedbackSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedbackSync.js","sources":["../../../../src/feedbackSync.ts"],"sourcesContent":["import { buildFeedbackIntegration, feedbackModalIntegration, feedbackScreenshotIntegration } from '@elenjical/feedback';\n\n/** Add a widget to capture user feedback to your application. */\nexport const feedbackSyncIntegration: ReturnType<typeof buildFeedbackIntegration> = buildFeedbackIntegration({\n getModalIntegration: () => feedbackModalIntegration,\n getScreenshotIntegration: () => feedbackScreenshotIntegration,\n});\n"],"names":[],"mappings":";;AAGO,MAAM,0BAAuE,wBAAA,CAAyB;AAAA,EAC3G,qBAAqB,MAAM,wBAAA;AAAA,EAC3B,0BAA0B,MAAM;AAClC,CAAC;;;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { GLOBAL_OBJ, getOriginalFunction, markFunctionWrapped, addNonEnumerableProperty, withScope, addExceptionTypeValue, addExceptionMechanism, captureException, getLocationHref } from '@elenjical/core/browser';
|
|
2
|
+
|
|
3
|
+
const WINDOW = GLOBAL_OBJ;
|
|
4
|
+
let ignoreOnError = 0;
|
|
5
|
+
function shouldIgnoreOnError() {
|
|
6
|
+
return ignoreOnError > 0;
|
|
7
|
+
}
|
|
8
|
+
function ignoreNextOnError() {
|
|
9
|
+
ignoreOnError++;
|
|
10
|
+
setTimeout(() => {
|
|
11
|
+
ignoreOnError--;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function wrap(fn, options = {}) {
|
|
15
|
+
function isFunction(fn2) {
|
|
16
|
+
return typeof fn2 === "function";
|
|
17
|
+
}
|
|
18
|
+
if (!isFunction(fn)) {
|
|
19
|
+
return fn;
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
const hasOwnWrapper = Object.prototype.hasOwnProperty.call(fn, "__elenjical_wrapped__");
|
|
23
|
+
if (hasOwnWrapper) {
|
|
24
|
+
const wrapper = fn.__elenjical_wrapped__;
|
|
25
|
+
if (typeof wrapper === "function") {
|
|
26
|
+
return wrapper;
|
|
27
|
+
} else {
|
|
28
|
+
return fn;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (getOriginalFunction(fn)) {
|
|
32
|
+
return fn;
|
|
33
|
+
}
|
|
34
|
+
} catch {
|
|
35
|
+
return fn;
|
|
36
|
+
}
|
|
37
|
+
const elenjicalWrapped = function(...args) {
|
|
38
|
+
GLOBAL_OBJ._elenjicalWrappedDepth = (GLOBAL_OBJ._elenjicalWrappedDepth || 0) + 1;
|
|
39
|
+
try {
|
|
40
|
+
const wrappedArguments = args.map((arg) => wrap(arg, options));
|
|
41
|
+
return fn.apply(this, wrappedArguments);
|
|
42
|
+
} catch (ex) {
|
|
43
|
+
ignoreNextOnError();
|
|
44
|
+
withScope((scope) => {
|
|
45
|
+
scope.addEventProcessor((event) => {
|
|
46
|
+
if (options.mechanism) {
|
|
47
|
+
addExceptionTypeValue(event, void 0, void 0);
|
|
48
|
+
addExceptionMechanism(event, options.mechanism);
|
|
49
|
+
}
|
|
50
|
+
event.extra = {
|
|
51
|
+
...event.extra,
|
|
52
|
+
arguments: args
|
|
53
|
+
};
|
|
54
|
+
return event;
|
|
55
|
+
});
|
|
56
|
+
captureException(ex);
|
|
57
|
+
});
|
|
58
|
+
throw ex;
|
|
59
|
+
} finally {
|
|
60
|
+
GLOBAL_OBJ._elenjicalWrappedDepth = (GLOBAL_OBJ._elenjicalWrappedDepth || 0) - 1;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
try {
|
|
64
|
+
for (const property in fn) {
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(fn, property)) {
|
|
66
|
+
elenjicalWrapped[property] = fn[property];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
} catch {
|
|
70
|
+
}
|
|
71
|
+
markFunctionWrapped(elenjicalWrapped, fn);
|
|
72
|
+
addNonEnumerableProperty(fn, "__elenjical_wrapped__", elenjicalWrapped);
|
|
73
|
+
try {
|
|
74
|
+
const descriptor = Object.getOwnPropertyDescriptor(elenjicalWrapped, "name");
|
|
75
|
+
if (descriptor.configurable) {
|
|
76
|
+
Object.defineProperty(elenjicalWrapped, "name", {
|
|
77
|
+
get() {
|
|
78
|
+
return fn.name;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
} catch {
|
|
83
|
+
}
|
|
84
|
+
return elenjicalWrapped;
|
|
85
|
+
}
|
|
86
|
+
function getHttpRequestData() {
|
|
87
|
+
const url = getLocationHref();
|
|
88
|
+
const { referrer } = WINDOW.document || {};
|
|
89
|
+
const { userAgent } = WINDOW.navigator || {};
|
|
90
|
+
const headers = {
|
|
91
|
+
...referrer && { Referer: referrer },
|
|
92
|
+
...userAgent && { "User-Agent": userAgent }
|
|
93
|
+
};
|
|
94
|
+
const request = {
|
|
95
|
+
url,
|
|
96
|
+
headers
|
|
97
|
+
};
|
|
98
|
+
return request;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export { WINDOW, getHttpRequestData, ignoreNextOnError, shouldIgnoreOnError, wrap };
|
|
102
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../src/helpers.ts"],"sourcesContent":["import type { Mechanism, WrappedFunction } from '@elenjical/core/browser';\nimport {\n addExceptionMechanism,\n addExceptionTypeValue,\n addNonEnumerableProperty,\n captureException,\n getLocationHref,\n getOriginalFunction,\n GLOBAL_OBJ,\n markFunctionWrapped,\n withScope,\n} from '@elenjical/core/browser';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nlet ignoreOnError: number = 0;\n\n/**\n * @hidden\n */\nexport function shouldIgnoreOnError(): boolean {\n return ignoreOnError > 0;\n}\n\n/**\n * @hidden\n */\nexport function ignoreNextOnError(): void {\n // onerror should trigger before setTimeout\n ignoreOnError++;\n setTimeout(() => {\n ignoreOnError--;\n });\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\ntype WrappableFunction = Function;\n\nexport function wrap<T extends WrappableFunction>(\n fn: T,\n options?: {\n mechanism?: Mechanism;\n },\n): WrappedFunction<T>;\nexport function wrap<NonFunction>(\n fn: NonFunction,\n options?: {\n mechanism?: Mechanism;\n },\n): NonFunction;\n/**\n * Instruments the given function and sends an event to Elenjical every time the\n * function throws an exception.\n *\n * @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always\n * has a correct `this` context.\n * @returns The wrapped function.\n * @hidden\n */\nexport function wrap<T extends WrappableFunction, NonFunction>(\n fn: T | NonFunction,\n options: {\n mechanism?: Mechanism;\n } = {},\n): NonFunction | WrappedFunction<T> {\n // for future readers what this does is wrap a function and then create\n // a bi-directional wrapping between them.\n //\n // example: wrapped = wrap(original);\n // original.__elenjical_wrapped__ -> wrapped\n // wrapped.__elenjical_original__ -> original\n\n function isFunction(fn: T | NonFunction): fn is T {\n return typeof fn === 'function';\n }\n\n if (!isFunction(fn)) {\n return fn;\n }\n\n try {\n // If we're dealing with a function that was previously wrapped, return the original wrapper.\n // Check via hasOwnProperty so a `__elenjical_wrapped__` inherited from a wrapped `Function.prototype`\n // is not mistaken for a real wrapper.\n const hasOwnWrapper = Object.prototype.hasOwnProperty.call(fn, '__elenjical_wrapped__');\n if (hasOwnWrapper) {\n const wrapper = (fn as WrappedFunction<T>).__elenjical_wrapped__;\n if (typeof wrapper === 'function') {\n return wrapper;\n } else {\n // If we find that the `__elenjical_wrapped__` function is not a function at the time of accessing it, it means\n // that something messed with it. In that case we want to return the originally passed function.\n return fn;\n }\n }\n\n // We don't wanna wrap it twice\n if (getOriginalFunction(fn)) {\n return fn;\n }\n } catch {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n // Bail on wrapping and return the function as-is (defers to window.onerror).\n return fn;\n }\n\n // Wrap the function itself\n // It is important that `elenjicalWrapped` is not an arrow function to preserve the context of `this`\n const elenjicalWrapped = function (this: unknown, ...args: unknown[]): unknown {\n // Track depth on GLOBAL_OBJ so the thirdPartyErrorFilterIntegration (in @elenjical/core) can detect\n // that processEvent is running inside a elenjicalWrapped call, even with minified/bundled code.\n GLOBAL_OBJ._elenjicalWrappedDepth = (GLOBAL_OBJ._elenjicalWrappedDepth || 0) + 1;\n try {\n // Also wrap arguments that are themselves functions\n const wrappedArguments = args.map(arg => wrap(arg, options));\n\n // Attempt to invoke user-land function\n // NOTE: If you are a Elenjical user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n return fn.apply(this, wrappedArguments);\n } catch (ex) {\n ignoreNextOnError();\n\n withScope(scope => {\n scope.addEventProcessor(event => {\n if (options.mechanism) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, options.mechanism);\n }\n\n event.extra = {\n ...event.extra,\n arguments: args,\n };\n\n return event;\n });\n\n // no need to add a mechanism here, we already add it via an event processor above\n captureException(ex);\n });\n\n throw ex;\n } finally {\n GLOBAL_OBJ._elenjicalWrappedDepth = (GLOBAL_OBJ._elenjicalWrappedDepth || 0) - 1;\n }\n } as unknown as WrappedFunction<T>;\n\n // Wrap the wrapped function in a proxy, to ensure any other properties of the original function remain available\n try {\n for (const property in fn) {\n if (Object.prototype.hasOwnProperty.call(fn, property)) {\n elenjicalWrapped[property as keyof T] = fn[property as keyof T];\n }\n }\n } catch {\n // Accessing some objects may throw\n // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n }\n\n // Signal that this function has been wrapped/filled already\n // for both debugging and to prevent it to being wrapped/filled twice\n markFunctionWrapped(elenjicalWrapped, fn);\n\n addNonEnumerableProperty(fn, '__elenjical_wrapped__', elenjicalWrapped);\n\n // Restore original function name (not all browsers allow that)\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const descriptor = Object.getOwnPropertyDescriptor(elenjicalWrapped, 'name')!;\n if (descriptor.configurable) {\n Object.defineProperty(elenjicalWrapped, 'name', {\n get(): string {\n return fn.name;\n },\n });\n }\n } catch {\n // This may throw if e.g. the descriptor does not exist, or a browser does not allow redefining `name`.\n // to save some bytes we simply try-catch this\n }\n\n return elenjicalWrapped;\n}\n\n/**\n * Get HTTP request data from the current page.\n */\nexport function getHttpRequestData(): { url: string; headers: Record<string, string> } {\n // grab as much info as exists and add it to the event\n const url = getLocationHref();\n const { referrer } = WINDOW.document || {};\n const { userAgent } = WINDOW.navigator || {};\n\n const headers = {\n ...(referrer && { Referer: referrer }),\n ...(userAgent && { 'User-Agent': userAgent }),\n };\n const request = {\n url,\n headers,\n };\n\n return request;\n}\n"],"names":["fn"],"mappings":";;AAaO,MAAM,MAAA,GAAS;AAEtB,IAAI,aAAA,GAAwB,CAAA;AAKrB,SAAS,mBAAA,GAA+B;AAC7C,EAAA,OAAO,aAAA,GAAgB,CAAA;AACzB;AAKO,SAAS,iBAAA,GAA0B;AAExC,EAAA,aAAA,EAAA;AACA,EAAA,UAAA,CAAW,MAAM;AACf,IAAA,aAAA,EAAA;AAAA,EACF,CAAC,CAAA;AACH;AA0BO,SAAS,IAAA,CACd,EAAA,EACA,OAAA,GAEI,EAAC,EAC6B;AAQlC,EAAA,SAAS,WAAWA,GAAAA,EAA8B;AAChD,IAAA,OAAO,OAAOA,GAAAA,KAAO,UAAA;AAAA,EACvB;AAEA,EAAA,IAAI,CAAC,UAAA,CAAW,EA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EAAE,SAAA,EAAU,GAAI,MAAA,CAAO,aAAa,EAAC;AAE3C,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,GAAI,QAAA,IAAY,EAAE,OAAA,EAAS,QAAA,EAAS;AAAA,IACpC,GAAI,SAAA,IAAa,EAAE,YAAA,EAAc,SAAA;AAAU,GAC7C;AACA,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,GAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,OAAO,OAAA;AACT;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { feedbackAsyncIntegration } from './feedbackAsync.js';
|
|
2
|
+
export { feedbackSyncIntegration as feedbackIntegration, feedbackSyncIntegration } from './feedbackSync.js';
|
|
3
|
+
export { MULTIPLEXED_TRANSPORT_EXTRA_KEY, SDK_VERSION, SEMANTIC_ATTRIBUTE_ELENJICAL_OP, SEMANTIC_ATTRIBUTE_ELENJICAL_ORIGIN, SEMANTIC_ATTRIBUTE_ELENJICAL_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_ELENJICAL_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, bindScopeToEmitter, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleLoggingIntegration, continueTrace, createConsolaReporter, createLangChainCallbackHandler, createTransport, dedupeIntegration, endSession, eventFiltersIntegration, extraErrorDataIntegration, featureFlagsIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, inboundFiltersIntegration, instrumentAnthropicAiClient, instrumentCreateReactAgent, instrumentGoogleGenAIClient, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentOpenAiClient, instrumentStateGraph, instrumentSupabaseClient, isEnabled, isInitialized, lastEventId, logger, makeMultiplexedTransport, metrics, moduleMetadataIntegration, parameterize, registerSpanErrorInstrumentation, rewriteFramesIntegration, setAttribute, setAttributes, setContext, setConversationId, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanToBaggageHeader, spanToJSON, spanToTraceHeader, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, thirdPartyErrorFilterIntegration, updateSpanName, withActiveSpan, withIsolationScope, withScope, withStreamedSpan, zodErrorsIntegration } from '@elenjical/core/browser';
|
|
4
|
+
export { WINDOW } from './helpers.js';
|
|
5
|
+
export { BrowserClient } from './client.js';
|
|
6
|
+
export { makeFetchTransport } from './transports/fetch.js';
|
|
7
|
+
export { uiProfiler } from './profiling/index.js';
|
|
8
|
+
export { chromeStackLineParser, defaultStackLineParsers, defaultStackParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser } from './stack-parsers.js';
|
|
9
|
+
export { eventFromException, eventFromMessage, exceptionFromError } from './eventbuilder.js';
|
|
10
|
+
export { createUserFeedbackEnvelope } from './userfeedback.js';
|
|
11
|
+
export { forceLoad, getDefaultIntegrations, init, onLoad } from './sdk.js';
|
|
12
|
+
export { showReportDialog } from './report-dialog.js';
|
|
13
|
+
export { breadcrumbsIntegration } from './integrations/breadcrumbs.js';
|
|
14
|
+
export { globalHandlersIntegration } from './integrations/globalhandlers.js';
|
|
15
|
+
export { httpContextIntegration } from './integrations/httpcontext.js';
|
|
16
|
+
export { linkedErrorsIntegration } from './integrations/linkederrors.js';
|
|
17
|
+
export { browserApiErrorsIntegration } from './integrations/browserapierrors.js';
|
|
18
|
+
export { browserSessionIntegration } from './integrations/browsersession.js';
|
|
19
|
+
export { lazyLoadIntegration } from './utils/lazyLoadIntegration.js';
|
|
20
|
+
export { reportingObserverIntegration } from './integrations/reportingobserver.js';
|
|
21
|
+
export { httpClientIntegration } from './integrations/httpclient.js';
|
|
22
|
+
export { contextLinesIntegration } from './integrations/contextlines.js';
|
|
23
|
+
export { graphqlClientIntegration } from './integrations/graphqlClient.js';
|
|
24
|
+
export { viewHierarchyIntegration } from './integrations/view-hierarchy.js';
|
|
25
|
+
export { getReplay, replayIntegration } from '@elenjical/replay';
|
|
26
|
+
export { replayCanvasIntegration } from '@elenjical/replay-canvas';
|
|
27
|
+
export { getFeedback, sendFeedback } from '@elenjical/feedback';
|
|
28
|
+
export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './tracing/request.js';
|
|
29
|
+
export { browserTracingIntegration, isBotUserAgent, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan } from './tracing/browserTracingIntegration.js';
|
|
30
|
+
export { elementTimingIntegration, getAbsoluteUrl } from '@elenjical/browser-utils';
|
|
31
|
+
export { normalizeStringifyValue } from './normalizeStringifyValue.js';
|
|
32
|
+
export { reportPageLoaded } from './tracing/reportPageLoaded.js';
|
|
33
|
+
export { setActiveSpanInBrowser } from './tracing/setActiveSpan.js';
|
|
34
|
+
export { spanStreamingIntegration } from './integrations/spanstreaming.js';
|
|
35
|
+
export { fetchStreamPerformanceIntegration } from './integrations/fetchStreamPerformance.js';
|
|
36
|
+
export { webVitalsIntegration } from './integrations/webVitals.js';
|
|
37
|
+
export { makeBrowserOfflineTransport } from './transports/offline.js';
|
|
38
|
+
export { browserProfilingIntegration } from './profiling/integration.js';
|
|
39
|
+
export { spotlightBrowserIntegration } from './integrations/spotlight.js';
|
|
40
|
+
export { cultureContextIntegration } from './integrations/culturecontext.js';
|
|
41
|
+
export { buildLaunchDarklyFlagUsedHandler, launchDarklyIntegration } from './integrations/featureFlags/launchdarkly/integration.js';
|
|
42
|
+
export { OpenFeatureIntegrationHook, openFeatureIntegration } from './integrations/featureFlags/openfeature/integration.js';
|
|
43
|
+
export { unleashIntegration } from './integrations/featureFlags/unleash/integration.js';
|
|
44
|
+
export { growthbookIntegration } from './integrations/featureFlags/growthbook/integration.js';
|
|
45
|
+
export { statsigIntegration } from './integrations/featureFlags/statsig/integration.js';
|
|
46
|
+
export { diagnoseSdkConnectivity } from './diagnose-sdk.js';
|
|
47
|
+
export { registerWebWorker, webWorkerIntegration } from './integrations/webWorker.js';
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|