neon 8.13.2 → 8.14.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/_chunks/{api-GbEaBZJ5.js → api-1MKsfpY3.js} +2 -3
- package/dist/_chunks/{api_keys-CNnnugbQ.js → api_keys-6Xnxl7a8.js} +2 -3
- package/dist/_chunks/{ask-DVwy0eUL.js → ask-Xlek1Pxh.js} +2 -3
- package/dist/_chunks/{auth-CIUtXByB.js → auth-DPSDYYtG.js} +6 -7
- package/dist/_chunks/{auth_selection-YX5_KZgD.js → auth_selection-CwGLN9Qz.js} +2 -3
- package/dist/_chunks/{bootstrap-wPZWa1sT.js → bootstrap-BDkvsAVJ.js} +2 -3
- package/dist/_chunks/{branches-BNa1xX1L.js → branches-Bp-5z1lM.js} +2 -3
- package/dist/_chunks/{bucket-BCdryTkD.js → bucket-D06bvDSa.js} +2 -3
- package/dist/_chunks/{checkout-CXIOydqZ.js → checkout-C6VMMgY6.js} +5 -6
- package/dist/_chunks/{claim-DqAvAvDm.js → claim-DlLZmcq0.js} +4 -5
- package/dist/_chunks/{cmd_pipeline-CEk93dGN.js → cmd_pipeline-BDE-TGto.js} +3 -6
- package/dist/_chunks/{config-BH_qRHiG.js → config-7SIE_C5O.js} +3 -4
- package/dist/_chunks/{connection_string-DB4awPzZ.js → connection_string-C9e7N4xk.js} +3 -4
- package/dist/_chunks/{credential_io-BS-0Pmwc.js → credential_io-DbeSh3Pl.js} +6 -9
- package/dist/_chunks/{credentials-BSjE9fRR.js → credentials-BMBNmW0t.js} +2 -3
- package/dist/_chunks/{data_api-Djxj5ZQD.js → data_api-CHDwvMTG.js} +2 -3
- package/dist/_chunks/{databases-Dok4wru7.js → databases-DC2h6IW2.js} +2 -3
- package/dist/_chunks/{deploy-D7B0Xfjg.js → deploy-DmKZcAnR.js} +3 -4
- package/dist/_chunks/{dev-CSvxAecE.js → dev-Dv0HKcFF.js} +7 -8
- package/dist/_chunks/{diff-DhxxbdQE.js → diff-dnxneH0u.js} +2 -3
- package/dist/_chunks/{docs-CrVybkTP.js → docs-CClmgj_Z.js} +2 -3
- package/dist/_chunks/{env-5HS5qQGd.js → env-BOt9AZ1j.js} +4 -5
- package/dist/_chunks/{env-BNm69Qh8.js → env-CIFMBEon.js} +3 -5
- package/dist/_chunks/{env-BpP3Dqpe.js → env-JgoSsmyt.js} +2 -3
- package/dist/_chunks/{feedback-CMayyTa8.js → feedback-mQmdTRFn.js} +2 -3
- package/dist/_chunks/{functions-Q0zuvtnk.js → functions-3ypiRwZK.js} +2 -3
- package/dist/_chunks/{git-H32TNt6M.js → git-Dxw9w9dK.js} +4 -5
- package/dist/_chunks/{init-BkA6RilG.js → init-BOOGv-mD.js} +2 -3
- package/dist/_chunks/{inspect-g0wekylj.js → inspect-yFAb61qo.js} +2 -3
- package/dist/_chunks/{ip_allow-5lLFvIuE.js → ip_allow-DBdxNEUa.js} +2 -3
- package/dist/_chunks/{link-BgtkOBws.js → link-CcwTXRny.js} +6 -7
- package/dist/_chunks/{logs-DWkpjzIH.js → logs-BB4uvblR.js} +2 -3
- package/dist/_chunks/{mcp-Bo-7TKc7.js → mcp-BznTRK3w.js} +2 -3
- package/dist/_chunks/{neon_auth-DpF83S24.js → neon_auth-Dw-ucM5Y.js} +102 -28
- package/dist/_chunks/{open-CX3BT3Tp.js → open-T2nI89Oh.js} +2 -3
- package/dist/_chunks/{operations-D4I-AxVs.js → operations-CzaR_uqx.js} +2 -3
- package/dist/_chunks/{orgs-xGfANwHQ.js → orgs-Dpbr-K0A.js} +2 -3
- package/dist/_chunks/{paths-DMq0Lt7a.js → paths-B55ZfOg1.js} +1 -2
- package/dist/_chunks/{plugins-Dj0H6lDA.js → plugins-CKOcBuuP.js} +2 -3
- package/dist/_chunks/{profile-yXOiKk9R.js → profile-H0d7gFrX.js} +9 -10
- package/dist/_chunks/{profiles-DIB1av2Q.js → profiles-DTazQtjK.js} +4 -6
- package/dist/_chunks/{projects-BwI2Uo0z.js → projects-a3X4OFEJ.js} +2 -3
- package/dist/_chunks/{psql-BM-doe8e.js → psql-Bce4X0NG.js} +3 -4
- package/dist/_chunks/{psql-BNljLda2.js → psql-DwGeP0IV.js} +2 -4
- package/dist/_chunks/{realtime-BRqIyGR-.js → realtime-BwtzYf5a.js} +2 -3
- package/dist/_chunks/{roles-C3M4q9DS.js → roles-Bd9r8_pX.js} +1 -2
- package/dist/_chunks/{roles-B4w3YT_7.js → roles-xRuu0462.js} +2 -3
- package/dist/_chunks/{rolldown-runtime-8H4AJuhK.js → rolldown-runtime-BJohB4LM.js} +1 -2
- package/dist/_chunks/{secure_file-BucZj4yQ.js → secure_file-Caskdohg.js} +1 -2
- package/dist/_chunks/{set_context-DbrwoImy.js → set_context-ompB6d2D.js} +2 -3
- package/dist/_chunks/{skills-BP6pIm7O.js → skills-DKgafm65.js} +2 -3
- package/dist/_chunks/{snapshots-RJBzW8GM.js → snapshots-DxNhjcco.js} +3 -4
- package/dist/_chunks/{status-DV8Z2kw3.js → status-DS_yUXFo.js} +3 -4
- package/dist/_chunks/{triggers-BrRo1z4b.js → triggers-BfvyeJUC.js} +2 -3
- package/dist/_chunks/{user-dlOGXbX9.js → user-D9mC430O.js} +2 -3
- package/dist/_chunks/{vpc_endpoints-CNb0YfMo.js → vpc_endpoints-C-Y4WK2M.js} +3 -4
- package/dist/_shared/auth_selection.js +1 -2
- package/dist/_shared/credentials.js +1 -2
- package/dist/_shared/paths.js +1 -2
- package/dist/_shared/profiles.js +1 -2
- package/dist/_shared/secure_file.js +1 -2
- package/dist/analytics.js +3 -4
- package/dist/anonymous_id.js +2 -3
- package/dist/api.js +1 -2
- package/dist/auth.js +1 -2
- package/dist/auth_context.js +1 -2
- package/dist/auth_recovery.js +3 -4
- package/dist/claimable/api.js +1 -2
- package/dist/claimable/state.js +2 -3
- package/dist/cli.js +1 -2
- package/dist/commands/api.js +1 -1
- package/dist/commands/api_keys.js +1 -1
- package/dist/commands/ask.js +1 -1
- package/dist/commands/ask_sse.js +1 -2
- package/dist/commands/auth.js +1 -1
- package/dist/commands/bootstrap.js +1 -1
- package/dist/commands/branches.js +1 -1
- package/dist/commands/bucket.js +1 -1
- package/dist/commands/checkout.js +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/connection_string.js +1 -1
- package/dist/commands/credentials.js +1 -1
- package/dist/commands/data_api.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/deploy_help.js +1 -2
- package/dist/commands/dev.js +1 -1
- package/dist/commands/diff.js +1 -1
- package/dist/commands/docs.js +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/env_output.js +2 -3
- package/dist/commands/feedback.js +1 -1
- package/dist/commands/functions.js +1 -1
- package/dist/commands/functions_new.js +2 -3
- package/dist/commands/git.js +1 -1
- package/dist/commands/index.js +46 -47
- package/dist/commands/init.js +1 -1
- package/dist/commands/inspect.js +1 -1
- package/dist/commands/ip_allow.js +1 -1
- package/dist/commands/link.js +1 -1
- package/dist/commands/link_output.js +1 -2
- package/dist/commands/logs.js +1 -1
- package/dist/commands/manifest.js +1 -2
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/neon_auth.js +1 -1
- package/dist/commands/open.js +1 -1
- package/dist/commands/operations.js +1 -1
- package/dist/commands/orgs.js +1 -1
- package/dist/commands/plugins.js +1 -1
- package/dist/commands/profile.js +1 -1
- package/dist/commands/projects.js +1 -1
- package/dist/commands/psql.js +1 -1
- package/dist/commands/realtime.js +1 -1
- package/dist/commands/roles.js +1 -1
- package/dist/commands/schema_diff.js +1 -2
- package/dist/commands/set_context.js +1 -1
- package/dist/commands/skills.js +1 -1
- package/dist/commands/snapshots.js +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/subscribe.js +2 -3
- package/dist/commands/thinking_spinner.js +1 -2
- package/dist/commands/triggers.js +1 -1
- package/dist/commands/user.js +1 -1
- package/dist/commands/vpc_endpoints.js +1 -1
- package/dist/config.js +2 -3
- package/dist/config_edit.js +1 -2
- package/dist/config_format.js +1 -2
- package/dist/config_services.js +1 -2
- package/dist/config_source.js +1 -2
- package/dist/config_template.js +1 -2
- package/dist/context.js +1 -2
- package/dist/credential_io.js +1 -1
- package/dist/current_branch_fast_path.js +1 -2
- package/dist/custom_domains_api.js +1 -2
- package/dist/dev/env.js +1 -1
- package/dist/dev/functions.js +1 -2
- package/dist/dev/inputs.js +1 -2
- package/dist/dev/runtime.js +1 -2
- package/dist/dev/websocket.js +1 -2
- package/dist/env.js +1 -2
- package/dist/env_file.js +1 -2
- package/dist/env_services.js +2 -3
- package/dist/error_reporting.js +80 -160
- package/dist/errors.js +1 -2
- package/dist/functions/registry.js +1 -2
- package/dist/functions/scaffold.js +1 -2
- package/dist/functions/source.js +1 -2
- package/dist/functions_api.js +1 -2
- package/dist/help.js +1 -2
- package/dist/human_table.js +1 -2
- package/dist/index.js +3 -4
- package/dist/init/agents.js +1 -2
- package/dist/init/auth.js +5 -6
- package/dist/init/bootstrap.js +1 -2
- package/dist/init/build_config.js +1 -2
- package/dist/init/cancelled.js +1 -2
- package/dist/init/choices.js +2 -3
- package/dist/init/chrome.js +1 -2
- package/dist/init/copy.js +1 -2
- package/dist/init/detect.js +4 -5
- package/dist/init/detect_host.js +1 -2
- package/dist/init/funnel.js +1 -2
- package/dist/init/link.js +4 -5
- package/dist/init/mode.js +1 -2
- package/dist/init/plan.js +1 -2
- package/dist/init/run.js +5 -6
- package/dist/init/template_title.js +1 -2
- package/dist/init/tooling.js +4 -5
- package/dist/init/wizard.js +1 -2
- package/dist/keyring.js +1 -2
- package/dist/log.js +1 -2
- package/dist/mcp/agents.js +1 -2
- package/dist/mcp/install.js +1 -2
- package/dist/mcp/mint.js +2 -3
- package/dist/mcp/plan.js +1 -2
- package/dist/mcp/targets.js +1 -2
- package/dist/mcp/wizard.js +1 -2
- package/dist/neon_services.js +1 -2
- package/dist/node_version.js +1 -2
- package/dist/notices.js +1 -2
- package/dist/parameters.gen.js +1 -2
- package/dist/pkg.js +1 -2
- package/dist/plugins/plan.js +1 -2
- package/dist/plugins/run.js +1 -2
- package/dist/plugins/targets.js +1 -2
- package/dist/profile_keys.js +1 -2
- package/dist/project.js +1 -2
- package/dist/psql/cli.js +2 -3
- package/dist/psql/command/cmd_cond.js +1 -2
- package/dist/psql/command/cmd_connect.js +1 -2
- package/dist/psql/command/cmd_copy.js +2 -3
- package/dist/psql/command/cmd_describe.js +1 -2
- package/dist/psql/command/cmd_format.js +1 -2
- package/dist/psql/command/cmd_io.js +1 -1
- package/dist/psql/command/cmd_lo.js +1 -2
- package/dist/psql/command/cmd_meta.js +1 -2
- package/dist/psql/command/cmd_misc.js +1 -2
- package/dist/psql/command/cmd_pipeline.js +1 -1
- package/dist/psql/command/cmd_restrict.js +1 -2
- package/dist/psql/command/cmd_show.js +1 -2
- package/dist/psql/command/dispatch.js +2 -3
- package/dist/psql/command/inputQueue.js +1 -2
- package/dist/psql/command/shared.js +1 -2
- package/dist/psql/complete/filenames.js +1 -2
- package/dist/psql/complete/index.js +1 -2
- package/dist/psql/complete/matcher.js +1 -2
- package/dist/psql/complete/psqlVars.js +1 -2
- package/dist/psql/complete/queries.js +1 -2
- package/dist/psql/complete/rules.js +1 -2
- package/dist/psql/core/common.js +1 -1
- package/dist/psql/core/help.js +1 -2
- package/dist/psql/core/mainloop.js +2 -3
- package/dist/psql/core/prompt.js +1 -2
- package/dist/psql/core/settings.js +1 -2
- package/dist/psql/core/sqlHelp.js +1 -2
- package/dist/psql/core/startup.js +1 -1
- package/dist/psql/core/syncVars.js +1 -2
- package/dist/psql/core/variables.js +1 -2
- package/dist/psql/describe/formatters.js +1 -2
- package/dist/psql/describe/processNamePattern.js +1 -2
- package/dist/psql/describe/queries.js +1 -2
- package/dist/psql/describe/versionGate.js +1 -2
- package/dist/psql/index.js +1 -1
- package/dist/psql/io/history.js +1 -2
- package/dist/psql/io/input.js +1 -2
- package/dist/psql/io/lineEditor/buffer.js +1 -2
- package/dist/psql/io/lineEditor/complete.js +1 -2
- package/dist/psql/io/lineEditor/filename.js +1 -2
- package/dist/psql/io/lineEditor/index.js +1 -2
- package/dist/psql/io/lineEditor/keymap.js +1 -2
- package/dist/psql/io/lineEditor/vt100.js +1 -2
- package/dist/psql/io/pgpass.js +1 -2
- package/dist/psql/io/pgservice.js +1 -2
- package/dist/psql/io/psqlrc.js +2 -3
- package/dist/psql/print/aligned.js +1 -2
- package/dist/psql/print/asciidoc.js +1 -2
- package/dist/psql/print/crosstab.js +1 -2
- package/dist/psql/print/csv.js +1 -2
- package/dist/psql/print/html.js +1 -2
- package/dist/psql/print/json.js +1 -2
- package/dist/psql/print/latex.js +1 -2
- package/dist/psql/print/pager.js +1 -2
- package/dist/psql/print/troff.js +1 -2
- package/dist/psql/print/unaligned.js +1 -2
- package/dist/psql/print/units.js +1 -2
- package/dist/psql/scanner/slash.js +1 -2
- package/dist/psql/scanner/sql.js +1 -2
- package/dist/psql/scanner/stringutils.js +1 -2
- package/dist/psql/types/scanner.js +1 -2
- package/dist/psql/wire/connection.js +1 -2
- package/dist/psql/wire/copy.js +1 -2
- package/dist/psql/wire/notify.js +1 -2
- package/dist/psql/wire/pipeline.js +1 -2
- package/dist/psql/wire/protocol.js +1 -2
- package/dist/psql/wire/sasl.js +1 -2
- package/dist/psql/wire/tls.js +1 -2
- package/dist/refresh_lock.js +1 -2
- package/dist/retire_credential.js +2 -3
- package/dist/skills/catalog.js +1 -2
- package/dist/skills/check_worker.js +1 -2
- package/dist/skills/freshness.js +1 -2
- package/dist/skills/plan.js +1 -2
- package/dist/skills/run.js +1 -2
- package/dist/skills/targets.js +1 -2
- package/dist/skills/wizard.js +1 -2
- package/dist/sso_recovery.js +1 -2
- package/dist/storage_api.js +1 -2
- package/dist/test_utils/fixtures.js +1 -2
- package/dist/test_utils/neon_api_server.js +1 -2
- package/dist/test_utils/npm_env.js +1 -2
- package/dist/test_utils/oauth_server.js +1 -2
- package/dist/test_utils/project_dir.js +1 -2
- package/dist/test_utils/registry.js +1 -2
- package/dist/test_utils/rotating_oauth_server.js +1 -2
- package/dist/update_check_worker.js +1 -2
- package/dist/update_notifier.js +1 -2
- package/dist/utils/agent_flag.js +1 -2
- package/dist/utils/agent_picker.js +1 -2
- package/dist/utils/ai_gateway_notice.js +1 -2
- package/dist/utils/api_enums.js +3 -3
- package/dist/utils/auth.js +1 -2
- package/dist/utils/branch_name.js +1 -2
- package/dist/utils/branch_notice.js +1 -2
- package/dist/utils/branch_picker.js +1 -2
- package/dist/utils/cli_name.js +1 -2
- package/dist/utils/compute_units.js +1 -2
- package/dist/utils/config_diff.js +1 -2
- package/dist/utils/enrichers.js +1 -2
- package/dist/utils/esbuild.js +1 -2
- package/dist/utils/flags.js +1 -2
- package/dist/utils/formats.js +1 -2
- package/dist/utils/function_slug.js +1 -2
- package/dist/utils/git.js +1 -2
- package/dist/utils/git_diff.js +1 -2
- package/dist/utils/help_text.js +1 -2
- package/dist/utils/hooks.js +2 -3
- package/dist/utils/inspect_db.js +3 -4
- package/dist/utils/inspect_queries.js +1 -2
- package/dist/utils/json_file.js +1 -2
- package/dist/utils/middlewares.js +2 -3
- package/dist/utils/openapi.js +1 -2
- package/dist/utils/package_manager.js +1 -2
- package/dist/utils/point_in_time.js +1 -2
- package/dist/utils/psql.js +1 -2
- package/dist/utils/repeated_flags.js +1 -2
- package/dist/utils/service_picker.js +1 -2
- package/dist/utils/staging.js +1 -2
- package/dist/utils/string.js +1 -2
- package/dist/utils/ui.js +1 -2
- package/dist/utils/write_sync.js +1 -2
- package/dist/utils/zip.js +1 -2
- package/dist/vendor/postgres-meta/constants.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMeta.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaColumnPrivileges.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaColumns.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaConfig.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaExtensions.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaForeignTables.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaFunctions.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaIndexes.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaMaterializedViews.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaPolicies.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaPublications.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaRelationships.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaRoles.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaSchemas.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTablePrivileges.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTables.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTriggers.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTypes.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaVersion.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaViews.js +1 -2
- package/dist/vendor/postgres-meta/lib/constants.js +1 -2
- package/dist/vendor/postgres-meta/lib/db.js +1 -2
- package/dist/vendor/postgres-meta/lib/generators.js +1 -2
- package/dist/vendor/postgres-meta/lib/helpers.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/column_privileges.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/columns.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/config.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/extensions.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/foreign_tables.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/functions.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/indexes.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/materialized_views.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/policies.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/publications.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/roles.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/schemas.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table_privileges.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table_relationships.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/triggers.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/types.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/version.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/views.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/views_key_dependencies.sql.js +1 -2
- package/dist/vendor/postgres-meta/templates/typescript.js +1 -2
- package/dist/writer.js +1 -2
- package/package.json +6 -6
package/dist/error_reporting.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { getCliAgent, isCi } from "./env.js";
|
|
2
2
|
import pkg_default from "./pkg.js";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/debug-build.js
|
|
4
4
|
const DEBUG_BUILD = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/worldwide.js
|
|
5
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/worldwide.js
|
|
7
6
|
const GLOBAL_OBJ = globalThis;
|
|
8
|
-
|
|
9
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/version.js
|
|
7
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/version.js
|
|
10
8
|
const SDK_VERSION = "11.2.0";
|
|
11
|
-
|
|
12
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/carrier.js
|
|
9
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/carrier.js
|
|
13
10
|
function getMainCarrier() {
|
|
14
11
|
getSentryCarrier(GLOBAL_OBJ);
|
|
15
12
|
return GLOBAL_OBJ;
|
|
@@ -24,8 +21,7 @@ function getGlobalSingleton(name, creator, obj = GLOBAL_OBJ) {
|
|
|
24
21
|
const carrier = __SENTRY__[SDK_VERSION] = __SENTRY__["11.2.0"] || {};
|
|
25
22
|
return carrier[name] || (carrier[name] = creator());
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js
|
|
24
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js
|
|
29
25
|
const PREFIX = "Sentry Logger ";
|
|
30
26
|
const originalConsoleMethods = {};
|
|
31
27
|
function consoleSandbox(callback) {
|
|
@@ -88,8 +84,7 @@ const debug = {
|
|
|
88
84
|
/** Log an error. */
|
|
89
85
|
error
|
|
90
86
|
};
|
|
91
|
-
|
|
92
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/stacktrace.js
|
|
87
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/stacktrace.js
|
|
93
88
|
const STACKTRACE_FRAME_LIMIT = 50;
|
|
94
89
|
const WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
95
90
|
const STRIP_FRAME_REGEXP = /captureMessage|captureException/;
|
|
@@ -147,8 +142,7 @@ function normalizeStackTracePath(path) {
|
|
|
147
142
|
if (filename?.match(/\/[A-Z]:/)) filename = filename.slice(1);
|
|
148
143
|
return filename;
|
|
149
144
|
}
|
|
150
|
-
|
|
151
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/is.js
|
|
145
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/is.js
|
|
152
146
|
const objectToString = Object.prototype.toString;
|
|
153
147
|
function isError(wat) {
|
|
154
148
|
switch (objectToString.call(wat)) {
|
|
@@ -196,8 +190,7 @@ function isInstanceOf(wat, base) {
|
|
|
196
190
|
return false;
|
|
197
191
|
}
|
|
198
192
|
}
|
|
199
|
-
|
|
200
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/object.js
|
|
193
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/object.js
|
|
201
194
|
function addNonEnumerableProperty(obj, name, value) {
|
|
202
195
|
try {
|
|
203
196
|
Object.defineProperty(obj, name, {
|
|
@@ -237,8 +230,7 @@ function extractExceptionKeysForMessage(exception) {
|
|
|
237
230
|
keys.sort();
|
|
238
231
|
return !keys[0] ? "[object has no keys]" : keys.join(", ");
|
|
239
232
|
}
|
|
240
|
-
|
|
241
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
|
|
233
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
|
|
242
234
|
let RESOLVED_RUNNER;
|
|
243
235
|
function withRandomSafeContext(cb) {
|
|
244
236
|
if (RESOLVED_RUNNER !== void 0) return RESOLVED_RUNNER ? RESOLVED_RUNNER(cb) : cb();
|
|
@@ -257,8 +249,7 @@ function safeMathRandom() {
|
|
|
257
249
|
function safeDateNow() {
|
|
258
250
|
return withRandomSafeContext(() => Date.now());
|
|
259
251
|
}
|
|
260
|
-
|
|
261
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/normalizationHints.js
|
|
252
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/normalizationHints.js
|
|
262
253
|
const SENTRY_SKIP_NORMALIZATION = /* @__PURE__ */ Symbol.for("sentry.skipNormalization");
|
|
263
254
|
const SENTRY_OVERRIDE_NORMALIZATION_DEPTH = /* @__PURE__ */ Symbol.for("sentry.overrideNormalizationDepth");
|
|
264
255
|
function hasSkipNormalizationHint(value) {
|
|
@@ -344,8 +335,7 @@ function memoBuilder() {
|
|
|
344
335
|
}
|
|
345
336
|
return [memoize, unmemoize];
|
|
346
337
|
}
|
|
347
|
-
|
|
348
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/string.js
|
|
338
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/string.js
|
|
349
339
|
function truncate(str, max = 0) {
|
|
350
340
|
if (typeof str !== "string" || max === 0) return str;
|
|
351
341
|
return str.length <= max ? str : `${str.slice(0, max)}...`;
|
|
@@ -357,8 +347,7 @@ function isMatchingPattern(value, pattern, requireExactStringMatch = false) {
|
|
|
357
347
|
if (typeof pattern === "function") return pattern(value);
|
|
358
348
|
return false;
|
|
359
349
|
}
|
|
360
|
-
|
|
361
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/misc.js
|
|
350
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/misc.js
|
|
362
351
|
function getCrypto() {
|
|
363
352
|
const gbl = GLOBAL_OBJ;
|
|
364
353
|
return gbl.crypto || gbl.msCrypto;
|
|
@@ -423,8 +412,7 @@ function isAlreadyCaptured(exception) {
|
|
|
423
412
|
return exception.__sentry_captured__;
|
|
424
413
|
} catch {}
|
|
425
414
|
}
|
|
426
|
-
|
|
427
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/time.js
|
|
415
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/time.js
|
|
428
416
|
const ONE_SECOND_IN_MS = 1e3;
|
|
429
417
|
function dateTimestampInSeconds() {
|
|
430
418
|
return safeDateNow() / ONE_SECOND_IN_MS;
|
|
@@ -441,8 +429,7 @@ let _cachedTimestampInSeconds;
|
|
|
441
429
|
function timestampInSeconds() {
|
|
442
430
|
return (_cachedTimestampInSeconds ?? (_cachedTimestampInSeconds = createUnixTimestampInSecondsFunc()))();
|
|
443
431
|
}
|
|
444
|
-
|
|
445
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/session.js
|
|
432
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/session.js
|
|
446
433
|
function updateSession(session, context = {}) {
|
|
447
434
|
if (context.user) {
|
|
448
435
|
if (!session.ipAddress && context.user.ip_address) session.ipAddress = context.user.ip_address;
|
|
@@ -468,8 +455,7 @@ function updateSession(session, context = {}) {
|
|
|
468
455
|
if (typeof context.errors === "number") session.errors = context.errors;
|
|
469
456
|
if (context.status) session.status = context.status;
|
|
470
457
|
}
|
|
471
|
-
|
|
472
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/merge.js
|
|
458
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/merge.js
|
|
473
459
|
function merge(initialObj, mergeObj, levels = 2) {
|
|
474
460
|
if (!mergeObj || typeof mergeObj !== "object" || levels <= 0) return mergeObj;
|
|
475
461
|
if (initialObj && Object.keys(mergeObj).length === 0) return initialObj;
|
|
@@ -477,16 +463,14 @@ function merge(initialObj, mergeObj, levels = 2) {
|
|
|
477
463
|
for (const key in mergeObj) if (Object.prototype.hasOwnProperty.call(mergeObj, key)) output[key] = merge(output[key], mergeObj[key], levels - 1);
|
|
478
464
|
return output;
|
|
479
465
|
}
|
|
480
|
-
|
|
481
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js
|
|
466
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js
|
|
482
467
|
function generateTraceId() {
|
|
483
468
|
return uuid4();
|
|
484
469
|
}
|
|
485
470
|
function generateSpanId() {
|
|
486
471
|
return uuid4().substring(16);
|
|
487
472
|
}
|
|
488
|
-
|
|
489
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/scope.js
|
|
473
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/scope.js
|
|
490
474
|
const DEFAULT_MAX_BREADCRUMBS = 100;
|
|
491
475
|
var Scope = class Scope {
|
|
492
476
|
constructor() {
|
|
@@ -955,19 +939,16 @@ var Scope = class Scope {
|
|
|
955
939
|
}
|
|
956
940
|
}
|
|
957
941
|
};
|
|
958
|
-
|
|
959
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/defaultScopes.js
|
|
942
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/defaultScopes.js
|
|
960
943
|
function getDefaultCurrentScope() {
|
|
961
944
|
return getGlobalSingleton("defaultCurrentScope", () => new Scope());
|
|
962
945
|
}
|
|
963
946
|
function getDefaultIsolationScope() {
|
|
964
947
|
return getGlobalSingleton("defaultIsolationScope", () => new Scope());
|
|
965
948
|
}
|
|
966
|
-
|
|
967
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/constants.js
|
|
949
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/constants.js
|
|
968
950
|
const SUPPRESS_TRACING_KEY = "__SENTRY_SUPPRESS_TRACING__";
|
|
969
|
-
|
|
970
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js
|
|
951
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js
|
|
971
952
|
const isActualPromise = (p) => p instanceof Promise && !p[kChainedCopy];
|
|
972
953
|
const kChainedCopy = /* @__PURE__ */ Symbol("chained PromiseLike");
|
|
973
954
|
const chainAndCopyPromiseLike = (original, onSuccess, onError) => {
|
|
@@ -998,8 +979,7 @@ const copyProps = (original, chained) => {
|
|
|
998
979
|
if (mutated) Object.assign(chained, { [kChainedCopy]: true });
|
|
999
980
|
return chained;
|
|
1000
981
|
};
|
|
1001
|
-
|
|
1002
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
|
|
982
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
|
|
1003
983
|
var AsyncContextStack = class {
|
|
1004
984
|
constructor(scope, isolationScope) {
|
|
1005
985
|
let assignedScope;
|
|
@@ -1110,15 +1090,13 @@ function suppressTracingInStack(callback) {
|
|
|
1110
1090
|
return res;
|
|
1111
1091
|
});
|
|
1112
1092
|
}
|
|
1113
|
-
|
|
1114
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/asyncContext/index.js
|
|
1093
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/asyncContext/index.js
|
|
1115
1094
|
function getAsyncContextStrategy(carrier) {
|
|
1116
1095
|
const sentry = getSentryCarrier(carrier);
|
|
1117
1096
|
if (sentry.acs) return sentry.acs;
|
|
1118
1097
|
return getStackAsyncContextStrategy();
|
|
1119
1098
|
}
|
|
1120
|
-
|
|
1121
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/attributes.js
|
|
1099
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/attributes.js
|
|
1122
1100
|
function isAttributeObject(maybeObj) {
|
|
1123
1101
|
return typeof maybeObj === "object" && maybeObj != null && !Array.isArray(maybeObj) && Object.keys(maybeObj).includes("value");
|
|
1124
1102
|
}
|
|
@@ -1183,8 +1161,7 @@ function getTypedAttributeValue(value) {
|
|
|
1183
1161
|
type: primitiveType
|
|
1184
1162
|
};
|
|
1185
1163
|
}
|
|
1186
|
-
|
|
1187
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/currentScopes.js
|
|
1164
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/currentScopes.js
|
|
1188
1165
|
function getExternalPropagationContext() {
|
|
1189
1166
|
return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider?.();
|
|
1190
1167
|
}
|
|
@@ -1223,8 +1200,7 @@ function getTraceContextFromScope(scope) {
|
|
|
1223
1200
|
if (parentSpanId) traceContext.parent_span_id = parentSpanId;
|
|
1224
1201
|
return traceContext;
|
|
1225
1202
|
}
|
|
1226
|
-
|
|
1227
|
-
//#region ../../node_modules/.pnpm/@sentry+conventions@0.24.0/node_modules/@sentry/conventions/dist/attributes.mjs
|
|
1203
|
+
// ../../node_modules/.pnpm/@sentry+conventions@0.24.0/node_modules/@sentry/conventions/dist/attributes.mjs
|
|
1228
1204
|
const zd = "sentry.sdk.name";
|
|
1229
1205
|
const Yd = "sentry.sdk.version";
|
|
1230
1206
|
const Vd = "sentry.segment.id";
|
|
@@ -1242,8 +1218,7 @@ const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = "user.ip_address";
|
|
|
1242
1218
|
const SEMANTIC_ATTRIBUTE_USER_USERNAME = "user.name";
|
|
1243
1219
|
const SEMANTIC_ATTRIBUTE_PROFILE_ID = "sentry.profile_id";
|
|
1244
1220
|
const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = "sentry.exclusive_time";
|
|
1245
|
-
|
|
1246
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/types/spanStatus.js
|
|
1221
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/types/spanStatus.js
|
|
1247
1222
|
const SPAN_STATUS_TYPES = [
|
|
1248
1223
|
"ok",
|
|
1249
1224
|
"deadline_exceeded",
|
|
@@ -1263,13 +1238,11 @@ const SPAN_STATUS_TYPES = [
|
|
|
1263
1238
|
"out_of_range",
|
|
1264
1239
|
"data_loss"
|
|
1265
1240
|
];
|
|
1266
|
-
|
|
1267
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spanstatus.js
|
|
1241
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spanstatus.js
|
|
1268
1242
|
function isStatusErrorMessageValid(message) {
|
|
1269
1243
|
return message !== "ok" && SPAN_STATUS_TYPES.includes(message);
|
|
1270
1244
|
}
|
|
1271
|
-
|
|
1272
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/weakRef.js
|
|
1245
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/weakRef.js
|
|
1273
1246
|
function derefWeakRef(ref) {
|
|
1274
1247
|
if (!ref) return;
|
|
1275
1248
|
if (typeof ref === "object" && "deref" in ref && typeof ref.deref === "function") try {
|
|
@@ -1279,8 +1252,7 @@ function derefWeakRef(ref) {
|
|
|
1279
1252
|
}
|
|
1280
1253
|
return ref;
|
|
1281
1254
|
}
|
|
1282
|
-
|
|
1283
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/utils.js
|
|
1255
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/utils.js
|
|
1284
1256
|
const SCOPE_ON_START_SPAN_FIELD = "_sentryScope";
|
|
1285
1257
|
const ISOLATION_SCOPE_ON_START_SPAN_FIELD = "_sentryIsolationScope";
|
|
1286
1258
|
function getCapturedScopesOnSpan(span) {
|
|
@@ -1330,8 +1302,7 @@ function baggageHeaderToObject(baggageHeader) {
|
|
|
1330
1302
|
return acc;
|
|
1331
1303
|
}, {});
|
|
1332
1304
|
}
|
|
1333
|
-
|
|
1334
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/dsn.js
|
|
1305
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/dsn.js
|
|
1335
1306
|
const ORG_ID_REGEX = /^o(\d+)\./;
|
|
1336
1307
|
const DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;
|
|
1337
1308
|
function isValidProtocol(protocol) {
|
|
@@ -1427,16 +1398,14 @@ function makeDsn(from) {
|
|
|
1427
1398
|
if (!components || !validateDsn(components)) return;
|
|
1428
1399
|
return components;
|
|
1429
1400
|
}
|
|
1430
|
-
|
|
1431
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
|
|
1401
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
|
|
1432
1402
|
function parseSampleRate(sampleRate) {
|
|
1433
1403
|
if (typeof sampleRate === "boolean") return Number(sampleRate);
|
|
1434
1404
|
const rate = typeof sampleRate === "string" ? parseFloat(sampleRate) : sampleRate;
|
|
1435
1405
|
if (typeof rate !== "number" || isNaN(rate) || rate < 0 || rate > 1) return;
|
|
1436
1406
|
return rate;
|
|
1437
1407
|
}
|
|
1438
|
-
|
|
1439
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
|
|
1408
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
|
|
1440
1409
|
const SCOPE_SPAN_FIELD = "span";
|
|
1441
1410
|
function _getSpanForScope(scope) {
|
|
1442
1411
|
return derefWeakRef(scope.refs[SCOPE_SPAN_FIELD]);
|
|
@@ -1587,15 +1556,13 @@ function getActiveSpan(scope) {
|
|
|
1587
1556
|
if (acs.getActiveSpan) return acs.getActiveSpan(scope);
|
|
1588
1557
|
return _getSpanForScope(scope || getCurrentScope());
|
|
1589
1558
|
}
|
|
1590
|
-
|
|
1591
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
|
|
1559
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
|
|
1592
1560
|
function hasSpansEnabled(maybeOptions) {
|
|
1593
1561
|
if (typeof __SENTRY_TRACING__ === "boolean" && !__SENTRY_TRACING__) return false;
|
|
1594
1562
|
const options = maybeOptions || getClient()?.getOptions();
|
|
1595
1563
|
return !!options && (options.tracesSampleRate != null || !!options.tracesSampler);
|
|
1596
1564
|
}
|
|
1597
|
-
|
|
1598
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
|
|
1565
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
|
|
1599
1566
|
function logIgnoredSpan(droppedSpan) {
|
|
1600
1567
|
debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description} because it matches \`ignoreSpans\`.`);
|
|
1601
1568
|
}
|
|
@@ -1635,8 +1602,7 @@ function reparentChildSpans(spans, dropSpan) {
|
|
|
1635
1602
|
function isStringOrRegExp(value) {
|
|
1636
1603
|
return typeof value === "string" || value instanceof RegExp;
|
|
1637
1604
|
}
|
|
1638
|
-
|
|
1639
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/integration.js
|
|
1605
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/integration.js
|
|
1640
1606
|
const installedIntegrations = [];
|
|
1641
1607
|
function setupIntegrations(client, integrations) {
|
|
1642
1608
|
const integrationIndex = {};
|
|
@@ -1680,17 +1646,14 @@ function setupIntegration(client, integration, integrationIndex) {
|
|
|
1680
1646
|
function defineIntegration(fn) {
|
|
1681
1647
|
return fn;
|
|
1682
1648
|
}
|
|
1683
|
-
|
|
1684
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/constants.js
|
|
1649
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/constants.js
|
|
1685
1650
|
const DEFAULT_ENVIRONMENT = "production";
|
|
1686
|
-
|
|
1687
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js
|
|
1651
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js
|
|
1688
1652
|
const NON_RECORDING_SPAN_FIELD = /* @__PURE__ */ Symbol.for("sentry.nonRecordingSpan");
|
|
1689
1653
|
function spanIsNonRecordingSpan(span) {
|
|
1690
1654
|
return !!span && span[NON_RECORDING_SPAN_FIELD] === true;
|
|
1691
1655
|
}
|
|
1692
|
-
|
|
1693
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
|
|
1656
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
|
|
1694
1657
|
const FROZEN_DSC_FIELD = "_frozenDsc";
|
|
1695
1658
|
function getDynamicSamplingContextFromClient(trace_id, client) {
|
|
1696
1659
|
const options = client.getOptions();
|
|
@@ -1750,8 +1713,7 @@ function getDynamicSamplingContextFromSpan(span) {
|
|
|
1750
1713
|
client.emit("createDsc", dsc, rootSpan);
|
|
1751
1714
|
return dsc;
|
|
1752
1715
|
}
|
|
1753
|
-
|
|
1754
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/scopeData.js
|
|
1716
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/scopeData.js
|
|
1755
1717
|
function applyScopeDataToEvent(event, data) {
|
|
1756
1718
|
const { fingerprint, breadcrumbs, sdkProcessingMetadata } = data;
|
|
1757
1719
|
applyDataToEvent(event, data);
|
|
@@ -1835,8 +1797,7 @@ function applyFingerprintToEvent(event, fingerprint) {
|
|
|
1835
1797
|
if (fingerprint) event.fingerprint = event.fingerprint.concat(fingerprint);
|
|
1836
1798
|
if (!event.fingerprint.length) delete event.fingerprint;
|
|
1837
1799
|
}
|
|
1838
|
-
|
|
1839
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/safeCallback.js
|
|
1800
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/safeCallback.js
|
|
1840
1801
|
function safeCallback(message, fn, fallback) {
|
|
1841
1802
|
let result;
|
|
1842
1803
|
try {
|
|
@@ -1851,8 +1812,7 @@ function recover(message, error, fallback) {
|
|
|
1851
1812
|
DEBUG_BUILD && debug.error(message, error);
|
|
1852
1813
|
return fallback(error);
|
|
1853
1814
|
}
|
|
1854
|
-
|
|
1855
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
|
|
1815
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
|
|
1856
1816
|
function isStaticBeforeSendSpanCallback(callback) {
|
|
1857
1817
|
return !!callback && typeof callback === "function" && "_static" in callback && !!callback._static;
|
|
1858
1818
|
}
|
|
@@ -1868,8 +1828,7 @@ function applyBeforeSendSpanCallback(span, beforeSendSpan) {
|
|
|
1868
1828
|
}
|
|
1869
1829
|
return span;
|
|
1870
1830
|
}
|
|
1871
|
-
|
|
1872
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
|
|
1831
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
|
|
1873
1832
|
function spanJsonToSerializedStreamedSpan(span) {
|
|
1874
1833
|
return streamedSpanJsonToSerializedSpan({
|
|
1875
1834
|
trace_id: span.trace_id,
|
|
@@ -1884,8 +1843,7 @@ function spanJsonToSerializedStreamedSpan(span) {
|
|
|
1884
1843
|
links: span.links
|
|
1885
1844
|
});
|
|
1886
1845
|
}
|
|
1887
|
-
|
|
1888
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/scopeContextAttributes.js
|
|
1846
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/scopeContextAttributes.js
|
|
1889
1847
|
function scopeContextsToSpanAttributes(contexts) {
|
|
1890
1848
|
const attrs = {};
|
|
1891
1849
|
const { response, profile, cloud_resource, culture, state } = contexts;
|
|
@@ -1917,8 +1875,7 @@ function scopeContextsToSpanAttributes(contexts) {
|
|
|
1917
1875
|
}
|
|
1918
1876
|
return attrs;
|
|
1919
1877
|
}
|
|
1920
|
-
|
|
1921
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
|
|
1878
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
|
|
1922
1879
|
function captureSpan(span, client) {
|
|
1923
1880
|
const spanJSON = spanToJSON(span);
|
|
1924
1881
|
const segmentSpan = INTERNAL_getSegmentSpan(span);
|
|
@@ -1974,19 +1931,16 @@ function commonSpanAttributes(serializedSegmentSpan, client, scopeData, includeS
|
|
|
1974
1931
|
function applyCommonSpanAttributes(spanJSON, serializedSegmentSpan, client, scopeData) {
|
|
1975
1932
|
safeSetSpanJSONAttributes(spanJSON, commonSpanAttributes(serializedSegmentSpan, client, scopeData));
|
|
1976
1933
|
}
|
|
1977
|
-
|
|
1978
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
|
|
1934
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
|
|
1979
1935
|
function hasSpanStreamingEnabled(client) {
|
|
1980
1936
|
return client.getOptions().traceLifecycle === "stream";
|
|
1981
1937
|
}
|
|
1982
|
-
|
|
1983
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/timer.js
|
|
1938
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/timer.js
|
|
1984
1939
|
function safeUnref(timer) {
|
|
1985
1940
|
if (typeof timer === "object" && typeof timer.unref === "function") timer.unref();
|
|
1986
1941
|
return timer;
|
|
1987
1942
|
}
|
|
1988
|
-
|
|
1989
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/envelope.js
|
|
1943
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/envelope.js
|
|
1990
1944
|
function createEnvelope(headers, items = []) {
|
|
1991
1945
|
return [headers, items];
|
|
1992
1946
|
}
|
|
@@ -2094,27 +2048,23 @@ function createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn) {
|
|
|
2094
2048
|
function getDataCategoryByType(type) {
|
|
2095
2049
|
return type === "replay_event" ? "replay" : type || "error";
|
|
2096
2050
|
}
|
|
2097
|
-
|
|
2098
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/env.js
|
|
2051
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/env.js
|
|
2099
2052
|
function isBrowserBundle() {
|
|
2100
2053
|
return typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && !!__SENTRY_BROWSER_BUNDLE__;
|
|
2101
2054
|
}
|
|
2102
2055
|
/*! __SENTRY_SDK_SOURCE__ */
|
|
2103
|
-
|
|
2104
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/node.js
|
|
2056
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/node.js
|
|
2105
2057
|
function isNodeEnv() {
|
|
2106
2058
|
return !isBrowserBundle() && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
|
|
2107
2059
|
}
|
|
2108
|
-
|
|
2109
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
|
|
2060
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
|
|
2110
2061
|
function isBrowser() {
|
|
2111
2062
|
return typeof window !== "undefined" && (!isNodeEnv() || isElectronNodeRenderer());
|
|
2112
2063
|
}
|
|
2113
2064
|
function isElectronNodeRenderer() {
|
|
2114
2065
|
return GLOBAL_OBJ.process?.type === "renderer";
|
|
2115
2066
|
}
|
|
2116
|
-
|
|
2117
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/envelope.js
|
|
2067
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/envelope.js
|
|
2118
2068
|
function createStreamedSpanEnvelope(serializedSpans, dsc, client) {
|
|
2119
2069
|
const options = client.getOptions();
|
|
2120
2070
|
const dsn = client.getDsn();
|
|
@@ -2145,8 +2095,7 @@ function createSpanContainerItem(serializedSpans, client) {
|
|
|
2145
2095
|
function dscHasRequiredProps(dsc) {
|
|
2146
2096
|
return !!dsc.trace_id && !!dsc.public_key;
|
|
2147
2097
|
}
|
|
2148
|
-
|
|
2149
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/estimateSize.js
|
|
2098
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/estimateSize.js
|
|
2150
2099
|
function estimateSerializedSpanSizeInBytes(span) {
|
|
2151
2100
|
let weight = 156;
|
|
2152
2101
|
weight += span.name.length * 2;
|
|
@@ -2158,8 +2107,7 @@ function estimateSerializedSpanSizeInBytes(span) {
|
|
|
2158
2107
|
}
|
|
2159
2108
|
return weight;
|
|
2160
2109
|
}
|
|
2161
|
-
|
|
2162
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/spanBuffer.js
|
|
2110
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/spanBuffer.js
|
|
2163
2111
|
const MAX_SPANS_PER_ENVELOPE = 1e3;
|
|
2164
2112
|
const MAX_TRACE_WEIGHT_IN_BYTES = 5e6;
|
|
2165
2113
|
var SpanBuffer = class {
|
|
@@ -2246,8 +2194,7 @@ var SpanBuffer = class {
|
|
|
2246
2194
|
this._traceBuckets.delete(traceId);
|
|
2247
2195
|
}
|
|
2248
2196
|
};
|
|
2249
|
-
|
|
2250
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/integrations/spanStreaming.js
|
|
2197
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/integrations/spanStreaming.js
|
|
2251
2198
|
const INTEGRATION_NAME = "SpanStreaming";
|
|
2252
2199
|
const spanStreamingIntegration = defineIntegration((options = {}) => {
|
|
2253
2200
|
const flushOnSegmentEnd = options.flushOnSegmentEnd ?? true;
|
|
@@ -2275,8 +2222,7 @@ const spanStreamingIntegration = defineIntegration((options = {}) => {
|
|
|
2275
2222
|
}
|
|
2276
2223
|
};
|
|
2277
2224
|
});
|
|
2278
|
-
|
|
2279
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/errorSpanAttribution.js
|
|
2225
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/errorSpanAttribution.js
|
|
2280
2226
|
const escapedSpanTraceContexts = /* @__PURE__ */ new WeakMap();
|
|
2281
2227
|
function toWeakMapKey(error) {
|
|
2282
2228
|
return isPrimitive(error) ? void 0 : error;
|
|
@@ -2295,8 +2241,7 @@ function applyEscapedErrorSpanToEvent(event, hint, scope) {
|
|
|
2295
2241
|
}
|
|
2296
2242
|
};
|
|
2297
2243
|
}
|
|
2298
|
-
|
|
2299
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/envelope.js
|
|
2244
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/envelope.js
|
|
2300
2245
|
function _enhanceEventWithSdkInfo(event, newSdkInfo) {
|
|
2301
2246
|
if (!newSdkInfo) return event;
|
|
2302
2247
|
const eventSdkInfo = event.sdk || {};
|
|
@@ -2329,8 +2274,7 @@ function createEventEnvelope(event, dsn, metadata, tunnel) {
|
|
|
2329
2274
|
delete event.sdkProcessingMetadata;
|
|
2330
2275
|
return createEnvelope(envelopeHeaders, [[{ type: eventType }, event]]);
|
|
2331
2276
|
}
|
|
2332
|
-
|
|
2333
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
|
|
2277
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
|
|
2334
2278
|
const STATE_PENDING = 0;
|
|
2335
2279
|
const STATE_RESOLVED = 1;
|
|
2336
2280
|
const STATE_REJECTED = 2;
|
|
@@ -2438,8 +2382,7 @@ var SyncPromise = class SyncPromise {
|
|
|
2438
2382
|
}
|
|
2439
2383
|
}
|
|
2440
2384
|
};
|
|
2441
|
-
|
|
2442
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/eventProcessors.js
|
|
2385
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/eventProcessors.js
|
|
2443
2386
|
function notifyEventProcessors(processors, event, hint, index = 0, onDrop) {
|
|
2444
2387
|
try {
|
|
2445
2388
|
const result = _notifyEventProcessors(event, hint, processors, index, onDrop);
|
|
@@ -2471,8 +2414,7 @@ function _notifyEventProcessors(event, hint, processors, index, onDrop) {
|
|
|
2471
2414
|
}
|
|
2472
2415
|
return _notifyEventProcessors(result, hint, processors, index + 1, onDrop);
|
|
2473
2416
|
}
|
|
2474
|
-
|
|
2475
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js
|
|
2417
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js
|
|
2476
2418
|
let parsedStackResults;
|
|
2477
2419
|
let lastSentryKeysCount;
|
|
2478
2420
|
let lastNativeKeysCount;
|
|
@@ -2512,8 +2454,7 @@ function getFilenameToDebugIdMap(stackParser) {
|
|
|
2512
2454
|
if (nativeDebugIdMap) processDebugIds(nativeDebugIdKeys, nativeDebugIdMap);
|
|
2513
2455
|
return cachedFilenameDebugIds;
|
|
2514
2456
|
}
|
|
2515
|
-
|
|
2516
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
|
|
2457
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
|
|
2517
2458
|
function prepareEvent(options, event, hint, scope, client, isolationScope) {
|
|
2518
2459
|
const { normalizeDepth = 3, normalizeMaxBreadth = 1e3 } = options;
|
|
2519
2460
|
const prepared = {
|
|
@@ -2644,8 +2585,7 @@ function _encodedAuth(dsn, sdkInfo) {
|
|
|
2644
2585
|
function getEnvelopeEndpointWithUrlEncodedAuth(dsn, tunnel, sdkInfo) {
|
|
2645
2586
|
return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;
|
|
2646
2587
|
}
|
|
2647
|
-
|
|
2648
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/trace-info.js
|
|
2588
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/trace-info.js
|
|
2649
2589
|
function _getTraceInfoFromScope(client, scope) {
|
|
2650
2590
|
if (!scope) return [void 0, void 0];
|
|
2651
2591
|
return withScope(scope, () => {
|
|
@@ -2654,8 +2594,7 @@ function _getTraceInfoFromScope(client, scope) {
|
|
|
2654
2594
|
return [span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromScope(client, scope), traceContext];
|
|
2655
2595
|
});
|
|
2656
2596
|
}
|
|
2657
|
-
|
|
2658
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/logs/envelope.js
|
|
2597
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/logs/envelope.js
|
|
2659
2598
|
function createLogContainerEnvelopeItem(items, inferUserData) {
|
|
2660
2599
|
const inferSetting = inferUserData ? "auto" : "never";
|
|
2661
2600
|
return [{
|
|
@@ -2680,8 +2619,7 @@ function createLogEnvelope(logs, metadata, tunnel, dsn, inferUserData) {
|
|
|
2680
2619
|
if (!!tunnel && !!dsn) headers.dsn = dsnToString(dsn);
|
|
2681
2620
|
return createEnvelope(headers, [createLogContainerEnvelopeItem(logs, inferUserData)]);
|
|
2682
2621
|
}
|
|
2683
|
-
|
|
2684
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/logs/internal.js
|
|
2622
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/logs/internal.js
|
|
2685
2623
|
function _INTERNAL_flushLogsBuffer(client, maybeLogBuffer) {
|
|
2686
2624
|
const logBuffer = maybeLogBuffer ?? _INTERNAL_getLogBuffer(client) ?? [];
|
|
2687
2625
|
if (logBuffer.length === 0) return;
|
|
@@ -2697,8 +2635,7 @@ function _INTERNAL_getLogBuffer(client) {
|
|
|
2697
2635
|
function _getBufferMap$1() {
|
|
2698
2636
|
return getGlobalSingleton("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
|
|
2699
2637
|
}
|
|
2700
|
-
|
|
2701
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
|
|
2638
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
|
|
2702
2639
|
function createMetricContainerEnvelopeItem(items, inferUserData) {
|
|
2703
2640
|
const inferSetting = inferUserData ? "auto" : "never";
|
|
2704
2641
|
return [{
|
|
@@ -2723,8 +2660,7 @@ function createMetricEnvelope(metrics, metadata, tunnel, dsn, inferUserData) {
|
|
|
2723
2660
|
if (!!tunnel && !!dsn) headers.dsn = dsnToString(dsn);
|
|
2724
2661
|
return createEnvelope(headers, [createMetricContainerEnvelopeItem(metrics, inferUserData)]);
|
|
2725
2662
|
}
|
|
2726
|
-
|
|
2727
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/metrics/internal.js
|
|
2663
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/metrics/internal.js
|
|
2728
2664
|
function _INTERNAL_flushMetricsBuffer(client, maybeMetricBuffer) {
|
|
2729
2665
|
const metricBuffer = maybeMetricBuffer ?? _INTERNAL_getMetricBuffer(client) ?? [];
|
|
2730
2666
|
if (metricBuffer.length === 0) return;
|
|
@@ -2740,8 +2676,7 @@ function _INTERNAL_getMetricBuffer(client) {
|
|
|
2740
2676
|
function _getBufferMap() {
|
|
2741
2677
|
return getGlobalSingleton("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
|
|
2742
2678
|
}
|
|
2743
|
-
|
|
2744
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
|
|
2679
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
|
|
2745
2680
|
function extractGenAiSpansFromEvent(event, client) {
|
|
2746
2681
|
if (event.type !== "transaction" || !event.spans?.length || !event.sdkProcessingMetadata?.hasGenAiSpans || hasSpanStreamingEnabled(client)) return;
|
|
2747
2682
|
const genAiSpans = [];
|
|
@@ -2752,8 +2687,7 @@ function extractGenAiSpansFromEvent(event, client) {
|
|
|
2752
2687
|
event.spans = remainingSpans;
|
|
2753
2688
|
return createSpanContainerItem(genAiSpans, client);
|
|
2754
2689
|
}
|
|
2755
|
-
|
|
2756
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
|
|
2690
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
|
|
2757
2691
|
const SENTRY_BUFFER_FULL_ERROR = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
|
|
2758
2692
|
function makePromiseBuffer(limit = 100) {
|
|
2759
2693
|
const buffer = /* @__PURE__ */ new Set();
|
|
@@ -2785,8 +2719,7 @@ function makePromiseBuffer(limit = 100) {
|
|
|
2785
2719
|
drain
|
|
2786
2720
|
};
|
|
2787
2721
|
}
|
|
2788
|
-
|
|
2789
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
|
|
2722
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
|
|
2790
2723
|
const DEFAULT_RETRY_AFTER = 6e4;
|
|
2791
2724
|
function parseRetryAfterHeader(header, now = safeDateNow()) {
|
|
2792
2725
|
const headerDelay = parseInt(`${header}`, 10);
|
|
@@ -2866,8 +2799,7 @@ function createTransport(options, makeRequest, buffer = makePromiseBuffer(option
|
|
|
2866
2799
|
flush
|
|
2867
2800
|
};
|
|
2868
2801
|
}
|
|
2869
|
-
|
|
2870
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
|
|
2802
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
|
|
2871
2803
|
function createClientReportEnvelope(discarded_events, dsn, timestamp) {
|
|
2872
2804
|
const clientReportItem = [{ type: "client_report" }, {
|
|
2873
2805
|
timestamp: timestamp || dateTimestampInSeconds(),
|
|
@@ -2875,8 +2807,7 @@ function createClientReportEnvelope(discarded_events, dsn, timestamp) {
|
|
|
2875
2807
|
}];
|
|
2876
2808
|
return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
|
|
2877
2809
|
}
|
|
2878
|
-
|
|
2879
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
|
|
2810
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
|
|
2880
2811
|
function getPossibleEventMessages(event) {
|
|
2881
2812
|
const possibleMessages = [];
|
|
2882
2813
|
if (event.message) possibleMessages.push(event.message);
|
|
@@ -2889,8 +2820,7 @@ function getPossibleEventMessages(event) {
|
|
|
2889
2820
|
} catch {}
|
|
2890
2821
|
return possibleMessages;
|
|
2891
2822
|
}
|
|
2892
|
-
|
|
2893
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
|
|
2823
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
|
|
2894
2824
|
function convertTransactionEventToSpanJson(event) {
|
|
2895
2825
|
const { trace_id, parent_span_id, span_id, status, origin, data, op } = event.contexts?.trace ?? {};
|
|
2896
2826
|
return {
|
|
@@ -2932,16 +2862,14 @@ function convertSpanJsonToTransactionEvent(span) {
|
|
|
2932
2862
|
measurements: span.measurements
|
|
2933
2863
|
};
|
|
2934
2864
|
}
|
|
2935
|
-
|
|
2936
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/warnAboutIgnoredTransactionOptions.js
|
|
2865
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/warnAboutIgnoredTransactionOptions.js
|
|
2937
2866
|
function maybeWarnAboutIgnoredTransactionOptions(options) {
|
|
2938
2867
|
if (options.traceLifecycle !== "stream" || !(options.beforeSendTransaction || options.ignoreTransactions?.length)) return;
|
|
2939
2868
|
consoleSandbox(() => {
|
|
2940
2869
|
console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.");
|
|
2941
2870
|
});
|
|
2942
2871
|
}
|
|
2943
|
-
|
|
2944
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
|
|
2872
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
|
|
2945
2873
|
const DEFAULTS = {
|
|
2946
2874
|
userInfo: true,
|
|
2947
2875
|
cookies: true,
|
|
@@ -3005,8 +2933,7 @@ function resolveDataCollectionOptions(options) {
|
|
|
3005
2933
|
frameContextLines: dc.frameContextLines ?? DEFAULTS.frameContextLines
|
|
3006
2934
|
};
|
|
3007
2935
|
}
|
|
3008
|
-
|
|
3009
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/client.js
|
|
2936
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/client.js
|
|
3010
2937
|
const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured.";
|
|
3011
2938
|
const MISSING_RELEASE_FOR_SESSION_ERROR = "Discarded session because of missing or non-string release";
|
|
3012
2939
|
const INTERNAL_ERROR_SYMBOL = /* @__PURE__ */ Symbol.for("SentryInternalError");
|
|
@@ -3692,8 +3619,7 @@ function estimatePrimitiveSizeInBytes(value) {
|
|
|
3692
3619
|
else if (typeof value === "boolean") return 4;
|
|
3693
3620
|
return 0;
|
|
3694
3621
|
}
|
|
3695
|
-
|
|
3696
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/checkin.js
|
|
3622
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/checkin.js
|
|
3697
3623
|
function createCheckInEnvelope(checkIn, dynamicSamplingContext, metadata, tunnel, dsn) {
|
|
3698
3624
|
const headers = { sent_at: new Date(safeDateNow()).toISOString() };
|
|
3699
3625
|
if (metadata?.sdk) headers.sdk = {
|
|
@@ -3707,8 +3633,7 @@ function createCheckInEnvelope(checkIn, dynamicSamplingContext, metadata, tunnel
|
|
|
3707
3633
|
function createCheckInEnvelopeItem(checkIn) {
|
|
3708
3634
|
return [{ type: "check_in" }, checkIn];
|
|
3709
3635
|
}
|
|
3710
|
-
|
|
3711
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
|
|
3636
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
|
|
3712
3637
|
function parseStackFrames(stackParser, error) {
|
|
3713
3638
|
return stackParser(error.stack || "", 1);
|
|
3714
3639
|
}
|
|
@@ -3809,8 +3734,7 @@ function eventFromMessage(stackParser, message, level = "info", hint, attachStac
|
|
|
3809
3734
|
event.message = message;
|
|
3810
3735
|
return event;
|
|
3811
3736
|
}
|
|
3812
|
-
|
|
3813
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/transports/userAgent.js
|
|
3737
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/transports/userAgent.js
|
|
3814
3738
|
function addUserAgentToTransportHeaders(options) {
|
|
3815
3739
|
const sdkMetadata = options._metadata?.sdk;
|
|
3816
3740
|
const sdkUserAgent = sdkMetadata?.name && sdkMetadata?.version ? `${sdkMetadata?.name}/${sdkMetadata?.version}` : void 0;
|
|
@@ -3822,8 +3746,7 @@ function addUserAgentToTransportHeaders(options) {
|
|
|
3822
3746
|
}
|
|
3823
3747
|
};
|
|
3824
3748
|
}
|
|
3825
|
-
|
|
3826
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/server-runtime-client.js
|
|
3749
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/server-runtime-client.js
|
|
3827
3750
|
var ServerRuntimeClient = class extends Client {
|
|
3828
3751
|
/**
|
|
3829
3752
|
* Creates a new Edge SDK instance.
|
|
@@ -3964,8 +3887,7 @@ function setCurrentRequestSessionErroredOrCrashed(eventHint) {
|
|
|
3964
3887
|
else if (!isHandledException) requestSession.status = "crashed";
|
|
3965
3888
|
}
|
|
3966
3889
|
}
|
|
3967
|
-
|
|
3968
|
-
//#region ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/node-stack-trace.js
|
|
3890
|
+
// ../../node_modules/.pnpm/@sentry+core@11.2.0/node_modules/@sentry/core/build/esm/utils/node-stack-trace.js
|
|
3969
3891
|
function filenameIsInApp(filename, isNative = false) {
|
|
3970
3892
|
return !(isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//)) && filename !== void 0 && !filename.includes("node_modules/");
|
|
3971
3893
|
}
|
|
@@ -4042,8 +3964,7 @@ function _safeDecodeURI(filename) {
|
|
|
4042
3964
|
return;
|
|
4043
3965
|
}
|
|
4044
3966
|
}
|
|
4045
|
-
|
|
4046
|
-
//#region src/error_reporting.ts
|
|
3967
|
+
// src/error_reporting.ts
|
|
4047
3968
|
let dsn = "https://d2af98d872a47127826e36635023fcac@o1373725.ingest.us.sentry.io/4512222983290880";
|
|
4048
3969
|
/** Lets tests send to a local collector; the CLI itself always reports to sentry.io. */
|
|
4049
3970
|
const useErrorReportingDsnForTests = (testDsn) => {
|
|
@@ -4154,5 +4075,4 @@ const reportUnexpectedError = async (error, redact) => {
|
|
|
4154
4075
|
client.captureException(sanitizeError(error, redact), void 0, scope);
|
|
4155
4076
|
await client.flush(FLUSH_TIMEOUT_MS);
|
|
4156
4077
|
};
|
|
4157
|
-
//#endregion
|
|
4158
4078
|
export { packageRelativePath, reportUnexpectedError, useErrorReportingDsnForTests };
|