MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / constructor

Method constructor

scripts/new-relic.runtime.js:3786–4044  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3784 class rt extends y {
3785 static featureName = $e.TZ
3786 constructor(e) {
3787 super(e, $e.TZ)
3788 const r = e.init.feature_flags.includes('websockets'),
3789 n = [
3790 e.init.page_action.enabled,
3791 e.init.performance.capture_marks,
3792 e.init.performance.capture_measures,
3793 e.init.performance.resources.enabled,
3794 e.init.user_actions.enabled,
3795 r,
3796 ]
3797 var d
3798 let u, l
3799 if (
3800 ((d = e),
3801 (0, c.Y)(a.hG, (e, t) => F(e, t, d), d),
3802 (function (e) {
3803 ;(0, c.Y)(a.fF, (t, r) => G(t, r, e), e)
3804 })(e),
3805 Me(e),
3806 Q(e),
3807 (function (e) {
3808 ;(0, c.Y)(a.V1, (t, r) => V(t, r, e), e)
3809 })(e),
3810 r &&
3811 (l = (function (e) {
3812 if (!(0, T.dV)().o.WS) return e
3813 const t = e.get('websockets')
3814 if (Je[t.debugId]++) return t
3815 ;(Je[t.debugId] = 1),
3816 (0, x.G)(() => {
3817 const e = (0, o.t)()
3818 Qe.forEach((r) => {
3819 ;(r.nrData.closedAt = e),
3820 (r.nrData.closeCode = 1001),
3821 (r.nrData.closeReason = 'Page navigating away'),
3822 (r.nrData.closeWasClean = !1),
3823 r.nrData.openedAt &&
3824 (r.nrData.connectedDuration = e - r.nrData.openedAt),
3825 t.emit('ws', [r.nrData], r)
3826 })
3827 })
3828 class r extends WebSocket {
3829 static name = 'WebSocket'
3830 static toString() {
3831 return 'function WebSocket() { [native code] }'
3832 }
3833 toString() {
3834 return '[object WebSocket]'
3835 }
3836 get [Symbol.toStringTag]() {
3837 return r.name
3838 }
3839 #o(e) {
3840 ;((e.__newrelic ??= {}).socketId = this.nrData.socketId),
3841 (this.nrData.hasErrors ??= !0)
3842 }
3843 constructor(...e) {

Callers

nothing calls this directly

Calls 14

FFunction · 0.85
GFunction · 0.85
MeFunction · 0.85
QFunction · 0.85
VFunction · 0.85
beFunction · 0.85
leFunction · 0.85
jeFunction · 0.85
hFunction · 0.85
xeFunction · 0.85
addEventListenerMethod · 0.80
importAggregatorMethod · 0.80

Tested by

no test coverage detected