-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(node): Add new v7 http/s Transports #4781
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1st pass while I remember how node http API works lol
size-limit report 📦
|
packages/browser/src/backend.ts
Outdated
@@ -77,6 +77,11 @@ export class BrowserBackend extends BaseBackend<BrowserOptions> { | |||
this._newTransport = makeNewFetchTransport({ requestOptions, url }); | |||
return new FetchTransport(transportOptions); | |||
} | |||
|
|||
this._newTransport = makeNewXHRTransport({ | |||
url, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think it’s a bad rebase, we’ll need to fix this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, should be resolved now
8d17a98
to
22b0dba
Compare
22b0dba
to
53e0fc0
Compare
|
||
const SERIALIZED_EVENT_ENVELOPE = serializeEnvelope(EVENT_ENVELOPE); | ||
|
||
const unsafeHttpsModule: HTTPModule = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this unsafe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unsafe because of the rejectUnauthorized: false
option. CodeQL and Sonarlint are also complaining but since this is a test it should be fine.
7803fbf
to
339062c
Compare
This adds new http and https transports for using the new API discussed in #4660.
Fixes #2549 - we unify http and https in a single transport that differentiates based on the protocol that is used.
Ref: https://getsentry.atlassian.net/browse/WEB-728
Ref: https://getsentry.atlassian.net/browse/WEB-729