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

Function be

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

Source from the content-addressed store, hash-verified

2891 ve = 'prototype'
2892 const ye = {}
2893 function be(e) {
2894 const t = (function (e) {
2895 return (e || ae.ee).get('fetch')
2896 })(e)
2897 if (!(ge && me && f.gm.fetch)) return t
2898 if (ye[t.debugId]++) return t
2899 function r(e, r, n) {
2900 var i = e[r]
2901 'function' == typeof i &&
2902 (e[r] = function () {
2903 var e,
2904 r = [...arguments],
2905 s = {}
2906 t.emit(n + 'before-start', [r], s),
2907 s[ae.P] && s[ae.P].dt && (e = s[ae.P].dt)
2908 var o = i.apply(this, r)
2909 return (
2910 t.emit(n + 'start', [r, e], o),
2911 o.then(
2912 function (e) {
2913 return t.emit(n + 'end', [null, e], o), e
2914 },
2915 function (e) {
2916 throw (t.emit(n + 'end', [e], o), e)
2917 }
2918 )
2919 )
2920 })
2921 }
2922 return (
2923 (ye[t.debugId] = 1),
2924 pe.forEach((e) => {
2925 r(ge[ve], e, he), r(me[ve], e, he)
2926 }),
2927 r(f.gm, 'fetch', fe),
2928 t.on(fe + 'end', function (e, r) {
2929 var n = this
2930 if (r) {
2931 var i = r.headers.get('content-length')
2932 null !== i && (n.rxSize = i), t.emit(fe + 'done', [null, r], n)
2933 } else t.emit(fe + 'done', [e], n)
2934 }),
2935 t
2936 )
2937 }
2938 var we = i(7485),
2939 Re = i(9566)
2940 class Ee {

Callers 2

constructorMethod · 0.85
constructorMethod · 0.85

Calls 2

rFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected