Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(browser): Extract getReportDialogEndpoint from API class #4274

Merged
merged 7 commits into from
Dec 14, 2021

Conversation

AbhiPrasad
Copy link
Member

Although this is a public API, we can extract it from the API class as it should only be used by browser. Electron and React Native are not using this field.

Although this is a public API, we can extract it from the API class as
it should only be used by browser.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2021

size-limit report

Path Base Size (626102f) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 22.45 KB 22.44 KB -0.02% 🔽
@sentry/browser - Webpack 23.29 KB 23.29 KB +0.01% 🔺
@sentry/browser - Webpack - gzip = false 82.73 KB 82.62 KB -0.14% 🔽
@sentry/react - Webpack 23.32 KB 23.32 KB 0%
@sentry/nextjs Client - Webpack 48.07 KB 48.03 KB -0.09% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.98 KB 29.96 KB -0.07% 🔽

Comment on lines -134 to -138
if (encodedOptions.length) {
return `${endpoint}?${encodedOptions.join('&')}`;
}

return endpoint;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this logic because encodedOptions.push(dsn=${dsn.toString()}); meant that the return endpoint; would never be hit

@AbhiPrasad AbhiPrasad marked this pull request as ready for review December 14, 2021 02:04
@AbhiPrasad AbhiPrasad requested a review from mitsuhiko December 14, 2021 02:04
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) December 14, 2021 13:55
@AbhiPrasad AbhiPrasad merged commit aa56d1b into master Dec 14, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-api-reportdialog branch December 14, 2021 14:08
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
Although this is a public API, we can extract it from the API class as
it should only be used by browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants