Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339664
backend.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
backend.js
View Options
import
{
__assign
,
__extends
}
from
"tslib"
;
import
{
BaseBackend
}
from
'@sentry/core'
;
import
{
Severity
}
from
'@sentry/types'
;
import
{
supportsFetch
}
from
'@sentry/utils'
;
import
{
eventFromException
,
eventFromMessage
}
from
'./eventbuilder'
;
import
{
FetchTransport
,
XHRTransport
}
from
'./transports'
;
/**
* The Sentry Browser SDK Backend.
* @hidden
*/
var
BrowserBackend
=
/** @class */
(
function
(
_super
)
{
__extends
(
BrowserBackend
,
_super
);
function
BrowserBackend
()
{
return
_super
!==
null
&&
_super
.
apply
(
this
,
arguments
)
||
this
;
}
/**
* @inheritDoc
*/
BrowserBackend
.
prototype
.
eventFromException
=
function
(
exception
,
hint
)
{
return
eventFromException
(
this
.
_options
,
exception
,
hint
);
};
/**
* @inheritDoc
*/
BrowserBackend
.
prototype
.
eventFromMessage
=
function
(
message
,
level
,
hint
)
{
if
(
level
===
void
0
)
{
level
=
Severity
.
Info
;
}
return
eventFromMessage
(
this
.
_options
,
message
,
level
,
hint
);
};
/**
* @inheritDoc
*/
BrowserBackend
.
prototype
.
_setupTransport
=
function
()
{
if
(
!
this
.
_options
.
dsn
)
{
// We return the noop transport here in case there is no Dsn.
return
_super
.
prototype
.
_setupTransport
.
call
(
this
);
}
var
transportOptions
=
__assign
(
__assign
({},
this
.
_options
.
transportOptions
),
{
dsn
:
this
.
_options
.
dsn
,
tunnel
:
this
.
_options
.
tunnel
,
sendClientReports
:
this
.
_options
.
sendClientReports
,
_metadata
:
this
.
_options
.
_metadata
});
if
(
this
.
_options
.
transport
)
{
return
new
this
.
_options
.
transport
(
transportOptions
);
}
if
(
supportsFetch
())
{
return
new
FetchTransport
(
transportOptions
);
}
return
new
XHRTransport
(
transportOptions
);
};
return
BrowserBackend
;
}(
BaseBackend
));
export
{
BrowserBackend
};
//# sourceMappingURL=backend.js.map
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Jul 4 2025, 9:50 AM (5 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3369590
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment