MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / dsnFromComponents

Function dsnFromComponents

packages/core/src/utils/dsn.ts:71–81  ·  view source on GitHub ↗
(components: DsnComponents)

Source from the content-addressed store, hash-verified

69}
70
71function dsnFromComponents(components: DsnComponents): DsnComponents {
72 return {
73 protocol: components.protocol,
74 publicKey: components.publicKey || '',
75 pass: components.pass || '',
76 host: components.host,
77 port: components.port || '',
78 path: components.path || '',
79 projectId: components.projectId,
80 };
81}
82
83function validateDsn(dsn: DsnComponents): boolean {
84 if (!DEBUG_BUILD) {

Callers 2

dsnFromStringFunction · 0.85
makeDsnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected