@qonto/embed-sdk 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +1 -0
- package/dist/_virtual/lottie.js +1 -0
- package/dist/_virtual/lottie2.js +1 -0
- package/dist/cards/cards.d.ts +2 -1
- package/dist/cards/cards.d.ts.map +1 -1
- package/dist/common/constants.d.ts +3 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/environment/environment-manager.d.ts.map +1 -1
- package/dist/common/initialize/initialize.d.ts.map +1 -1
- package/dist/common/logger/index.d.ts +2 -0
- package/dist/common/logger/index.d.ts.map +1 -0
- package/dist/common/logger/logger.d.ts +8 -0
- package/dist/common/logger/logger.d.ts.map +1 -0
- package/dist/common/logger/logger.test.d.ts +2 -0
- package/dist/common/logger/logger.test.d.ts.map +1 -0
- package/dist/common/network/network.d.ts +4 -3
- package/dist/common/network/network.d.ts.map +1 -1
- package/dist/common/operation-settings/operation-settings.d.ts +1 -0
- package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/common/sentry/index.d.ts +2 -0
- package/dist/common/sentry/index.d.ts.map +1 -0
- package/dist/common/sentry/sentry-manager.d.ts +36 -0
- package/dist/common/sentry/sentry-manager.d.ts.map +1 -0
- package/dist/index.umd.js +473 -209
- package/dist/mocks/handlers.d.ts +8 -0
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js +1 -0
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js +1 -0
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js +1 -0
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js +1 -0
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js +1 -0
- package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/types.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/client.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/debug-build.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/eventbuilder.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/helpers.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/breadcrumbs.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/browserapierrors.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/browsersession.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/globalhandlers.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/httpcontext.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/linkederrors.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/sdk.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/stack-parsers.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/transports/fetch.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/userfeedback.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/api.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/asyncContext/index.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/baseclient.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/breadcrumbs.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/carrier.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/constants.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/debug-build.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/defaultScopes.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/envelope.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/eventProcessors.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/inboundfilters.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/metrics/metric-summary.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/scope.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/sdk.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/semanticAttributes.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/session.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/tracing/spanstatus.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/transports/base.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/applyScopeDataToEvent.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/hasTracingEnabled.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/merge.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/spanUtils.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/aggregate-errors.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/baggage.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/breadcrumb-log-level.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/browser.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/clientreport.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/debug-build.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/debug-ids.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/dsn.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/env.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/envelope.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/error.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/console.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/fetch.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalError.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalUnhandledRejection.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/handlers.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/is.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/memo.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/normalize.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/promisebuffer.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/propagationContext.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/ratelimit.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/severity.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/string.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/supports.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/syncpromise.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/time.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/url.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/vendor/supportsHistory.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/version.js +1 -0
- package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/worldwide.js +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/async-directive.js +6 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +6 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/ref.js +6 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js +6 -0
- package/dist/node_modules/.pnpm/lottie-web@5.13.0/node_modules/lottie-web/build/player/lottie.js +1 -0
- package/dist/sca/sca.api.d.ts +16 -0
- package/dist/sca/sca.api.d.ts.map +1 -0
- package/dist/sca/sca.constants.d.ts +6 -0
- package/dist/sca/sca.constants.d.ts.map +1 -0
- package/dist/sca/sca.d.ts +4 -0
- package/dist/sca/sca.d.ts.map +1 -0
- package/dist/sca/sca.serializer.d.ts +10 -0
- package/dist/sca/sca.serializer.d.ts.map +1 -0
- package/dist/sca/sca.test.d.ts +2 -0
- package/dist/sca/sca.test.d.ts.map +1 -0
- package/dist/sca/sca.types.d.ts +39 -0
- package/dist/sca/sca.types.d.ts.map +1 -0
- package/dist/sepa-transfers/sepa-transfers.api.d.ts +17 -1
- package/dist/sepa-transfers/sepa-transfers.api.d.ts.map +1 -1
- package/dist/sepa-transfers/sepa-transfers.d.ts +1 -0
- package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
- package/dist/sepa-transfers/sepa-transfers.utils.d.ts +14 -2
- package/dist/sepa-transfers/sepa-transfers.utils.d.ts.map +1 -1
- package/dist/src/common/constants.js +1 -1
- package/dist/src/common/environment/environment-manager.js +1 -1
- package/dist/src/common/initialize/initialize.js +1 -1
- package/dist/src/common/logger/logger.js +1 -0
- package/dist/src/common/network/network.js +1 -1
- package/dist/src/common/operation-settings/operation-settings.js +1 -1
- package/dist/src/common/sentry/sentry-manager.js +1 -0
- package/dist/src/sca/sca.api.js +1 -0
- package/dist/src/sca/sca.constants.js +1 -0
- package/dist/src/sca/sca.js +1 -0
- package/dist/src/sca/sca.serializer.js +1 -0
- package/dist/src/sepa-transfers/sepa-transfers.api.js +1 -1
- package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
- package/dist/src/sepa-transfers/sepa-transfers.utils.js +1 -1
- package/dist/src/ui/animations/generic_sca_approval.json.js +1 -0
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.js +1 -0
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.js +10 -0
- package/dist/src/ui/customizable-components/text/qonto-text-body.js +6 -0
- package/dist/src/ui/customizable-components/text/qonto-text-body.styles.js +45 -0
- package/dist/src/ui/customizable-components/text/qonto-text-heading.js +1 -0
- package/dist/src/ui/customizable-components/text/qonto-text-heading.styles.js +48 -0
- package/dist/src/ui/ui-elements/localize/generated/locales/de.js +1 -1
- package/dist/src/ui/ui-elements/localize/generated/locales/es.js +1 -1
- package/dist/src/ui/ui-elements/localize/generated/locales/fr.js +1 -1
- package/dist/src/ui/ui-elements/localize/generated/locales/it.js +1 -1
- package/dist/src/ui/ui-elements/localize/generated/locales/nl.js +1 -1
- package/dist/src/ui/ui-elements/localize/generated/locales/pt.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +34 -0
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.js +75 -0
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.js +34 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts.map +1 -1
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts.map +1 -1
- package/dist/ui/customizable-components/text/qonto-text-body.d.ts +2 -0
- package/dist/ui/customizable-components/text/qonto-text-body.d.ts.map +1 -1
- package/dist/ui/customizable-components/text/qonto-text-body.styles.d.ts +2 -0
- package/dist/ui/customizable-components/text/qonto-text-body.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/de.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/de.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/es.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/es.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/fr.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/fr.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/it.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/it.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/nl.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/nl.d.ts.map +1 -1
- package/dist/ui/ui-elements/localize/generated/locales/pt.d.ts +34 -0
- package/dist/ui/ui-elements/localize/generated/locales/pt.d.ts.map +1 -1
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts +31 -0
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts.map +1 -0
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.d.ts +3 -0
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts +0 -4
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts +20 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +0 -12
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +12 -1
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +4 -1
package/dist/mocks/handlers.d.ts
CHANGED
|
@@ -83,5 +83,13 @@ export declare const mockedEmbedAuthLink: {
|
|
|
83
83
|
expired_at: string;
|
|
84
84
|
used_at: null;
|
|
85
85
|
};
|
|
86
|
+
export declare const MOCK_SCA_SESSION_TOKEN = "mock_sca_session_token";
|
|
87
|
+
export declare const MOCK_DENY_SCA_SESSION_TOKEN = "deny-token";
|
|
88
|
+
export declare const mockVopResponse: {
|
|
89
|
+
readonly match_result: "MATCH_RESULT_MATCH";
|
|
90
|
+
readonly proof_token: {
|
|
91
|
+
readonly token: "valid_proof_token";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
86
94
|
export declare const mswHandlers: import("msw").HttpHandler[];
|
|
87
95
|
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EACV,sBAAsB,EAGtB,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qDAAqD,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EACV,sBAAsB,EAGtB,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qDAAqD,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAK5C,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BA8pBvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;export{_ as DEBUG_BUILD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"./debug-build.js";import{WINDOW as o}from"./types.js";import{isNativeFunction as t}from"../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/supports.js";import{logger as n}from"../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";const r={};function i(i){const s=r[i];if(s)return s;let d=o[i];if(t(d))return r[i]=d.bind(o);const c=o.document;if(c&&"function"==typeof c.createElement)try{const e=c.createElement("iframe");e.hidden=!0,c.head.appendChild(e);const o=e.contentWindow;o&&o[i]&&(d=o[i]),c.head.removeChild(e)}catch(o){e&&n.warn(`Could not create sandbox iframe for ${i} check, bailing to window.${i}: `,o)}return d?r[i]=d.bind(o):d}function s(e){r[e]=void 0}export{s as clearCachedImplementation,i as getNativeImplementation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WINDOW as t}from"../types.js";import{addHandler as e,maybeInstrument as n,triggerHandlers as r}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/handlers.js";import{fill as s,addNonEnumerableProperty as o}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js";import{uuid4 as i}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js";let u,c,d;function a(t){e("dom",t),n("dom",l)}function l(){if(!t.document)return;const e=r.bind(null,"dom"),n=_(e,!0);t.document.addEventListener("click",n,!1),t.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const r=t[n],o=r&&r.prototype;o&&o.hasOwnProperty&&o.hasOwnProperty("addEventListener")&&(s(o,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=_(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch(t){}return t.call(this,n,r,s)}})),s(o,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function _(e,n=!1){return r=>{if(!r||r._sentryCaptured)return;const s=function(t){try{return t.target}catch(t){return null}}(r);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(r.type,s))return;o(r,"_sentryCaptured",!0),s&&!s._sentryId&&o(s,"_sentryId",i());const a="keypress"===r.type?"input":r.type;if(!function(t){if(t.type!==c)return!1;try{if(!t.target||t.target._sentryId!==d)return!1}catch(t){}return!0}(r)){e({event:r,name:a,global:n}),c=r.type,d=s?s._sentryId:void 0}clearTimeout(u),u=t.setTimeout((()=>{d=void 0,c=void 0}),1e3)}}export{a as addClickKeypressInstrumentationHandler,l as instrumentDOM};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WINDOW as t}from"../types.js";import{addHandler as o,maybeInstrument as r,triggerHandlers as s}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/handlers.js";import{supportsHistory as e}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/vendor/supportsHistory.js";import{fill as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js";let i;function c(t){const s="history";o(s,t),r(s,u)}function u(){if(!e())return;const o=t.onpopstate;function r(t){return function(...o){const r=o.length>2?o[2]:void 0;if(r){const t=i,o=String(r);i=o;s("history",{from:t,to:o})}return t.apply(this,o)}}t.onpopstate=function(...r){const e=t.location.href,n=i;i=e;if(s("history",{from:n,to:e}),o)try{return o.apply(this,r)}catch(t){}},n(t.history,"pushState",r),n(t.history,"replaceState",r)}export{c as addHistoryInstrumentationHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WINDOW as e}from"../types.js";import{addHandler as t,maybeInstrument as r,triggerHandlers as s}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/handlers.js";import{timestampInSeconds as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/time.js";import{isString as o}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/is.js";const a="__sentry_xhr_v3__";function p(e){t("xhr",e),r("xhr",y)}function y(){if(!e.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,t,r){const p=new Error,y=1e3*n(),i=o(r[0])?r[0].toUpperCase():void 0,u=function(e){if(o(e))return e;try{return e.toString()}catch(e){}return}(r[1]);if(!i||!u)return e.apply(t,r);t[a]={method:i,url:u,request_headers:{}},"POST"===i&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const c=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const r={endTimestamp:1e3*n(),startTimestamp:y,xhr:t,virtualError:p};s("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(c(),e.apply(t,r))}):t.addEventListener("readystatechange",c),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[s,n]=r,p=t[a];return p&&o(s)&&o(n)&&(p.request_headers[s.toLowerCase()]=n),e.apply(t,r)}}),e.apply(t,r)}}),t.send=new Proxy(t.send,{apply(e,t,r){const o=t[a];if(!o)return e.apply(t,r);void 0!==r[0]&&(o.body=r[0]);const p={startTimestamp:1e3*n(),xhr:t};return s("xhr",p),e.apply(t,r)}})}export{a as SENTRY_XHR_DATA_KEY,p as addXhrInstrumentationHandler,y as instrumentXHR};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as o}from"../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/worldwide.js";const e=o;export{e as WINDOW};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"./debug-build.js";import{eventFromException as t,eventFromMessage as s}from"./eventbuilder.js";import{WINDOW as r}from"./helpers.js";import{createUserFeedbackEnvelope as o}from"./userfeedback.js";import{BaseClient as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/baseclient.js";import{applySdkMetadata as i}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js";import{logger as a}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";import{getSDKSource as d}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/env.js";class c extends n{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},s=r.SENTRY_SDK_SOURCE||d();i(t,"browser",["browser"],s),super(t),t.sendClientReports&&r.document&&r.document.addEventListener("visibilitychange",(()=>{"hidden"===r.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,s){return t(this._options.stackParser,e,s,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return s(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(e&&a.warn("SDK not enabled, will not capture user feedback."));const s=o(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(s)}_prepareEvent(e,t,s){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,s)}}export{c as BrowserClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;export{_ as DEBUG_BUILD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isErrorEvent as e,isDOMError as t,isDOMException as r,isError as n,isPlainObject as s,isEvent as o,isParameterizedString as i}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/is.js";import{addExceptionTypeValue as c,addExceptionMechanism as u}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js";import{getClient as a}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js";import{normalizeToSize as m}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/normalize.js";import{extractExceptionKeysForMessage as l}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js";import{resolvedSyncPromise as f}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/syncpromise.js";function d(e,t){const r=_(e,t),n={type:h(t),value:b(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function p(e,t,r,n){const s=a(),i=s&&s.getOptions().normalizeDepth,c=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),u={__serialized__:m(t,i)};if(c)return{exception:{values:[d(e,c)]},extra:u};const l={exception:{values:[{type:o(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:O(t,{isUnhandledRejection:n})}]},extra:u};if(r){const t=_(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function y(e,t){return{exception:{values:[d(e,t)]}}}function _(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&g.test(e.message))return 1;return 0}(t),s=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,s)}catch(e){}return[]}const g=/Minified React error #\d+;/i;function v(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function h(e){const t=e&&e.name;if(!t&&v(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function b(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:v(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function x(e,t,r,n){const s=E(e,t,r&&r.syntheticException||void 0,n);return u(s),s.level="error",r&&r.event_id&&(s.event_id=r.event_id),f(s)}function j(e,t,r="info",n,s){const o=$(e,t,n&&n.syntheticException||void 0,s);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),f(o)}function E(i,a,m,l,f){let d;if(e(a)&&a.error){return y(i,a.error)}if(t(a)||r(a)){const e=a;if("stack"in a)d=y(i,a);else{const r=e.name||(t(e)?"DOMError":"DOMException"),n=e.message?`${r}: ${e.message}`:r;d=$(i,n,m,l),c(d,n)}return"code"in e&&(d.tags={...d.tags,"DOMException.code":`${e.code}`}),d}if(n(a))return y(i,a);if(s(a)||o(a)){return d=p(i,a,m,f),u(d,{synthetic:!0}),d}return d=$(i,a,m,l),c(d,`${a}`),u(d,{synthetic:!0}),d}function $(e,t,r,n){const s={};if(n&&r){const n=_(e,r);n.length&&(s.exception={values:[{value:t,stacktrace:{frames:n}}]}),u(s,{synthetic:!0})}if(i(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return s.logentry={message:e,params:r},s}return s.message=t,s}function O(t,{isUnhandledRejection:r}){const n=l(t),s=r?"promise rejection":"exception";if(e(t))return`Event \`ErrorEvent\` captured as ${s} with message \`${t.message}\``;if(o(t)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(t)}\` (type=${t.type}) captured as ${s}`}return`Object captured as ${s} with keys: ${n}`}export{x as eventFromException,j as eventFromMessage,E as eventFromUnknownInput,d as exceptionFromError,b as extractMessage,h as extractType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as e}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/worldwide.js";import{getOriginalFunction as t,markFunctionWrapped as r,addNonEnumerableProperty as o}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js";import{withScope as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js";import{addExceptionTypeValue as s,addExceptionMechanism as c}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js";import{captureException as i}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js";const u=e;let m=0;function d(){return m>0}function p(){m++,setTimeout((()=>{m--}))}function y(e,u={}){if(!function(e){return"function"==typeof e}(e))return e;try{const r=e.__sentry_wrapped__;if(r)return"function"==typeof r?r:e;if(t(e))return e}catch(t){return e}const m=function(...t){try{const r=t.map((e=>y(e,u)));return e.apply(this,r)}catch(e){throw p(),n((r=>{r.addEventProcessor((e=>(u.mechanism&&(s(e,void 0),c(e,u.mechanism)),e.extra={...e.extra,arguments:t},e))),i(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(m[t]=e[t])}catch(e){}r(m,e),o(e,"__sentry_wrapped__",m);try{Object.getOwnPropertyDescriptor(m,"name").configurable&&Object.defineProperty(m,"name",{get:()=>e.name})}catch(e){}return m}export{u as WINDOW,p as ignoreNextOnError,d as shouldIgnoreOnError,y as wrap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"../debug-build.js";import{WINDOW as t}from"../helpers.js";import{defineIntegration as r}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{addConsoleInstrumentationHandler as o}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/console.js";import{addClickKeypressInstrumentationHandler as s}from"../../../../../../../../@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js";import{addXhrInstrumentationHandler as n,SENTRY_XHR_DATA_KEY as i}from"../../../../../../../../@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js";import{addFetchInstrumentationHandler as m}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/fetch.js";import{addHistoryInstrumentationHandler as l}from"../../../../../../../../@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js";import{getClient as a}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js";import{addBreadcrumb as u}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/breadcrumbs.js";import{getEventDescription as c}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js";import{logger as d}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";import{htmlTreeAsString as f,getComponentName as y}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/browser.js";import{safeJoin as p}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/string.js";import{severityLevelFromString as h}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/severity.js";import{getBreadcrumbLogLevelFromHttpStatusCode as g}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/breadcrumb-log-level.js";import{parseUrl as b}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/url.js";const _=1024,v=r(((r={})=>{const v={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...r};return{name:"Breadcrumbs",setup(r){v.console&&o(function(e){return function(t){if(a()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:h(t.level),message:p(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${p(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}u(r,{input:t.args,level:t.level})}}(r)),v.dom&&s(function(t,r){return function(o){if(a()!==t)return;let s,n,i="object"==typeof r?r.serializeAttribute:void 0,m="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;m&&m>_&&(e&&d.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${m} was configured. Sentry will use 1024 instead.`),m=_),"string"==typeof i&&(i=[i]);try{const e=o.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;s=f(t,{keyAttrs:i,maxStringLength:m}),n=y(t)}catch(e){s="<unknown>"}if(0===s.length)return;const l={category:`ui.${o.name}`,message:s};n&&(l.data={"ui.component_name":n}),u(l,{event:o.event,name:o.name,global:o.global})}}(r,v.dom)),v.xhr&&n(function(e){return function(t){if(a()!==e)return;const{startTimestamp:r,endTimestamp:o}=t,s=t.xhr[i];if(!r||!o||!s)return;const{method:n,url:m,status_code:l,body:c}=s,d={method:n,url:m,status_code:l},f={xhr:t.xhr,input:c,startTimestamp:r,endTimestamp:o},y=g(l);u({category:"xhr",data:d,type:"http",level:y},f)}}(r)),v.fetch&&m(function(e){return function(t){if(a()!==e)return;const{startTimestamp:r,endTimestamp:o}=t;if(o&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,s={data:t.error,input:t.args,startTimestamp:r,endTimestamp:o};u({category:"fetch",data:e,level:"error",type:"http"},s)}else{const e=t.response,s={...t.fetchData,status_code:e&&e.status},n={input:t.args,response:e,startTimestamp:r,endTimestamp:o},i=g(s.status_code);u({category:"fetch",data:s,type:"http",level:i},n)}}}(r)),v.history&&l(function(e){return function(r){if(a()!==e)return;let o=r.from,s=r.to;const n=b(t.location.href);let i=o?b(o):void 0;const m=b(s);i&&i.path||(i=n),n.protocol===m.protocol&&n.host===m.host&&(s=m.relative),n.protocol===i.protocol&&n.host===i.host&&(o=i.relative),u({category:"navigation",data:{from:o,to:s}})}}(r)),v.sentry&&r.on("beforeSendEvent",function(e){return function(t){a()===e&&u({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:c(t)},{event:t})}}(r))}}}));export{v as breadcrumbsIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WINDOW as e,wrap as t}from"../helpers.js";import{defineIntegration as n}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{fill as r,getOriginalFunction as o}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js";import{getFunctionName as a}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js";const s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],i=n(((t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&r(e,"setTimeout",c),n.setInterval&&r(e,"setInterval",c),n.requestAnimationFrame&&r(e,"requestAnimationFrame",u),n.XMLHttpRequest&&"XMLHttpRequest"in e&&r(XMLHttpRequest.prototype,"send",d);const t=n.eventTarget;if(t){(Array.isArray(t)?t:s).forEach(m)}}}}));function c(e){return function(...n){const r=n[0];return n[0]=t(r,{mechanism:{data:{function:a(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function u(e){return function(n){return e.apply(this,[t(n,{mechanism:{data:{function:"requestAnimationFrame",handler:a(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...n){const s=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in s&&"function"==typeof s[e]&&r(s,e,(function(n){const r={mechanism:{data:{function:e,handler:a(n)},handled:!1,type:"instrument"}},s=o(n);return s&&(r.mechanism.data.handler=a(s)),t(n,r)}))})),e.apply(this,n)}}function m(n){const o=e[n],s=o&&o.prototype;s&&s.hasOwnProperty&&s.hasOwnProperty("addEventListener")&&(r(s,"addEventListener",(function(e){return function(r,o,s){try{"function"==typeof o.handleEvent&&(o.handleEvent=t(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:a(o),target:n},handled:!1,type:"instrument"}}))}catch(e){}return e.apply(this,[r,t(o,{mechanism:{data:{function:"addEventListener",handler:a(o),target:n},handled:!1,type:"instrument"}}),s])}})),r(s,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}})))}export{i as browserApiErrorsIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"../debug-build.js";import{WINDOW as o}from"../helpers.js";import{defineIntegration as r}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{logger as s}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";import{startSession as n,captureSession as t}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js";import{addHistoryInstrumentationHandler as i}from"../../../../../../../../@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js";const m=r((()=>({name:"BrowserSession",setupOnce(){void 0!==o.document?(n({ignoreDuration:!0}),t(),i((({from:e,to:o})=>{void 0!==e&&e!==o&&(n({ignoreDuration:!0}),t())}))):e&&s.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}})));export{m as browserSessionIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"../debug-build.js";import{eventFromUnknownInput as r}from"../eventbuilder.js";import{shouldIgnoreOnError as o}from"../helpers.js";import{defineIntegration as t}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{addGlobalErrorInstrumentationHandler as n}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalError.js";import{logger as s}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";import{addGlobalUnhandledRejectionInstrumentationHandler as i}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalUnhandledRejection.js";import{getClient as c}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js";import{captureEvent as l}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js";import{isPrimitive as a,isString as u}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/is.js";import{getLocationHref as m}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/browser.js";import{UNKNOWN_FUNCTION as d}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js";const p=t(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){n((t=>{const{stackParser:n,attachStacktrace:s}=h();if(c()!==e||o())return;const{msg:i,url:a,line:p,column:f,error:y}=t,j=function(e,r,o,t){const n=e.exception=e.exception||{},s=n.values=n.values||[],i=s[0]=s[0]||{},c=i.stacktrace=i.stacktrace||{},l=c.frames=c.frames||[],a=t,p=o,f=u(r)&&r.length>0?r:m();0===l.length&&l.push({colno:a,filename:f,function:d,in_app:!0,lineno:p});return e}(r(n,y||i,void 0,s,!1),a,p,f);j.level="error",l(j,{originalException:y,mechanism:{handled:!1,type:"onerror"}})}))}(e),f("onerror")),t.onunhandledrejection&&(!function(e){i((t=>{const{stackParser:n,attachStacktrace:s}=h();if(c()!==e||o())return;const i=function(e){if(a(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),u=a(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:r(n,i,void 0,s,!0);u.level="error",l(u,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),f("onunhandledrejection"))}}}));function f(r){e&&s.log(`Global Handler attached: ${r}`)}function h(){const e=c();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}export{p as globalHandlersIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WINDOW as e}from"../helpers.js";import{defineIntegration as r}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";const t=r((()=>({name:"HttpContext",preprocessEvent(r){if(!e.navigator&&!e.location&&!e.document)return;const t=r.request&&r.request.url||e.location&&e.location.href,{referrer:o}=e.document||{},{userAgent:s}=e.navigator||{},n={...r.request&&r.request.headers,...o&&{Referer:o},...s&&{"User-Agent":s}},u={...r.request,...t&&{url:t},headers:n};r.request=u}})));export{t as httpContextIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{exceptionFromError as e}from"../eventbuilder.js";import{defineIntegration as r}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{applyAggregateErrorsToEvent as o}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/aggregate-errors.js";const s=r(((r={})=>{const s=r.limit||5,t=r.key||"cause";return{name:"LinkedErrors",preprocessEvent(r,n,i){const m=i.getOptions();o(e,m.stackParser,m.maxValueLength,t,s,r,n)}}}));export{s as linkedErrorsIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BrowserClient as e}from"./client.js";import{DEBUG_BUILD as r}from"./debug-build.js";import{WINDOW as o}from"./helpers.js";import{breadcrumbsIntegration as t}from"./integrations/breadcrumbs.js";import{browserApiErrorsIntegration as s}from"./integrations/browserapierrors.js";import{browserSessionIntegration as n}from"./integrations/browsersession.js";import{globalHandlersIntegration as i}from"./integrations/globalhandlers.js";import{httpContextIntegration as m}from"./integrations/httpcontext.js";import{linkedErrorsIntegration as c}from"./integrations/linkederrors.js";import{defaultStackParser as a}from"./stack-parsers.js";import{makeFetchTransport as d}from"./transports/fetch.js";import{consoleSandbox as u,logger as l}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js";import{supportsFetch as p}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/supports.js";import{getIntegrationsToSetup as f}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js";import{stackParserFromStackParserOptions as _}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js";import{initAndBind as b}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/sdk.js";import{inboundFiltersIntegration as y}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/inboundfilters.js";import{functionToStringIntegration as g}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js";import{dedupeIntegration as h}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js";function E(e){const r=[y(),g(),s(),t(),i(),c(),h(),m()];return!1!==e.autoSessionTracking&&r.push(n()),r}function j(t={}){const s=function(e={}){const r={defaultIntegrations:E(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:o.SENTRY_RELEASE&&o.SENTRY_RELEASE.id?o.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...r,...e}}(t);if(!s.skipBrowserExtensionCheck&&function(){const e=void 0!==o.window&&o;if(!e)return!1;const r=e[e.chrome?"chrome":"browser"],t=r&&r.runtime&&r.runtime.id,s=o.location&&o.location.href||"",n=!!t&&o===o.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>s.startsWith(`${e}//`))),i=void 0!==e.nw;return!!t&&!n&&!i}())return void u((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));r&&(p()||l.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...s,stackParser:_(s.stackParser||a),integrations:f(s),transport:s.transport||d};return b(e,n)}export{E as getDefaultIntegrations,j as init};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createStackParser as e,UNKNOWN_FUNCTION as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js";function i(e,i,s,o){const t={filename:e,function:"<anonymous>"===i?n:i,in_app:!0};return void 0!==s&&(t.lineno=s),void 0!==o&&(t.colno=o),t}const s=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,o=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=[30,e=>{const d=s.exec(e);if(d){const[,e,s,o]=d;return i(e,n,+s,+o)}const a=o.exec(e);if(a){if(a[2]&&0===a[2].indexOf("eval")){const e=t.exec(a[2]);e&&(a[2]=e[1],a[3]=e[2],a[4]=e[3])}const[e,s]=x(a[1]||n,a[2]);return i(s,e,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}}],a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,r=[50,e=>{const s=a.exec(e);if(s){if(s[3]&&s[3].indexOf(" > eval")>-1){const e=c.exec(s[3]);e&&(s[1]=s[1]||"eval",s[3]=e[1],s[4]=e[2],s[5]="")}let e=s[3],o=s[1]||n;return[o,e]=x(o,e),i(e,o,s[4]?+s[4]:void 0,s[5]?+s[5]:void 0)}}],f=[d,r],l=e(...f),x=(e,i)=>{const s=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return s||o?[-1!==e.indexOf("@")?e.split("@")[0]:n,s?`safari-extension:${i}`:`safari-web-extension:${i}`]:[e,i]};export{d as chromeStackLineParser,f as defaultStackLineParsers,l as defaultStackParser,r as geckoStackLineParser};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getNativeImplementation as e,clearCachedImplementation as t}from"../../../../../../../../@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js";import{createTransport as r}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/transports/base.js";import{rejectedSyncPromise as s}from"../../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/syncpromise.js";function o(o,n=e("fetch")){let i=0,a=0;return r(o,(function(e){const r=e.body.length;i+=r,a++;const l={body:e.body,method:"POST",referrerPolicy:"origin",headers:o.headers,keepalive:i<=6e4&&a<15,...o.fetchOptions};if(!n)return t("fetch"),s("No fetch implementation available");try{return n(o.url,l).then((e=>(i-=r,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return t("fetch"),i-=r,a--,s(e)}}))}export{o as makeFetchTransport};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dsnToString as e}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/dsn.js";import{createEnvelope as n}from"../../../../../../../@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/envelope.js";function t(t,{metadata:s,tunnel:o,dsn:r}){const d={event_id:t.event_id,sent_at:(new Date).toISOString(),...s&&s.sdk&&{sdk:{name:s.sdk.name,version:s.sdk.version}},...!!o&&!!r&&{dsn:e(r)}},i=function(e){return[{type:"user_report"},e]}(t);return n(d,[i])}export{t as createUserFeedbackEnvelope};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,n,r){return n||`${function(t){return`${function(t){const n=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${n}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const r={sentry_version:"7"};return t.publicKey&&(r.sentry_key=t.publicKey),n&&(r.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(r).toString()}(t,r)}`}export{t as getEnvelopeEndpointWithUrlEncodedAuth};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getSentryCarrier as r}from"../carrier.js";import{getStackAsyncContextStrategy as t}from"./stackStrategy.js";function o(o){const c=r(o);return c.acs?c.acs:t()}export{o as getAsyncContextStrategy};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDefaultCurrentScope as t,getDefaultIsolationScope as o}from"../defaultScopes.js";import{Scope as e}from"../scope.js";import{isThenable as c}from"../utils-hoist/is.js";import{getMainCarrier as s,getSentryCarrier as p}from"../carrier.js";class i{constructor(t,o){let c,s;c=t||new e,s=o||new e,this._stack=[{scope:c}],this._isolationScope=s}withScope(t){const o=this._pushScope();let e;try{e=t(o)}catch(t){throw this._popScope(),t}return c(e)?e.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function n(){const e=s(),c=p(e);return c.stack=c.stack||new i(t(),o())}function r(t){return n().withScope(t)}function h(t,o){const e=n();return e.withScope((()=>(e.getStackTop().scope=t,o(t))))}function S(t){return n().withScope((()=>t(n().getIsolationScope())))}function a(){return{withIsolationScope:S,withScope:r,withSetScope:h,withSetIsolationScope:(t,o)=>S(o),getCurrentScope:()=>n().getScope(),getIsolationScope:()=>n().getIsolationScope()}}export{i as AsyncContextStack,a as getStackAsyncContextStrategy};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getEnvelopeEndpointWithUrlEncodedAuth as t}from"./api.js";import{getCurrentScope as e,getIsolationScope as s,getTraceContextFromScope as n}from"./currentScopes.js";import{DEBUG_BUILD as o}from"./debug-build.js";import{createEventEnvelope as r,createSessionEnvelope as i}from"./envelope.js";import{setupIntegration as a,afterSetupIntegrations as c,setupIntegrations as p}from"./integration.js";import{updateSession as h}from"./session.js";import{getDynamicSamplingContextFromScope as l}from"./tracing/dynamicSamplingContext.js";import{createClientReportEnvelope as d}from"./utils-hoist/clientreport.js";import{makeDsn as u,dsnToString as _}from"./utils-hoist/dsn.js";import{addItemToEnvelope as m,createAttachmentEnvelopeItem as g}from"./utils-hoist/envelope.js";import{SentryError as f}from"./utils-hoist/error.js";import{isPrimitive as v,isParameterizedString as E,isThenable as b,isPlainObject as w}from"./utils-hoist/is.js";import{logger as S,consoleSandbox as P}from"./utils-hoist/logger.js";import{uuid4 as j,checkOrSetAlreadyCaught as y}from"./utils-hoist/misc.js";import{resolvedSyncPromise as k,SyncPromise as D,rejectedSyncPromise as x}from"./utils-hoist/syncpromise.js";import{parseSampleRate as $}from"./utils/parseSampleRate.js";import{prepareEvent as M}from"./utils/prepareEvent.js";import{showSpanDropWarning as O}from"./utils/spanUtils.js";const I="Not capturing exception because it's already been captured.";class C{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=u(e.dsn):o&&S.warn("No DSN provided, client will not send events."),this._dsn){const s=t(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:s})}const s=["enableTracing","tracesSampleRate","tracesSampler"].find((t=>t in e&&null==e[t]));s&&P((()=>{console.warn(`[Sentry] Deprecation warning: \`${s}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(t,e,s){const n=j();if(y(t))return o&&S.log(I),n;const r={event_id:n,...e};return this._process(this.eventFromException(t,r).then((t=>this._captureEvent(t,r,s)))),r.event_id}captureMessage(t,e,s,n){const o={event_id:j(),...s},r=E(t)?t:String(t),i=v(t)?this.eventFromMessage(r,e,o):this.eventFromException(t,o);return this._process(i.then((t=>this._captureEvent(t,o,n)))),o.event_id}captureEvent(t,e,s){const n=j();if(e&&e.originalException&&y(e.originalException))return o&&S.log(I),n;const r={event_id:n,...e},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,r,i||s)),r.event_id}captureSession(t){"string"!=typeof t.release?o&&S.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),h(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((s=>e.flush(t).then((t=>s&&t))))):k(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];a(this,t,this._integrations),e||c(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let s=r(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])s=m(s,g(t));const n=this.sendEnvelope(s);n&&n.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=i(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,s){if(this._options.sendClientReports){const n="number"==typeof s?s:1,r=`${t}:${e}`;o&&S.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const s=this._hooks[t]=this._hooks[t]||[];return s.push(e),()=>{const t=s.indexOf(e);t>-1&&s.splice(t,1)}}emit(t,...e){const s=this._hooks[t];s&&s.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(o&&S.error("Error while sending envelope:",t),t))):(o&&S.error("Transport disabled"),k({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=p(this,t),c(this,t)}_updateSessionFromEvent(t,e){let s="fatal"===e.level,n=!1;const o=e.exception&&e.exception.values;if(o){n=!0;for(const t of o){const e=t.mechanism;if(e&&!1===e.handled){s=!0;break}}}const r="ok"===t.status;(r&&0===t.errors||r&&s)&&(h(t,{...s&&{status:"crashed"},errors:t.errors||Number(n||s)}),this.captureSession(t))}_isClientDoneProcessing(t){return new D((e=>{let s=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),e(!0)):(s+=1,t&&s>=t&&(clearInterval(n),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,o,r=e(),i=s()){const a=this.getOptions(),c=Object.keys(this._integrations);return!o.integrations&&c.length>0&&(o.integrations=c),this.emit("preprocessEvent",t,o),t.type||i.setLastEventId(t.event_id||o.event_id),M(a,t,o,r,this,i).then((t=>{if(null===t)return t;t.contexts={trace:n(r),...t.contexts};const e=l(this,r);return t.sdkProcessingMetadata={dynamicSamplingContext:e,...t.sdkProcessingMetadata},t}))}_captureEvent(t,e={},s){return this._processEvent(t,e,s).then((t=>t.event_id),(t=>{o&&(t instanceof f&&"log"===t.logLevel?S.log(t.message):S.warn(t))}))}_processEvent(t,e,s){const n=this.getOptions(),{sampleRate:o}=n,r=F(t),i=N(t),a=t.type||"error",c=`before send for type \`${a}\``,p=void 0===o?void 0:$(o);if(i&&"number"==typeof p&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error",t),x(new f(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const h="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,s,l).then((s=>{if(null===s)throw this.recordDroppedEvent("event_processor",h,t),new f("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return s;const o=function(t,e,s,n){const{beforeSend:o,beforeSendTransaction:r,beforeSendSpan:i}=e;if(N(s)&&o)return o(s,n);if(F(s)){if(s.spans&&i){const e=[];for(const n of s.spans){const s=i(n);s?e.push(s):(O(),t.recordDroppedEvent("before_send","span"))}s.spans=e}if(r){if(s.spans){const t=s.spans.length;s.sdkProcessingMetadata={...s.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return r(s,n)}}return s}(this,n,s,e);return function(t,e){const s=`${e} must return \`null\` or a valid event.`;if(b(t))return t.then((t=>{if(!w(t)&&null!==t)throw new f(s);return t}),(t=>{throw new f(`${e} rejected with ${t}`)}));if(!w(t)&&null!==t)throw new f(s);return t}(o,c)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",h,t),r){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new f(`${c} returned \`null\`, will not send event.`,"log")}const o=s&&s.getSession();if(!r&&o&&this._updateSessionFromEvent(o,n),r){const t=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const i=n.transaction_info;if(r&&i&&n.transaction!==t.transaction){const t="custom";n.transaction_info={...i,source:t}}return this.sendEvent(n,e),n})).then(null,(t=>{if(t instanceof f)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new f(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[s,n]=t.split(":");return{reason:s,category:n,quantity:e}}))}_flushOutcomes(){o&&S.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(o&&S.log("No outcomes to send"));if(!this._dsn)return void(o&&S.log("No dsn provided, will not send outcomes"));o&&S.log("Sending outcomes:",t);const e=d(t,this._options.tunnel&&_(this._dsn));this.sendEnvelope(e)}}function N(t){return void 0===t.type}function F(t){return"transaction"===t.type}export{C as BaseClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getClient as r,getIsolationScope as t}from"./currentScopes.js";import{consoleSandbox as e}from"./utils-hoist/logger.js";import{dateTimestampInSeconds as o}from"./utils-hoist/time.js";const m=100;function i(i,s){const n=r(),u=t();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:d=m}=n.getOptions();if(d<=0)return;const f={timestamp:o(),...i},a=c?e((()=>c(f,s))):f;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,s),u.addBreadcrumb(a,d))}export{i as addBreadcrumb};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/carrier.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SDK_VERSION as o}from"./utils-hoist/version.js";import{GLOBAL_OBJ as r}from"./utils-hoist/worldwide.js";function i(){return t(r),r}function t(r){const i=r.__SENTRY__=r.__SENTRY__||{};return i.version=i.version||o,i[o]=i[o]||{}}export{i as getMainCarrier,t as getSentryCarrier};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/constants.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="production";export{o as DEFAULT_ENVIRONMENT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getAsyncContextStrategy as t}from"./asyncContext/index.js";import{getMainCarrier as n}from"./carrier.js";import{Scope as o}from"./scope.js";import{dropUndefinedKeys as r}from"./utils-hoist/object.js";import{getGlobalSingleton as e}from"./utils-hoist/worldwide.js";function i(){const o=n();return t(o).getCurrentScope()}function c(){const o=n();return t(o).getIsolationScope()}function p(){return e("globalScope",(()=>new o))}function s(...o){const r=n(),e=t(r);if(2===o.length){const[t,n]=o;return t?e.withSetScope(t,n):e.withScope(n)}return e.withScope(o[0])}function u(){return i().getClient()}function a(t){const n=t.getPropagationContext(),{traceId:o,spanId:e,parentSpanId:i}=n;return r({trace_id:o,span_id:e,parent_span_id:i})}export{u as getClient,i as getCurrentScope,p as getGlobalScope,c as getIsolationScope,a as getTraceContextFromScope,s as withScope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;export{_ as DEBUG_BUILD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Scope as o}from"./scope.js";import{getGlobalSingleton as t}from"./utils-hoist/worldwide.js";function e(){return t("defaultCurrentScope",(()=>new o))}function r(){return t("defaultIsolationScope",(()=>new o))}export{e as getDefaultCurrentScope,r as getDefaultIsolationScope};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/envelope.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dsnToString as s}from"./utils-hoist/dsn.js";import{getSdkMetadataForEnvelopeHeader as e,createEventEnvelopeHeaders as t,createEnvelope as n}from"./utils-hoist/envelope.js";function o(t,o,i,a){const r=e(i),d={sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!a&&o&&{dsn:s(o)}},k="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return n(d,[k])}function i(s,o,i,a){const r=e(i),d=s.type&&"replay_event"!==s.type?s.type:"event";!function(s,e){e&&(s.sdk=s.sdk||{},s.sdk.name=s.sdk.name||e.name,s.sdk.version=s.sdk.version||e.version,s.sdk.integrations=[...s.sdk.integrations||[],...e.integrations||[]],s.sdk.packages=[...s.sdk.packages||[],...e.packages||[]])}(s,i&&i.sdk);const k=t(s,r,a,o);delete s.sdkProcessingMetadata;return n(k,[[{type:d},s]])}export{i as createEventEnvelope,o as createSessionEnvelope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as t}from"./debug-build.js";import{isThenable as o}from"./utils-hoist/is.js";import{logger as n}from"./utils-hoist/logger.js";import{SyncPromise as e}from"./utils-hoist/syncpromise.js";function i(s,r,l,u=0){return new e(((e,p)=>{const m=s[u];if(null===r||"function"!=typeof m)e(r);else{const f=m({...r},l);t&&m.id&&null===f&&n.log(`Event processor "${m.id}" dropped event`),o(f)?f.then((t=>i(s,t,l,u+1).then(e))).then(null,p):i(s,f,l,u+1).then(e).then(null,p)}}))}export{i as notifyEventProcessors};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_ENVIRONMENT as e}from"./constants.js";import{getCurrentScope as t,getClient as s,getIsolationScope as n}from"./currentScopes.js";import{makeSession as o,updateSession as r,closeSession as i}from"./session.js";import{GLOBAL_OBJ as u}from"./utils-hoist/worldwide.js";import{parseEventHintOrCaptureContext as c}from"./utils/prepareEvent.js";function p(e,s){return t().captureException(e,c())}function a(e,s){const n="string"==typeof s?s:void 0,o="string"!=typeof s?{captureContext:s}:void 0;return t().captureMessage(e,n,o)}function f(e,s){return t().captureEvent(e,s)}function g(i){const c=s(),p=n(),a=t(),{release:f,environment:g=e}=c&&c.getOptions()||{},{userAgent:S}=u.navigator||{},v=o({release:f,environment:g,user:a.getUser()||p.getUser(),...S&&{userAgent:S},...i}),d=p.getSession();return d&&"ok"===d.status&&r(d,{status:"exited"}),m(),p.setSession(v),a.setSession(v),v}function m(){const e=n(),s=t(),o=s.getSession()||e.getSession();o&&i(o),S(),e.setSession(),s.setSession()}function S(){const e=n(),o=t(),r=s(),i=o.getSession()||e.getSession();i&&r&&r.captureSession(i)}function v(e=!1){e?m():S()}export{f as captureEvent,p as captureException,a as captureMessage,v as captureSession,m as endSession,g as startSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"./debug-build.js";import{logger as n}from"./utils-hoist/logger.js";const t=[];function s(e){const n=e.defaultIntegrations||[],t=e.integrations;let s;if(n.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(t))s=[...n,...t];else if("function"==typeof t){const e=t(n);s=Array.isArray(e)?e:[e]}else s=n;const o=function(e){const n={};return e.forEach((e=>{const{name:t}=e,s=n[t];s&&!s.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)})),Object.values(n)}(s),i=o.findIndex((e=>"Debug"===e.name));if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function o(e,n){const t={};return n.forEach((n=>{n&&r(e,n,t)})),t}function i(e,n){for(const t of n)t&&t.afterAllSetup&&t.afterAllSetup(e)}function r(s,o,i){if(i[o.name])e&&n.log(`Integration skipped because it was already installed: ${o.name}`);else{if(i[o.name]=o,-1===t.indexOf(o.name)&&"function"==typeof o.setupOnce&&(o.setupOnce(),t.push(o.name)),o.setup&&"function"==typeof o.setup&&o.setup(s),"function"==typeof o.preprocessEvent){const e=o.preprocessEvent.bind(o);s.on("preprocessEvent",((n,t)=>e(n,t,s)))}if("function"==typeof o.processEvent){const e=o.processEvent.bind(o),n=Object.assign(((n,t)=>e(n,t,s)),{id:o.name});s.addEventProcessor(n)}e&&n.log(`Integration installed: ${o.name}`)}}function c(e){return e}export{i as afterSetupIntegrations,c as defineIntegration,s as getIntegrationsToSetup,t as installedIntegrations,r as setupIntegration,o as setupIntegrations};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineIntegration as e}from"../integration.js";import{DEBUG_BUILD as r}from"../debug-build.js";import{logger as t}from"../utils-hoist/logger.js";import{getFramesFromEvent as n}from"../utils-hoist/stacktrace.js";const i=e((()=>{let e;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(u(n,e))return r&&t.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=n}}}));function u(e,r){return!!r&&(!!function(e,r){const t=e.message,n=r.message;if(!t&&!n)return!1;if(t&&!n||!t&&n)return!1;if(t!==n)return!1;if(!f(e,r))return!1;if(!o(e,r))return!1;return!0}(e,r)||!!function(e,r){const t=c(r),n=c(e);if(!t||!n)return!1;if(t.type!==n.type||t.value!==n.value)return!1;if(!f(e,r))return!1;if(!o(e,r))return!1;return!0}(e,r))}function o(e,r){let t=n(e),i=n(r);if(!t&&!i)return!0;if(t&&!i||!t&&i)return!1;if(i.length!==t.length)return!1;for(let e=0;e<i.length;e++){const r=i[e],n=t[e];if(r.filename!==n.filename||r.lineno!==n.lineno||r.colno!==n.colno||r.function!==n.function)return!1}return!0}function f(e,r){let t=e.fingerprint,n=r.fingerprint;if(!t&&!n)return!0;if(t&&!n||!t&&n)return!1;try{return!(t.join("")!==n.join(""))}catch(e){return!1}}function c(e){return e.exception&&e.exception.values&&e.exception.values[0]}export{u as _shouldDropEvent,i as dedupeIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getClient as t}from"../currentScopes.js";import{defineIntegration as o}from"../integration.js";import{getOriginalFunction as n}from"../utils-hoist/object.js";let r;const i=new WeakMap,e=o((()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...o){const e=n(this),p=i.has(t())&&void 0!==e?e:this;return r.apply(p,o)}}catch(t){}},setup(t){i.set(t,!0)}})));export{e as functionToStringIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"../debug-build.js";import{defineIntegration as n}from"../integration.js";import{logger as r}from"../utils-hoist/logger.js";import{getEventDescription as t}from"../utils-hoist/misc.js";import{stringMatchesSomePattern as o}from"../utils-hoist/string.js";const i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],a=n(((n={})=>({name:"InboundFilters",processEvent(a,l,u){const c=u.getOptions(),p=function(e={},n={}){return{allowUrls:[...e.allowUrls||[],...n.allowUrls||[]],denyUrls:[...e.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...n.ignoreErrors||[],...e.disableErrorDefaults?[]:i],ignoreTransactions:[...e.ignoreTransactions||[],...n.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(n,c);return function(n,i){if(i.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(n))return e&&r.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${t(n)}`),!0;if(function(e,n){if(e.type||!n||!n.length)return!1;return function(e){const n=[];e.message&&n.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch(e){}r&&r.value&&(n.push(r.value),r.type&&n.push(`${r.type}: ${r.value}`));return n}(e).some((e=>o(e,n)))}(n,i.ignoreErrors))return e&&r.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${t(n)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(n))return e&&r.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${t(n)}`),!0;if(function(e,n){if("transaction"!==e.type||!n||!n.length)return!1;const r=e.transaction;return!!r&&o(r,n)}(n,i.ignoreTransactions))return e&&r.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${t(n)}`),!0;if(function(e,n){if(!n||!n.length)return!1;const r=s(e);return!!r&&o(r,n)}(n,i.denyUrls))return e&&r.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${t(n)}.\nUrl: ${s(n)}`),!0;if(!function(e,n){if(!n||!n.length)return!0;const r=s(e);return!r||o(r,n)}(n,i.allowUrls))return e&&r.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${t(n)}.\nUrl: ${s(n)}`),!0;return!1}(a,p)?null:a}})));function s(n){try{let e;try{e=n.exception.values[0].stacktrace.frames}catch(e){}return e?function(e=[]){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(e):null}catch(o){return e&&r.error(`Cannot extract url for event ${t(n)}`),null}}export{a as inboundFiltersIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dropUndefinedKeys as t}from"../utils-hoist/object.js";function o(o){const r=o._sentryMetrics;if(!r)return;const s={};for(const[,[o,n]]of r){(s[o]||(s[o]=[])).push(t(n))}return s}export{o as getMetricSummaryJsonForSpan};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/scope.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{updateSession as t}from"./session.js";import{isPlainObject as s}from"./utils-hoist/is.js";import{logger as e}from"./utils-hoist/logger.js";import{uuid4 as i}from"./utils-hoist/misc.js";import{generateSpanId as n,generateTraceId as r}from"./utils-hoist/propagationContext.js";import{dateTimestampInSeconds as o}from"./utils-hoist/time.js";import{merge as a}from"./utils/merge.js";import{_setSpanForScope as h,_getSpanForScope as _}from"./utils/spanOnScope.js";class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:r(),spanId:n()}}clone(){const t=new c;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,h(t,_(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(s){return this._user=s||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&t(this._session,{user:s}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this._tags={...this._tags,[t]:s},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[i,n]=e instanceof u?[e.getScopeData(),e.getRequestSession()]:s(e)?[t,t.requestSession]:[],{tags:r,extra:o,user:a,contexts:h,level:_,fingerprint:c=[],propagationContext:p}=i||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...h},a&&Object.keys(a).length&&(this._user=a),_&&(this._level=_),c.length&&(this._fingerprint=c),p&&(this._propagationContext=p),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,h(this,void 0),this._attachments=[],this.setPropagationContext({traceId:r()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const e="number"==typeof s?s:100;if(e<=0)return this;const i={timestamp:o(),...t};return this._breadcrumbs.push(i),this._breadcrumbs.length>e&&(this._breadcrumbs=this._breadcrumbs.slice(-e),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=a(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:n(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,s){const n=s&&s.event_id?s.event_id:i();if(!this._client)return e.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...s,event_id:n},this),n}captureMessage(t,s,n){const r=n&&n.event_id?n.event_id:i();if(!this._client)return e.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,s,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,s){const n=s&&s.event_id?s.event_id:i();return this._client?(this._client.captureEvent(t,{...s,event_id:n},this),n):(e.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const u=c;export{u as Scope};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/sdk.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getCurrentScope as n}from"./currentScopes.js";import{DEBUG_BUILD as i}from"./debug-build.js";import{logger as t,consoleSandbox as e}from"./utils-hoist/logger.js";function o(o,u){!0===u.debug&&(i?t.enable():e((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));n().update(u.initialScope);const s=new o(u);return r(s),s.init(),s}function r(i){n().setClient(i)}export{o as initAndBind,r as setCurrentClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="sentry.source",r="sentry.sample_rate",s="sentry.op",t="sentry.origin";export{s as SEMANTIC_ATTRIBUTE_SENTRY_OP,t as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,r as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,e as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE};
|
package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/session.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dropUndefinedKeys as e}from"./utils-hoist/object.js";import{timestampInSeconds as t}from"./utils-hoist/time.js";import{uuid4 as s}from"./utils-hoist/misc.js";function i(i){const n=t(),d={sid:s(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return e({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(d)};return i&&r(d,i),d}function r(e,i={}){if(i.user&&(!e.ipAddress&&i.user.ip_address&&(e.ipAddress=i.user.ip_address),e.did||i.did||(e.did=i.user.id||i.user.email||i.user.username)),e.timestamp=i.timestamp||t(),i.abnormal_mechanism&&(e.abnormal_mechanism=i.abnormal_mechanism),i.ignoreDuration&&(e.ignoreDuration=i.ignoreDuration),i.sid&&(e.sid=32===i.sid.length?i.sid:s()),void 0!==i.init&&(e.init=i.init),!e.did&&i.did&&(e.did=`${i.did}`),"number"==typeof i.started&&(e.started=i.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof i.duration)e.duration=i.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}i.release&&(e.release=i.release),i.environment&&(e.environment=i.environment),!e.ipAddress&&i.ipAddress&&(e.ipAddress=i.ipAddress),!e.userAgent&&i.userAgent&&(e.userAgent=i.userAgent),"number"==typeof i.errors&&(e.errors=i.errors),i.status&&(e.status=i.status)}function n(e,t){let s={};"ok"===e.status&&(s={status:"exited"}),r(e,s)}export{n as closeSession,i as makeSession,r as updateSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_ENVIRONMENT as t}from"../constants.js";import{getClient as e}from"../currentScopes.js";import{SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE as r,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE as n}from"../semanticAttributes.js";import{baggageHeaderToDynamicSamplingContext as s}from"../utils-hoist/baggage.js";import{dropUndefinedKeys as o}from"../utils-hoist/object.js";import{hasTracingEnabled as i}from"../utils/hasTracingEnabled.js";import{getRootSpan as c,spanToJSON as a,spanIsSampled as m}from"../utils/spanUtils.js";function p(e,r){const n=r.getOptions(),{publicKey:s}=r.getDsn()||{},i=o({environment:n.environment||t,release:n.release,public_key:s,trace_id:e});return r.emit("createDsc",i),i}function u(t,e){const r=e.getPropagationContext();return r.dsc||p(r.traceId,t)}function l(t){const o=e();if(!o)return{};const u=c(t),l=u._frozenDsc;if(l)return l;const f=u.spanContext().traceState,g=f&&f.get("sentry.dsc"),d=g&&s(g);if(d)return d;const j=p(t.spanContext().traceId,o),b=a(u),x=b.data||{},D=x[r];null!=D&&(j.sample_rate=`${D}`);const _=x[n],h=b.description;return"url"!==_&&h&&(j.transaction=h),i()&&(j.sampled=String(m(u))),o.emit("createDsc",j,u),j}export{p as getDynamicSamplingContextFromClient,u as getDynamicSamplingContextFromScope,l as getDynamicSamplingContextFromSpan};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=0,t=1;export{t as SPAN_STATUS_OK,o as SPAN_STATUS_UNSET};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as t}from"../debug-build.js";import{forEachEnvelopeItem as r,createEnvelope as e,serializeEnvelope as o,envelopeItemTypeToDataCategory as s}from"../utils-hoist/envelope.js";import{SentryError as i}from"../utils-hoist/error.js";import{logger as n}from"../utils-hoist/logger.js";import{makePromiseBuffer as u}from"../utils-hoist/promisebuffer.js";import{updateRateLimits as f,isRateLimited as d}from"../utils-hoist/ratelimit.js";import{resolvedSyncPromise as p}from"../utils-hoist/syncpromise.js";const l=64;function m(l,m,c=u(l.bufferSize||64)){let h={};return{send:function(u){const v=[];if(r(u,((t,r)=>{const e=s(r);if(d(h,e)){const o=a(t,r);l.recordDroppedEvent("ratelimit_backoff",e,o)}else v.push(t)})),0===v.length)return p({});const b=e(u[0],v),j=t=>{r(b,((r,e)=>{const o=a(r,e);l.recordDroppedEvent(t,s(e),o)}))};return c.add((()=>m({body:o(b)}).then((r=>(void 0!==r.statusCode&&(r.statusCode<200||r.statusCode>=300)&&t&&n.warn(`Sentry responded with status code ${r.statusCode} to sent event.`),h=f(h,r),r)),(t=>{throw j("network_error"),t})))).then((t=>t),(r=>{if(r instanceof i)return t&&n.error("Skipped sending event because buffer is full."),j("queue_overflow"),p({});throw r}))},flush:t=>c.drain(t)}}function a(t,r){if("event"===r||"transaction"===r)return Array.isArray(t)?t[1]:void 0}export{l as DEFAULT_TRANSPORT_BUFFER_SIZE,m as createTransport};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getDynamicSamplingContextFromSpan as t}from"../tracing/dynamicSamplingContext.js";import{dropUndefinedKeys as n}from"../utils-hoist/object.js";import{merge as e}from"./merge.js";import{spanToTraceContext as r,getRootSpan as s,spanToJSON as a}from"./spanUtils.js";function i(e,i){const{fingerprint:o,span:c,breadcrumbs:g,sdkProcessingMetadata:p}=i;!function(t,e){const{extra:r,tags:s,user:a,contexts:i,level:o,transactionName:c}=e,g=n(r);g&&Object.keys(g).length&&(t.extra={...g,...t.extra});const p=n(s);p&&Object.keys(p).length&&(t.tags={...p,...t.tags});const d=n(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});const f=n(i);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts});o&&(t.level=o);c&&"transaction"!==t.type&&(t.transaction=c)}(e,i),c&&function(n,e){n.contexts={trace:r(e),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:t(e),...n.sdkProcessingMetadata};const i=s(e),o=a(i).description;o&&!n.transaction&&"transaction"===n.type&&(n.transaction=o)}(e,c),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(e,o),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(e,g),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(e,p)}function o(t,n){const{extra:r,tags:s,user:a,contexts:i,level:o,sdkProcessingMetadata:g,breadcrumbs:p,fingerprint:d,eventProcessors:f,attachments:m,propagationContext:l,transactionName:u,span:x}=n;c(t,"extra",r),c(t,"tags",s),c(t,"user",a),c(t,"contexts",i),t.sdkProcessingMetadata=e(t.sdkProcessingMetadata,g,2),o&&(t.level=o),u&&(t.transactionName=u),x&&(t.span=x),p.length&&(t.breadcrumbs=[...t.breadcrumbs,...p]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),m.length&&(t.attachments=[...t.attachments,...m]),t.propagationContext={...t.propagationContext,...l}}function c(t,n,r){t[n]=e(t[n],r,1)}export{i as applyScopeDataToEvent,c as mergeAndOverwriteScopeData,o as mergeScopeData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getClient as e}from"../currentScopes.js";function r(r){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}export{r as hasTracingEnabled};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(e,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(e&&r&&0===Object.keys(r).length)return e;const o={...e};for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=t(o[e],r[e],n-1));return o}export{t as merge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"../debug-build.js";import{logger as t}from"../utils-hoist/logger.js";function r(r){if("boolean"==typeof r)return Number(r);const o="string"==typeof r?parseFloat(r):r;if(!("number"!=typeof o||isNaN(o)||o<0||o>1))return o;e&&t.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`)}export{r as parseSampleRate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_ENVIRONMENT as t}from"../constants.js";import{getGlobalScope as e}from"../currentScopes.js";import{notifyEventProcessors as s}from"../eventProcessors.js";import{Scope as a}from"../scope.js";import{getFilenameToDebugIdMap as n}from"../utils-hoist/debug-ids.js";import{uuid4 as o,addExceptionMechanism as r}from"../utils-hoist/misc.js";import{normalize as c}from"../utils-hoist/normalize.js";import{truncate as i}from"../utils-hoist/string.js";import{dateTimestampInSeconds as m}from"../utils-hoist/time.js";import{mergeScopeData as u,applyScopeDataToEvent as d}from"./applyScopeDataToEvent.js";function p(t,n,i,p,x,h){const{normalizeDepth:b=3,normalizeMaxBreadth:v=1e3}=t,_={...n,event_id:n.event_id||i.event_id||o(),timestamp:n.timestamp||m()},j=i.integrations||t.integrations.map((t=>t.name));f(_,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(_,j),x&&x.emit("applyFrameMetadata",n),void 0===n.type&&l(_,t.stackParser);const k=function(t,e){if(!e)return t;const s=t?t.clone():new a;return s.update(e),s}(p,i.captureContext);i.mechanism&&r(_,i.mechanism);const y=x?x.getEventProcessors():[],E=e().getScopeData();if(h){const t=h.getScopeData();u(E,t)}if(k){const t=k.getScopeData();u(E,t)}const D=[...i.attachments||[],...E.attachments];D.length&&(i.attachments=D),d(_,E);const S=[...y,...E.eventProcessors];return s(S,_,i).then((t=>(t&&g(t),"number"==typeof b&&b>0?function(t,e,s){if(!t)return null;const a={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:c(t.data,e,s)}})))},...t.user&&{user:c(t.user,e,s)},...t.contexts&&{contexts:c(t.contexts,e,s)},...t.extra&&{extra:c(t.extra,e,s)}};t.contexts&&t.contexts.trace&&a.contexts&&(a.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(a.contexts.trace.data=c(t.contexts.trace.data,e,s)));t.spans&&(a.spans=t.spans.map((t=>({...t,...t.data&&{data:c(t.data,e,s)}}))));t.contexts&&t.contexts.flags&&a.contexts&&(a.contexts.flags=c(t.contexts.flags,3,s));return a}(t,b,v):t)))}function f(e,s){const{environment:a,release:n,dist:o,maxValueLength:r=250}=s;e.environment=e.environment||a||t,!e.release&&n&&(e.release=n),!e.dist&&o&&(e.dist=o),e.message&&(e.message=i(e.message,r));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=i(c.value,r));const m=e.request;m&&m.url&&(m.url=i(m.url,r))}function l(t,e){const s=n(e);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{s&&t.filename&&(t.debug_id=s[t.filename])}))}))}catch(t){}}function g(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const s=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{s.push({type:"sourcemap",code_file:t,debug_id:e})}))}function x(t){}export{f as applyClientOptions,l as applyDebugIds,g as applyDebugMeta,x as parseEventHintOrCaptureContext,p as prepareEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SDK_VERSION as a}from"../utils-hoist/version.js";function s(s,t,e=[t],n="npm"){const o=s._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:e.map((s=>({name:`${n}:@sentry/${s}`,version:a}))),version:a}),s._metadata=o}export{s as applySdkMetadata};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{addNonEnumerableProperty as t}from"../utils-hoist/object.js";const n="_sentrySpan";function o(o,e){e?t(o,n,e):delete o[n]}function e(t){return t[n]}export{e as _getSpanForScope,o as _setSpanForScope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getMetricSummaryJsonForSpan as t}from"../metrics/metric-summary.js";import{SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN as n,SEMANTIC_ATTRIBUTE_SENTRY_OP as r}from"../semanticAttributes.js";import{SPAN_STATUS_UNSET as e,SPAN_STATUS_OK as i}from"../tracing/spanstatus.js";import{consoleSandbox as o}from"../utils-hoist/logger.js";import{dropUndefinedKeys as s}from"../utils-hoist/object.js";import{generateSpanId as a}from"../utils-hoist/propagationContext.js";import{timestampInSeconds as p}from"../utils-hoist/time.js";const c=1;let u=!1;function m(t){const{spanId:n,traceId:r,isRemote:e}=t.spanContext(),i=e?n:l(t).parent_span_id,o=e?a():n;return s({parent_span_id:i,span_id:o,trace_id:r})}function f(t){return"number"==typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):p()}function d(t){return t>9999999999?t/1e3:t}function l(e){if(function(t){return"function"==typeof t.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:i,traceId:o}=e.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(e)){const{attributes:a,startTime:p,name:c,endTime:u,parentSpanId:m,status:d}=e;return s({span_id:i,trace_id:o,data:a,description:c,parent_span_id:m,start_timestamp:f(p),timestamp:f(u)||void 0,status:g(d),op:a[r],origin:a[n],_metrics_summary:t(e)})}return{span_id:i,trace_id:o}}catch(t){return{}}}function _(t){const{traceFlags:n}=t.spanContext();return 1===n}function g(t){if(t&&t.code!==e)return t.code===i?"ok":t.message||"unknown_error"}function y(t){return t._sentryRootSpan||t}function S(){u||(o((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),u=!0)}export{c as TRACE_FLAG_SAMPLED,y as getRootSpan,g as getStatusMessage,S as showSpanDropWarning,_ as spanIsSampled,f as spanTimeInputToSeconds,l as spanToJSON,m as spanToTraceContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isInstanceOf as e}from"./is.js";import{truncate as n}from"./string.js";function r(r,t,o=250,c,a,s,p){if(!(s.exception&&s.exception.values&&p&&e(p.originalException,Error)))return;const m=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var l,u;m&&(s.exception.values=(l=i(r,t,a,p.originalException,c,s.exception.values,m,0),u=o,l.map((e=>(e.value&&(e.value=n(e.value,u)),e)))))}function i(n,r,c,a,s,p,m,l){if(p.length>=c+1)return p;let u=[...p];if(e(a[s],Error)){t(m,l);const e=n(r,a[s]),p=u.length;o(e,s,p,l),u=i(n,r,c,a[s],s,[e,...u],e,p)}return Array.isArray(a.errors)&&a.errors.forEach(((a,p)=>{if(e(a,Error)){t(m,l);const e=n(r,a),h=u.length;o(e,`errors[${p}]`,h,l),u=i(n,r,c,a,s,[e,...u],e,h)}})),u}function t(e,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:n}}function o(e,n,r,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:n,exception_id:r,parent_id:i}}export{r as applyAggregateErrorsToEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isString as r}from"./is.js";const e="sentry-",t=/^sentry-/;function n(r){const e=c(r);if(!e)return;const n=Object.entries(e).reduce(((r,[e,n])=>{if(e.match(t)){r[e.slice(7)]=n}return r}),{});return Object.keys(n).length>0?n:void 0}function c(e){if(e&&(r(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((r,e)=>{const t=i(e);return Object.entries(t).forEach((([e,t])=>{r[e]=t})),r}),{}):i(e)}function i(r){return r.split(",").map((r=>r.split("=").map((r=>decodeURIComponent(r.trim()))))).reduce(((r,[e,t])=>(e&&t&&(r[e]=t),r)),{})}export{e as SENTRY_BAGGAGE_KEY_PREFIX,t as SENTRY_BAGGAGE_KEY_PREFIX_REGEX,n as baggageHeaderToDynamicSamplingContext,c as parseBaggageHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r){return void 0===r?void 0:r>=400&&r<500?"warning":r>=500?"error":void 0}export{r as getBreadcrumbLogLevelFromHttpStatusCode};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isString as t}from"./is.js";import{GLOBAL_OBJ as e}from"./worldwide.js";const n=e;function r(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let a=0,l=0;const i=" > ",u=i.length;let f;const c=Array.isArray(e)?e:e.keyAttrs,m=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&a++<r&&(f=o(n,c),!("html"===f||a>1&&l+s.length*u+f.length>=m));)s.push(f),l+=f.length,n=n.parentNode;return s.reverse().join(i)}catch(t){return"<unknown>"}}function o(e,r){const o=e,s=[];if(!o||!o.tagName)return"";if(n.HTMLElement&&o instanceof HTMLElement&&o.dataset){if(o.dataset.sentryComponent)return o.dataset.sentryComponent;if(o.dataset.sentryElement)return o.dataset.sentryElement}s.push(o.tagName.toLowerCase());const a=r&&r.length?r.filter((t=>o.getAttribute(t))).map((t=>[t,o.getAttribute(t)])):null;if(a&&a.length)a.forEach((t=>{s.push(`[${t[0]}="${t[1]}"]`)}));else{o.id&&s.push(`#${o.id}`);const e=o.className;if(e&&t(e)){const t=e.split(/\s+/);for(const e of t)s.push(`.${e}`)}}const l=["aria-label","type","name","title","alt"];for(const t of l){const e=o.getAttribute(t);e&&s.push(`[${t}="${e}"]`)}return s.join("")}function s(){try{return n.document.location.href}catch(t){return""}}function a(t){if(!n.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}export{a as getComponentName,s as getLocationHref,r as htmlTreeAsString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createEnvelope as e}from"./envelope.js";import{dateTimestampInSeconds as t}from"./time.js";function r(r,o,n){const i=[{type:"client_report"},{timestamp:t(),discarded_events:r}];return e(o?{dsn:o}:{},[i])}export{r as createClientReportEnvelope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;export{_ as DEBUG_BUILD};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as e}from"./worldwide.js";let t,n,r;function o(o){const s=e._sentryDebugIds;if(!s)return{};const c=Object.keys(s);return r&&c.length===n||(n=c.length,r=c.reduce(((e,n)=>{t||(t={});const r=t[n];if(r)e[r[0]]=r[1];else{const r=o(n);for(let o=r.length-1;o>=0;o--){const c=r[o],l=c&&c.filename,f=s[n];if(l&&f){e[l]=f,t[n]=[l,f];break}}}return e}),{})),r}export{o as getFilenameToDebugIdMap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as t}from"./debug-build.js";import{consoleSandbox as o,logger as r}from"./logger.js";const n=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function p(t,o=!1){const{host:r,path:n,pass:p,port:e,projectId:c,protocol:s,publicKey:i}=t;return`${s}://${i}${o&&p?`:${p}`:""}@${r}${e?`:${e}`:""}/${n?`${n}/`:n}${c}`}function e(t){const r=n.exec(t);if(!r)return void o((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[p,e,s="",i="",l="",d=""]=r.slice(1);let u="",a=d;const I=a.split("/");if(I.length>1&&(u=I.slice(0,-1).join("/"),a=I.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return c({host:i,pass:s,path:u,projectId:a,port:l,protocol:p,publicKey:e})}function c(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function s(o){const n="string"==typeof o?e(o):c(o);if(n&&function(o){if(!t)return!0;const{port:n,projectId:p,protocol:e}=o;return!(["protocol","publicKey","host","projectId"].find((t=>!o[t]&&(r.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(p.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(e)?n&&isNaN(parseInt(n,10))&&(r.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(r.error(`Invalid Sentry Dsn: Invalid protocol ${e}`),1):(r.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),1)))}(n))return n}export{e as dsnFromString,p as dsnToString,s as makeDsn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(){return"npm"}export{n as getSDKSource};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dsnToString as t}from"./dsn.js";import{normalize as n}from"./normalize.js";import{dropUndefinedKeys as e}from"./object.js";import{GLOBAL_OBJ as r}from"./worldwide.js";function o(t,n=[]){return[t,n]}function i(t,n){const[e,r]=t;return[e,[...r,n]]}function s(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function c(t){return r.__SENTRY__&&r.__SENTRY__.encodePolyfill?r.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function a(t){const[e,r]=t;let o=JSON.stringify(e);function i(t){"string"==typeof o?o="string"==typeof t?o+t:[c(o),t]:o.push("string"==typeof t?c(t):t)}for(const t of r){const[e,r]=t;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let t;try{t=JSON.stringify(r)}catch(e){t=JSON.stringify(n(r))}i(t)}}return"string"==typeof o?o:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(o)}function f(t){const n="string"==typeof t.data?c(t.data):t.data;return[e({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const p={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function u(t){return p[t]}function l(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function y(n,r,o,i){const s=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:n.event_id,sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!o&&i&&{dsn:t(i)},...s&&{trace:e({...s})}}}export{i as addItemToEnvelope,f as createAttachmentEnvelopeItem,o as createEnvelope,y as createEventEnvelopeHeaders,u as envelopeItemTypeToDataCategory,s as forEachEnvelopeItem,l as getSdkMetadataForEnvelopeHeader,a as serializeEnvelope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class s extends Error{constructor(s,e="warn"){super(s),this.message=s,this.logLevel=e}}export{s as SentryError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CONSOLE_LEVELS as o,originalConsoleMethods as n}from"../logger.js";import{fill as r}from"../object.js";import{GLOBAL_OBJ as c}from"../worldwide.js";import{addHandler as e,maybeInstrument as s,triggerHandlers as t}from"./handlers.js";function i(o){const n="console";e(n,o),s(n,l)}function l(){"console"in c&&o.forEach((function(o){o in c.console&&r(c.console,o,(function(r){return n[o]=r,function(...r){t("console",{args:r,level:o});const e=n[o];e&&e.apply(c.console,r)}}))}))}export{i as addConsoleInstrumentationHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isError as t}from"../is.js";import{fill as r,addNonEnumerableProperty as e}from"../object.js";import{supportsNativeFetch as o}from"../supports.js";import{timestampInSeconds as n}from"../time.js";import{GLOBAL_OBJ as i}from"../worldwide.js";import{addHandler as m,maybeInstrument as s,triggerHandlers as f}from"./handlers.js";function u(u,c){const p="fetch";m(p,u),s(p,(()=>function(m,s=!1){if(s&&!o())return;r(i,"fetch",(function(r){return function(...o){const m=new Error,{method:s,url:u}=h(o),c={args:o,fetchData:{method:s,url:u},startTimestamp:1e3*n(),virtualError:m};return f("fetch",{...c}),r.apply(i,o).then((async t=>(f("fetch",{...c,endTimestamp:1e3*n(),response:t}),t)),(r=>{throw f("fetch",{...c,endTimestamp:1e3*n(),error:r}),t(r)&&void 0===r.stack&&(r.stack=m.stack,e(r,"framesToPop",1)),r}))}}))}(0,c)))}function c(t,r){return!!t&&"object"==typeof t&&!!t[r]}function p(t){return"string"==typeof t?t:t?c(t,"url")?t.url:t.toString?t.toString():"":""}function h(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[r,e]=t;return{url:p(r),method:c(e,"method")?String(e.method).toUpperCase():"GET"}}const r=t[0];return{url:p(r),method:c(r,"method")?String(r.method).toUpperCase():"GET"}}export{u as addFetchInstrumentationHandler,h as parseFetchArgs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as r}from"../worldwide.js";import{addHandler as o,maybeInstrument as n,triggerHandlers as e}from"./handlers.js";let t=null;function l(r){const e="error";o(e,r),n(e,i)}function i(){t=r.onerror,r.onerror=function(r,o,n,l,i){return e("error",{column:l,error:i,line:n,msg:r,url:o}),!!t&&t.apply(this,arguments)},r.onerror.__SENTRY_INSTRUMENTED__=!0}export{l as addGlobalErrorInstrumentationHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as n}from"../worldwide.js";import{addHandler as e,maybeInstrument as o,triggerHandlers as t}from"./handlers.js";let r=null;function d(n){const t="unhandledrejection";e(t,n),o(t,i)}function i(){r=n.onunhandledrejection,n.onunhandledrejection=function(n){return t("unhandledrejection",n),!r||r.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}export{d as addGlobalUnhandledRejectionInstrumentationHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as r}from"../debug-build.js";import{logger as o}from"../logger.js";import{getFunctionName as t}from"../stacktrace.js";const n={},i={};function e(r,o){n[r]=n[r]||[],n[r].push(o)}function c(t,n){if(!i[t]){i[t]=!0;try{n()}catch(n){r&&o.error(`Error while instrumenting ${t}`,n)}}}function f(i,e){const c=i&&n[i];if(c)for(const n of c)try{n(e)}catch(e){r&&o.error(`Error while triggering instrumentation handler.\nType: ${i}\nName: ${t(n)}\nError:`,e)}}export{e as addHandler,c as maybeInstrument,f as triggerHandlers};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=Object.prototype.toString;function t(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(t,Error)}}function e(t,e){return n.call(t)===`[object ${e}]`}function r(n){return e(n,"ErrorEvent")}function o(n){return e(n,"DOMError")}function u(n){return e(n,"DOMException")}function c(n){return e(n,"String")}function i(n){return"object"==typeof n&&null!==n&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function f(n){return null===n||i(n)||"object"!=typeof n&&"function"!=typeof n}function p(n){return e(n,"Object")}function l(n){return"undefined"!=typeof Event&&b(n,Event)}function a(n){return"undefined"!=typeof Element&&b(n,Element)}function s(n){return e(n,"RegExp")}function E(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function _(n){return p(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function b(n,t){try{return n instanceof t}catch(n){return!1}}function y(n){return!("object"!=typeof n||null===n||!n.__isVue&&!n._isVue)}export{o as isDOMError,u as isDOMException,a as isElement,t as isError,r as isErrorEvent,l as isEvent,b as isInstanceOf,i as isParameterizedString,p as isPlainObject,f as isPrimitive,s as isRegExp,c as isString,_ as isSyntheticEvent,E as isThenable,y as isVueViewModel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as o}from"./debug-build.js";import{getGlobalSingleton as r,GLOBAL_OBJ as e}from"./worldwide.js";const n=["debug","info","warn","error","log","assert","trace"],t={};function c(o){if(!("console"in e))return o();const r=e.console,n={},c=Object.keys(t);c.forEach((o=>{const e=t[o];n[o]=r[o],r[o]=e}));try{return o()}finally{c.forEach((o=>{r[o]=n[o]}))}}const s=r("logger",(function(){let r=!1;const t={enable:()=>{r=!0},disable:()=>{r=!1},isEnabled:()=>r};return o?n.forEach((o=>{t[o]=(...n)=>{r&&c((()=>{e.console[o](`Sentry Logger [${o}]:`,...n)}))}})):n.forEach((o=>{t[o]=()=>{}})),t}));export{n as CONSOLE_LEVELS,c as consoleSandbox,s as logger,t as originalConsoleMethods};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){if(t[e]===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}export{e as memoBuilder};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{addNonEnumerableProperty as e}from"./object.js";import{GLOBAL_OBJ as t}from"./worldwide.js";function n(){const e=t,n=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return n.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function r(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function o(e){const{message:t,event_id:n}=e;if(t)return t;const o=r(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"<unknown>":n||"<unknown>"}function a(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function c(e,t){const n=r(e);if(!n)return;const o=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...o,...t},t&&"data"in t){const e={...o&&o.data,...t.data};n.mechanism.data=e}}function u(t){if(function(e){try{return e.__sentry_captured__}catch(e){}}(t))return!0;try{e(t,"__sentry_captured__",!0)}catch(e){}return!1}export{c as addExceptionMechanism,a as addExceptionTypeValue,u as checkOrSetAlreadyCaught,o as getEventDescription,n as uuid4};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isVueViewModel as t,isSyntheticEvent as n}from"./is.js";import{memoBuilder as e}from"./memo.js";import{convertToPlainObject as r}from"./object.js";import{getFunctionName as o}from"./stacktrace.js";function i(t,n=100,e=1/0){try{return f("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function u(t,n=3,e=102400){const r=i(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?u(t,n-1,e):r;var o}function f(i,u,c=1/0,s=1/0,a=e()){const[m,l]=a;if(null==u||["boolean","string"].includes(typeof u)||"number"==typeof u&&Number.isFinite(u))return u;const p=function(e,r){try{if("domain"===e&&r&&"object"==typeof r&&r._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&r===global)return"[Global]";if("undefined"!=typeof window&&r===window)return"[Window]";if("undefined"!=typeof document&&r===document)return"[Document]";if(t(r))return"[VueViewModel]";if(n(r))return"[SyntheticEvent]";if("number"==typeof r&&!Number.isFinite(r))return`[${r}]`;if("function"==typeof r)return`[Function: ${o(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;const i=function(t){const n=Object.getPrototypeOf(t);return n?n.constructor.name:"null prototype"}(r);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}(i,u);if(!p.startsWith("[object "))return p;if(u.__sentry_skip_normalization__)return u;const y="number"==typeof u.__sentry_override_normalization_depth__?u.__sentry_override_normalization_depth__:c;if(0===y)return p.replace("object ","");if(m(u))return"[Circular ~]";const b=u;if(b&&"function"==typeof b.toJSON)try{return f("",b.toJSON(),y-1,s,a)}catch(t){}const _=Array.isArray(u)?[]:{};let d=0;const j=r(u);for(const t in j){if(!Object.prototype.hasOwnProperty.call(j,t))continue;if(d>=s){_[t]="[MaxProperties ~]";break}const n=j[t];_[t]=f(t,n,y-1,s,a),d++}return l(u),_}export{i as normalize,u as normalizeToSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{htmlTreeAsString as t}from"./browser.js";import{DEBUG_BUILD as r}from"./debug-build.js";import{isPlainObject as e,isError as n,isEvent as o,isInstanceOf as c,isElement as i}from"./is.js";import{logger as u}from"./logger.js";import{truncate as s}from"./string.js";function f(t,e,n){if(!(e in t))return;const o=t[e],c=n(o);"function"==typeof c&&p(c,o);try{t[e]=c}catch(n){r&&u.log(`Failed to replace method "${e}" in object`,t)}}function a(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){r&&u.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function p(t,r){try{const e=r.prototype||{};t.prototype=r.prototype=e,a(t,"__sentry_original__",r)}catch(t){}}function l(t){return t.__sentry_original__}function y(t){if(n(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if(o(t)){const r={type:t.type,target:g(t.target),currentTarget:g(t.currentTarget),...m(t)};return"undefined"!=typeof CustomEvent&&c(t,CustomEvent)&&(r.detail=t.detail),r}return t}function g(r){try{return i(r)?t(r):Object.prototype.toString.call(r)}catch(t){return"<unknown>"}}function m(t){if("object"==typeof t&&null!==t){const r={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}return{}}function b(t,r=40){const e=Object.keys(y(t));e.sort();const n=e[0];if(!n)return"[object has no keys]";if(n.length>=r)return s(n,r);for(let t=e.length;t>0;t--){const n=e.slice(0,t).join(", ");if(!(n.length>r))return t===e.length?n:s(n,r)}return""}function j(t){return d(t,new Map)}function d(t,r){if(function(t){if(!e(t))return!1;try{const r=Object.getPrototypeOf(t).constructor.name;return!r||"Object"===r}catch(t){return!0}}(t)){const e=r.get(t);if(void 0!==e)return e;const n={};r.set(t,n);for(const e of Object.getOwnPropertyNames(t))void 0!==t[e]&&(n[e]=d(t[e],r));return n}if(Array.isArray(t)){const e=r.get(t);if(void 0!==e)return e;const n=[];return r.set(t,n),t.forEach((t=>{n.push(d(t,r))})),n}return t}export{a as addNonEnumerableProperty,y as convertToPlainObject,j as dropUndefinedKeys,b as extractExceptionKeysForMessage,f as fill,l as getOriginalFunction,p as markFunctionWrapped};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SentryError as e}from"./error.js";import{SyncPromise as n,resolvedSyncPromise as r,rejectedSyncPromise as t}from"./syncpromise.js";function o(o){const i=[];function u(e){return i.splice(i.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:i,add:function(n){if(!(void 0===o||i.length<o))return t(new e("Not adding Promise because buffer limit was reached."));const r=n();return-1===i.indexOf(r)&&i.push(r),r.then((()=>u(r))).then(null,(()=>u(r).then(null,(()=>{})))),r},drain:function(e){return new n(((n,t)=>{let o=i.length;if(!o)return n(!0);const u=setTimeout((()=>{e&&e>0&&n(!1)}),e);i.forEach((e=>{r(e).then((()=>{--o||(clearTimeout(u),n(!0))}),t)}))}))}}}export{o as makePromiseBuffer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{uuid4 as r}from"./misc.js";function n(){return r()}function t(){return r().substring(16)}export{t as generateSpanId,n as generateTraceId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=6e4;function e(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${t}`);return isNaN(s)?6e4:s-e}function n(t,e){return t[e]||t.all||0}function s(t,e,s=Date.now()){return n(t,e)>s}function r(t,{statusCode:n,headers:s},r=Date.now()){const o={...t},i=s&&s["x-sentry-rate-limits"],a=s&&s["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+a);else o.all=r+a}else a?o.all=r+e(a,r):429===n&&(o.all=r+6e4);return o}export{t as DEFAULT_RETRY_AFTER,n as disabledUntil,s as isRateLimited,e as parseRetryAfterHeader,r as updateRateLimits};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}export{n as severityLevelFromString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="?",n=/\(error: (.*)\)/,e=/captureMessage|captureException/;function r(...t){const e=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,r=0,c=0)=>{const s=[],f=t.split("\n");for(let t=r;t<f.length;t++){const r=f[t];if(r.length>1024)continue;const o=n.test(r)?r.replace(n,"$1"):r;if(!o.match(/\S*Error: /)){for(const t of e){const n=t(o);if(n){s.push(n);break}}if(s.length>=50+c)break}}return o(s.slice(c))}}function c(t){return Array.isArray(t)?r(...t):t}function o(t){if(!t.length)return[];const n=Array.from(t);return/sentryWrapped/.test(s(n).function||"")&&n.pop(),n.reverse(),e.test(s(n).function||"")&&(n.pop(),e.test(s(n).function||"")&&n.pop()),n.slice(0,50).map((t=>({...t,filename:t.filename||s(n).filename,function:t.function||"?"})))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function u(t){try{return t&&"function"==typeof t&&t.name||f}catch(t){return f}}function a(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach((n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)})),t}catch(t){return}}}export{t as UNKNOWN_FUNCTION,r as createStackParser,a as getFramesFromEvent,u as getFunctionName,c as stackParserFromStackParserOptions,o as stripSentryFramesAndReverse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isString as t,isRegExp as n,isVueViewModel as r}from"./is.js";function e(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function i(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const i=t[n];try{r(i)?e.push("[VueViewModel]"):e.push(String(i))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function o(r,e,i=!1){return!!t(r)&&(n(e)?e.test(r):!!t(e)&&(i?r===e:r.includes(e)))}function u(t,n=[],r=!1){return n.some((n=>o(t,n,r)))}export{o as isMatchingPattern,i as safeJoin,u as stringMatchesSomePattern,e as truncate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEBUG_BUILD as e}from"./debug-build.js";import{logger as t}from"./logger.js";import{GLOBAL_OBJ as n}from"./worldwide.js";const r=n;function o(){if(!("fetch"in r))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function i(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!o())return!1;if(i(r.fetch))return!0;let n=!1;const c=r.document;if(c&&"function"==typeof c.createElement)try{const e=c.createElement("iframe");e.hidden=!0,c.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(n=i(e.contentWindow.fetch)),c.head.removeChild(e)}catch(n){e&&t.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return n}export{i as isNativeFunction,o as supportsFetch,c as supportsNativeFetch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isThenable as t}from"./is.js";var e;function s(t){return new h((e=>{e(t)}))}function i(t){return new h(((e,s)=>{s(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(e||(e={}));class h{constructor(t){h.prototype.__init.call(this),h.prototype.__init2.call(this),h.prototype.__init3.call(this),h.prototype.__init4.call(this),this._state=e.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new h(((s,i)=>{this._handlers.push([!1,e=>{if(t)try{s(t(e))}catch(t){i(t)}else s(e)},t=>{if(e)try{s(e(t))}catch(t){i(t)}else i(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new h(((e,s)=>{let i,h;return this.then((e=>{h=!1,i=e,t&&t()}),(e=>{h=!0,i=e,t&&t()})).then((()=>{h?s(i):e(i)}))}))}__init(){this._resolve=t=>{this._setResult(e.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(e.REJECTED,t)}}__init3(){this._setResult=(s,i)=>{this._state===e.PENDING&&(t(i)?i.then(this._resolve,this._reject):(this._state=s,this._value=i,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===e.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===e.RESOLVED&&t[1](this._value),this._state===e.REJECTED&&t[2](this._value),t[0]=!0)}))}}}export{h as SyncPromise,i as rejectedSyncPromise,s as resolvedSyncPromise};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GLOBAL_OBJ as n}from"./worldwide.js";function t(){return Date.now()/1e3}const i=function(){const{performance:i}=n;if(!i||!i.now)return t;const e=Date.now()-i.now(),o=null==i.timeOrigin?e:i.timeOrigin;return()=>(o+i.now())/1e3}();(()=>{const{performance:t}=n;if(!t||!t.now)return;const i=36e5,e=t.now(),o=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-o):i,a=r<i,m=t.timing&&t.timing.navigationStart,w="number"==typeof m?Math.abs(m+e-o):i;(a||w<i)&&(r<=w&&t.timeOrigin)})();export{t as dateTimestampInSeconds,i as timestampInSeconds};
|