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

Function makeDsn

packages/core/src/utils/dsn.ts:158–164  ·  view source on GitHub ↗
(from: DsnLike)

Source from the content-addressed store, hash-verified

156 * @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source
157 */
158export function makeDsn(from: DsnLike): DsnComponents | undefined {
159 const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);
160 if (!components || !validateDsn(components)) {
161 return undefined;
162 }
163 return components;
164}

Callers 9

api.test.tsFile · 0.90
tunnel.test.tsFile · 0.90
dsn.test.tsFile · 0.90
constructorFunction · 0.90
getReportDialogEndpointFunction · 0.90
handleTunnelRequestFunction · 0.90
startSentryTunnelMethod · 0.90
getSentryDSNFromEnvFunction · 0.90

Calls 3

dsnFromStringFunction · 0.85
dsnFromComponentsFunction · 0.85
validateDsnFunction · 0.85

Tested by

no test coverage detected