ghost 5.25.2 → 5.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/tryghost-adapter-manager-5.25.4.tgz +0 -0
- package/components/{tryghost-api-framework-5.25.2.tgz → tryghost-api-framework-5.25.4.tgz} +0 -0
- package/components/tryghost-api-version-compatibility-service-5.25.4.tgz +0 -0
- package/components/tryghost-audience-feedback-5.25.4.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.25.4.tgz +0 -0
- package/components/tryghost-constants-5.25.4.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.25.4.tgz +0 -0
- package/components/tryghost-data-generator-5.25.4.tgz +0 -0
- package/components/tryghost-domain-events-5.25.4.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.25.4.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.25.4.tgz +0 -0
- package/components/tryghost-email-content-generator-5.25.4.tgz +0 -0
- package/components/tryghost-email-events-5.25.4.tgz +0 -0
- package/components/tryghost-email-service-5.25.4.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.25.4.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.25.4.tgz +0 -0
- package/components/tryghost-extract-api-key-5.25.4.tgz +0 -0
- package/components/{tryghost-html-to-plaintext-5.25.2.tgz → tryghost-html-to-plaintext-5.25.4.tgz} +0 -0
- package/components/{tryghost-job-manager-5.25.2.tgz → tryghost-job-manager-5.25.4.tgz} +0 -0
- package/components/tryghost-link-redirects-5.25.4.tgz +0 -0
- package/components/tryghost-link-replacer-5.25.4.tgz +0 -0
- package/components/tryghost-link-tracking-5.25.4.tgz +0 -0
- package/components/tryghost-magic-link-5.25.4.tgz +0 -0
- package/components/tryghost-mailgun-client-5.25.4.tgz +0 -0
- package/components/tryghost-member-attribution-5.25.4.tgz +0 -0
- package/components/tryghost-member-events-5.25.4.tgz +0 -0
- package/components/tryghost-members-api-5.25.4.tgz +0 -0
- package/components/tryghost-members-csv-5.25.4.tgz +0 -0
- package/components/tryghost-members-events-service-5.25.4.tgz +0 -0
- package/components/tryghost-members-importer-5.25.4.tgz +0 -0
- package/components/tryghost-members-offers-5.25.4.tgz +0 -0
- package/components/tryghost-members-payments-5.25.4.tgz +0 -0
- package/components/tryghost-members-ssr-5.25.4.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.25.4.tgz +0 -0
- package/components/tryghost-minifier-5.25.4.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.25.4.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.25.4.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.25.4.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.25.4.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.25.4.tgz +0 -0
- package/components/tryghost-mw-vhost-5.25.4.tgz +0 -0
- package/components/tryghost-oembed-service-5.25.4.tgz +0 -0
- package/components/tryghost-package-json-5.25.4.tgz +0 -0
- package/components/tryghost-referrers-5.25.4.tgz +0 -0
- package/components/tryghost-security-5.25.4.tgz +0 -0
- package/components/{tryghost-session-service-5.25.2.tgz → tryghost-session-service-5.25.4.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.25.4.tgz +0 -0
- package/components/tryghost-staff-service-5.25.4.tgz +0 -0
- package/components/tryghost-stats-service-5.25.4.tgz +0 -0
- package/components/tryghost-tiers-5.25.4.tgz +0 -0
- package/components/tryghost-update-check-service-5.25.4.tgz +0 -0
- package/components/tryghost-verification-trigger-5.25.4.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.25.4.tgz +0 -0
- package/core/built/admin/assets/{chunk.143.e3d724fa11577e63b32d.js → chunk.143.c62201923eb26b9e05e6.js} +19 -19
- package/core/built/admin/assets/{chunk.178.0913ddc823ee7e281267.js → chunk.178.0a0a56a35334fe81feb9.js} +4 -4
- package/core/built/admin/assets/{chunk.507.37279ad3a2f6aeb82302.js → chunk.507.f7ed7e0b5ac069083e0c.js} +105 -104
- package/core/built/admin/assets/{chunk.613.a29fe5699dd5f7fb05f1.js → chunk.613.551c7c3e872b9a811863.js} +229 -227
- package/core/built/admin/assets/{chunk.613.a29fe5699dd5f7fb05f1.js.LICENSE.txt → chunk.613.551c7c3e872b9a811863.js.LICENSE.txt} +0 -0
- package/core/built/admin/assets/codemirror/{codemirror-1b460af155bb0ecaab9591678ac8c942.js → codemirror-a81c0653d8e57286b75c5a1792f80779.js} +1 -1
- package/core/built/admin/assets/{ghost-a66ff073d219101414fa7b344095c1ca.js → ghost-15f77300dbb6762873d6692e0485a37a.js} +316 -314
- package/core/built/admin/assets/{ghost-16dd31e7747e2dce6313f4362842b7b7.css → ghost-86cf21b24691d4fe9a73bcf84e5b36fe.css} +1 -1
- package/core/built/admin/assets/{ghost-dark-1117e1c672c39d594cdd1dfdf3d1c1ac.css → ghost-dark-2e0bf27a167574e0b2ca9dce1c9ec188.css} +1 -1
- package/core/built/admin/assets/simplemde/{simplemde-0cd04dbb388ed0cf571a6808464ea57e.js → simplemde-2885e4a40ed66fcae974595584efe50b.js} +1 -1
- package/core/built/admin/assets/{vendor-a767da2d0322ba6e801e0d719ccf5a26.js → vendor-0d29a566ca9747f2cfba9d7c98e39f53.js} +530 -525
- package/core/built/admin/index.html +5 -5
- package/core/cli/record-test.js +9 -26
- package/core/server/services/email-service/wrapper.js +2 -0
- package/core/server/services/email-suppression-list/MailgunEmailSuppressionList.js +10 -5
- package/core/server/services/mega/mega.js +0 -10
- package/core/server/services/mega/post-email-serializer.js +4 -3
- package/core/server/services/members/middleware.js +3 -2
- package/core/server/services/stripe/service.js +2 -1
- package/core/shared/config/defaults.json +1 -1
- package/core/shared/config/env/config.development.json +3 -0
- package/core/shared/config/env/config.testing-browser.json +58 -0
- package/core/shared/config/env/config.testing.json +0 -5
- package/core/shared/config/loader.js +1 -1
- package/core/shared/config/overrides.json +4 -3
- package/core/shared/sentry.js +1 -0
- package/package.json +112 -109
- package/yarn.lock +89 -56
- package/components/tryghost-adapter-manager-5.25.2.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.25.2.tgz +0 -0
- package/components/tryghost-audience-feedback-5.25.2.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.25.2.tgz +0 -0
- package/components/tryghost-constants-5.25.2.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.25.2.tgz +0 -0
- package/components/tryghost-data-generator-5.25.2.tgz +0 -0
- package/components/tryghost-domain-events-5.25.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.25.2.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.25.2.tgz +0 -0
- package/components/tryghost-email-content-generator-5.25.2.tgz +0 -0
- package/components/tryghost-email-events-5.25.2.tgz +0 -0
- package/components/tryghost-email-service-5.25.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.25.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.25.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.25.2.tgz +0 -0
- package/components/tryghost-link-redirects-5.25.2.tgz +0 -0
- package/components/tryghost-link-replacer-5.25.2.tgz +0 -0
- package/components/tryghost-link-tracking-5.25.2.tgz +0 -0
- package/components/tryghost-magic-link-5.25.2.tgz +0 -0
- package/components/tryghost-mailgun-client-5.25.2.tgz +0 -0
- package/components/tryghost-member-attribution-5.25.2.tgz +0 -0
- package/components/tryghost-member-events-5.25.2.tgz +0 -0
- package/components/tryghost-members-api-5.25.2.tgz +0 -0
- package/components/tryghost-members-csv-5.25.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.25.2.tgz +0 -0
- package/components/tryghost-members-importer-5.25.2.tgz +0 -0
- package/components/tryghost-members-offers-5.25.2.tgz +0 -0
- package/components/tryghost-members-payments-5.25.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.25.2.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.25.2.tgz +0 -0
- package/components/tryghost-minifier-5.25.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.25.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.25.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.25.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.25.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.25.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.25.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.25.2.tgz +0 -0
- package/components/tryghost-package-json-5.25.2.tgz +0 -0
- package/components/tryghost-referrers-5.25.2.tgz +0 -0
- package/components/tryghost-security-5.25.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.25.2.tgz +0 -0
- package/components/tryghost-staff-service-5.25.2.tgz +0 -0
- package/components/tryghost-stats-service-5.25.2.tgz +0 -0
- package/components/tryghost-tiers-5.25.2.tgz +0 -0
- package/components/tryghost-update-check-service-5.25.2.tgz +0 -0
- package/components/tryghost-verification-trigger-5.25.2.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.25.2.tgz +0 -0
|
@@ -33,13 +33,14 @@ this.spanRecorder=new d(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__
|
|
|
33
33
|
this._startIdleTimeout(t)}}_beat(){if(this._finished)return
|
|
34
34
|
const t=Object.keys(this.activities).join("")
|
|
35
35
|
t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function l(t){const e=t.getScope()
|
|
36
|
-
e&&e.getTransaction()&&e.setSpan(void 0)}},42507:(t,e,n)=>{n.r(e),n.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>
|
|
36
|
+
e&&e.getTransaction()&&e.setSpan(void 0)}},42507:(t,e,n)=>{n.r(e),n.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>at,BrowserTracing:()=>ot,IdleTransaction:()=>k.io,Integrations:()=>i,Span:()=>dt.Dr,SpanStatus:()=>_t,TRACEPARENT_REGEXP:()=>N.K,Transaction:()=>pt.Y,addExtensionMethods:()=>s.ro,defaultRequestInstrumentationOptions:()=>it,extractTraceparentData:()=>N.q,getActiveTransaction:()=>G.x1,hasTracingEnabled:()=>G.zu,instrumentOutgoingRequests:()=>st,spanStatusfromHttpCode:()=>dt.Zd,startIdleTransaction:()=>s.lb,stripUrlQueryAndFragment:()=>o.rt})
|
|
37
37
|
var i={}
|
|
38
|
-
n.r(i),n.d(i,{Apollo:()=>
|
|
38
|
+
n.r(i),n.d(i,{Apollo:()=>b,BrowserTracing:()=>ot,Express:()=>p,GraphQL:()=>R,Mongo:()=>S,Mysql:()=>T,Postgres:()=>f,Prisma:()=>v})
|
|
39
39
|
var s=n(38285),a=n(2796),r=n(88521),o=n(72702),c=n(14205),_=n(16140)
|
|
40
40
|
function d(t){const e=(0,a.x)([t,"call",t=>t(),"access",t=>t.getClient,"call",t=>t(),"optionalAccess",t=>t.getOptions,"call",t=>t()])
|
|
41
41
|
return"sentry"!==((0,a.x)([e,"optionalAccess",t=>t.instrumenter])||"sentry")}class p{static __initStatic(){this.id="Express"}__init(){this.name=p.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
42
|
-
p.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,e){this._router?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(t){
|
|
42
|
+
p.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,e){this._router?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
|
|
43
|
+
e.forEach((e=>h(t,e)))}(this._router,this._methods),function(t){const e="settings"in t
|
|
43
44
|
e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter()
|
|
44
45
|
const n=e?t._router:t
|
|
45
46
|
if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Routing instrumentation is currently only supported in Express 4."))
|
|
@@ -47,8 +48,8 @@ const i=Object.getPrototypeOf(n),s=i.process_params
|
|
|
47
48
|
i.process_params=function(t,e,n,i,r){n._reconstructedRoute||(n._reconstructedRoute="")
|
|
48
49
|
const{layerRoutePath:d,isRegex:p,isArray:l,numExtraSegments:u}=function(t){const e=(0,a.x)([t,"access",t=>t.route,"optionalAccess",t=>t.path]),n=(0,_.Kj)(e),i=Array.isArray(e)
|
|
49
50
|
if(!e)return{isRegex:n,isArray:i,numExtraSegments:0}
|
|
50
|
-
const s=i?Math.max(e.reduce(((t,e)=>t+(0,o.$A)(e.toString())),0)-(0,o.$A)(t.path||""),0):0
|
|
51
|
-
return{layerRoutePath:
|
|
51
|
+
const s=i?Math.max(e.reduce(((t,e)=>t+(0,o.$A)(e.toString())),0)-(0,o.$A)(t.path||""),0):0,r=function(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}(i,e)
|
|
52
|
+
return{layerRoutePath:r,isRegex:n,isArray:i,numExtraSegments:s}}(t);(d||p||l)&&(n._hasParameters=!0)
|
|
52
53
|
const h=(d||t.path||"").split("/").filter((t=>t.length>0&&(p||l||!t.includes("*")))).join("/")
|
|
53
54
|
if(h&&h.length>0&&(n._reconstructedRoute+=`/${h}${p?"/":""}`),(0,o.$A)(n.originalUrl||"")+u===(0,o.$A)(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl)
|
|
54
55
|
const t=i.__sentry_transaction
|
|
@@ -67,160 +68,160 @@ for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n]
|
|
|
67
68
|
r.call(this,...e)}))}
|
|
68
69
|
default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}function u(t,e){return t.map((t=>"function"==typeof t?l(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?l(t,e):t)):t))}function h(t,e){const n=t[e]
|
|
69
70
|
return t[e]=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s]
|
|
70
|
-
return n.call(this,...u(i,e))},t}
|
|
71
|
-
var
|
|
72
|
-
class
|
|
73
|
-
|
|
71
|
+
return n.call(this,...u(i,e))},t}p.__initStatic()
|
|
72
|
+
var m=n(30180),g=n(15834)
|
|
73
|
+
class f{static __initStatic(){this.id="Postgres"}__init(){this.name=f.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
74
|
+
f.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}setupOnce(t,e){const n=(0,m.$y)("pg")
|
|
74
75
|
if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to require `pg` package."))
|
|
75
76
|
if(d(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Postgres Integration is skipped because of instrumenter configuration."))
|
|
76
77
|
if(this._usePgNative&&!(0,a.x)([n,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to access 'pg-native' bindings."))
|
|
77
|
-
const{Client:i}=this._usePgNative?n.native:n;(0,
|
|
78
|
+
const{Client:i}=this._usePgNative?n.native:n;(0,g.hl)(i.prototype,"query",(function(t){return function(n,i,s){const r=e().getScope(),o=(0,a.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,a.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.text,op:"db"})])
|
|
78
79
|
if("function"==typeof s)return t.call(this,n,i,(function(t,e){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e)}))
|
|
79
80
|
if("function"==typeof i)return t.call(this,n,(function(t,e){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e)}))
|
|
80
81
|
const d=void 0!==i?t.call(this,n,i):t.call(this,n)
|
|
81
|
-
return(0,_.J8)(d)?d.then((t=>((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)}}))}}
|
|
82
|
-
class
|
|
83
|
-
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Mysql Integration is skipped because of instrumenter configuration."):(0,
|
|
84
|
-
return"function"==typeof s?t.call(this,n,i,(function(t,e,n){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e,n)})):"function"==typeof i?t.call(this,n,(function(t,e,n){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e,n)})):t.call(this,n,i,s)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Mysql Integration was unable to require `mysql` package.")}}
|
|
85
|
-
const
|
|
86
|
-
class
|
|
87
|
-
|
|
82
|
+
return(0,_.J8)(d)?d.then((t=>((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)}}))}}f.__initStatic()
|
|
83
|
+
class T{constructor(){T.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=T.id}setupOnce(t,e){const n=(0,m.$y)("mysql/lib/Connection.js")
|
|
84
|
+
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Mysql Integration is skipped because of instrumenter configuration."):(0,g.hl)(n,"createQuery",(function(t){return function(n,i,s){const r=e().getScope(),o=(0,a.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,a.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.sql,op:"db"})])
|
|
85
|
+
return"function"==typeof s?t.call(this,n,i,(function(t,e,n){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e,n)})):"function"==typeof i?t.call(this,n,(function(t,e,n){(0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e,n)})):t.call(this,n,i,s)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Mysql Integration was unable to require `mysql` package.")}}T.__initStatic()
|
|
86
|
+
const E=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],y={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]}
|
|
87
|
+
class S{static __initStatic(){this.id="Mongo"}__init(){this.name=S.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
88
|
+
S.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:E,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}setupOnce(t,e){const n=this._useMongoose?"mongoose":"mongodb",i=(0,m.$y)(n)
|
|
88
89
|
i?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Mongo Integration is skipped because of instrumenter configuration."):this._instrumentOperations(i.Collection,this._operations,e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Mongo Integration was unable to require \`${n}\` package.`)}_instrumentOperations(t,e,n){e.forEach((e=>this._patchOperation(t,e,n)))}_patchOperation(t,e,n){if(!(e in t.prototype))return
|
|
89
|
-
const i=this._getSpanContextFromOperationArguments.bind(this);(0,
|
|
90
|
+
const i=this._getSpanContextFromOperationArguments.bind(this);(0,g.hl)(t.prototype,e,(function(t){return function(){for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o]
|
|
90
91
|
const c=r[r.length-1],d=n().getScope(),p=(0,a.x)([d,"optionalAccess",t=>t.getSpan,"call",t=>t()])
|
|
91
92
|
if("function"!=typeof c||"mapReduce"===e&&2===r.length){const n=(0,a.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(i(this,e,r))]),s=t.call(this,...r)
|
|
92
93
|
return(0,_.J8)(s)?s.then((t=>((0,a.x)([n,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([n,"optionalAccess",t=>t.finish,"call",t=>t()]),s)}const l=(0,a.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(i(this,e,r.slice(0,-1)))])
|
|
93
|
-
return t.call(this,...r.slice(0,-1),(function(t,e){(0,a.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),c(t,e)}))}}))}_getSpanContextFromOperationArguments(t,e,n){const i={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},s={op:"db",description:e,data:i},a=
|
|
94
|
+
return t.call(this,...r.slice(0,-1),(function(t,e){(0,a.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),c(t,e)}))}}))}_getSpanContextFromOperationArguments(t,e,n){const i={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},s={op:"db",description:e,data:i},a=y[e],r=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations
|
|
94
95
|
if(!a||!r)return s
|
|
95
96
|
try{if("mapReduce"===e){const[t,e]=n
|
|
96
|
-
i[a[0]]="string"==typeof t?t:t.name||"<anonymous>",i[a[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<a.length;t++)i[a[t]]=JSON.stringify(n[t])}catch(t){}return s}}
|
|
97
|
-
class
|
|
97
|
+
i[a[0]]="string"==typeof t?t:t.name||"<anonymous>",i[a[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<a.length;t++)i[a[t]]=JSON.stringify(n[t])}catch(t){}return s}}S.__initStatic()
|
|
98
|
+
class v{static __initStatic(){this.id="Prisma"}__init(){this.name=v.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
98
99
|
var e
|
|
99
|
-
|
|
100
|
-
return(0,_.J8)(d)?d.then((t=>((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}
|
|
101
|
-
class
|
|
102
|
-
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("GraphQL Integration is skipped because of instrumenter configuration."):(0,
|
|
100
|
+
v.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Prisma Integration is skipped because of instrumenter configuration."):this._client.$use(((t,n)=>{const i=e().getScope(),s=(0,a.x)([i,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=t.action,o=t.model,c=(0,a.x)([s,"optionalAccess",t=>t.startChild,"call",t=>t({description:o?`${o} ${r}`:r,op:"db.sql.prisma"})]),d=n(t)
|
|
101
|
+
return(0,_.J8)(d)?d.then((t=>((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}v.__initStatic()
|
|
102
|
+
class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}setupOnce(t,e){const n=(0,m.$y)("graphql/execution/execute.js")
|
|
103
|
+
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("GraphQL Integration is skipped because of instrumenter configuration."):(0,g.hl)(n,"execute",(function(t){return function(){const n=e().getScope(),i=(0,a.x)([n,"optionalAccess",t=>t.getSpan,"call",t=>t()]),s=(0,a.x)([i,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"graphql.execute"})]);(0,a.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(s)])
|
|
103
104
|
for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c]
|
|
104
105
|
const d=t.call(this,...o)
|
|
105
|
-
return(0,_.J8)(d)?d.then((t=>((0,a.x)([s,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,a.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t))):((0,a.x)([s,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,a.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),d)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}
|
|
106
|
-
var
|
|
107
|
-
class
|
|
108
|
-
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Apollo Integration is skipped because of instrumenter configuration."):(0,
|
|
109
|
-
const n=(0,
|
|
110
|
-
return this.config.resolvers=n.map((t=>(Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((i=>{"function"==typeof t[n][i]&&function(t,e,n,i){(0,
|
|
106
|
+
return(0,_.J8)(d)?d.then((t=>((0,a.x)([s,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,a.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t))):((0,a.x)([s,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,a.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),d)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic()
|
|
107
|
+
var D=n(7209)
|
|
108
|
+
class b{constructor(){b.prototype.__init.call(this)}static __initStatic(){this.id="Apollo"}__init(){this.name=b.id}setupOnce(t,e){const n=(0,m.$y)("apollo-server-core")
|
|
109
|
+
n?d(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Apollo Integration is skipped because of instrumenter configuration."):(0,g.hl)(n.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){if(!this.config.resolvers)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this.config.schema?r.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property."):this.config.modules&&r.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),r.kg.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),t.call(this)
|
|
110
|
+
const n=(0,D.lE)(this.config.resolvers)
|
|
111
|
+
return this.config.resolvers=n.map((t=>(Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((i=>{"function"==typeof t[n][i]&&function(t,e,n,i){(0,g.hl)(t[e],n,(function(t){return function(){const s=i().getScope(),r=(0,a.x)([s,"optionalAccess",t=>t.getSpan,"call",t=>t()]),o=(0,a.x)([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${n}`,op:"graphql.resolve"})])
|
|
111
112
|
for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p]
|
|
112
113
|
const l=t.call(this,...d)
|
|
113
|
-
return(0,_.J8)(l)?l.then((t=>((0,a.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,n,i,e)}))})),t))),t.call(this)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Apollo Integration was unable to require apollo-server-core package.")}}
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
var
|
|
117
|
-
const
|
|
118
|
-
return a=>{e.value>=0&&(a||n)&&(s=e.value-(i||0),(s||void 0===i)&&(i=e.value,e.delta=s,t(e)))}},
|
|
114
|
+
return(0,_.J8)(l)?l.then((t=>((0,a.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,a.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,n,i,e)}))})),t))),t.call(this)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Apollo Integration was unable to require apollo-server-core package.")}}b.__initStatic()
|
|
115
|
+
var N=n(75492),x=n(22850),B=n(68256),k=n(27448),G=n(48206)
|
|
116
|
+
const U=n(27083).n2
|
|
117
|
+
var Y=n(4549),I=n(88468)
|
|
118
|
+
const A=(t,e,n)=>{let i,s
|
|
119
|
+
return a=>{e.value>=0&&(a||n)&&(s=e.value-(i||0),(s||void 0===i)&&(i=e.value,e.delta=s,t(e)))}},C=()=>U.__WEB_VITALS_POLYFILL__?U.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=U.performance.timing,e=U.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"}
|
|
119
120
|
for(const i in t)"navigationStart"!==i&&"toJSON"!==i&&(n[i]=Math.max(t[i]-t.navigationStart,0))
|
|
120
|
-
return n})()):
|
|
121
|
-
return t&&t.activationStart||0}
|
|
121
|
+
return n})()):U.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],O=()=>{const t=C()
|
|
122
|
+
return t&&t.activationStart||0},w=(t,e)=>{const n=C()
|
|
122
123
|
let i="navigate"
|
|
123
|
-
return n&&(i=
|
|
124
|
-
return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(t){}},
|
|
124
|
+
return n&&(i=U.document.prerendering||O()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},$=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver((t=>{e(t.getEntries())}))
|
|
125
|
+
return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(t){}},M=(t,e)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==U.document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
|
|
125
126
|
addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
function
|
|
130
|
-
return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...i})}function
|
|
131
|
-
function
|
|
132
|
-
const n
|
|
127
|
+
let L=-1
|
|
128
|
+
const P=()=>(L<0&&(L="hidden"!==U.document.visibilityState||U.document.prerendering?1/0:0,M((t=>{let{timeStamp:e}=t
|
|
129
|
+
L=e}),!0)),{get firstHiddenTime(){return L}}),q={}
|
|
130
|
+
function H(t){return"number"==typeof t&&isFinite(t)}function F(t,e){let{startTimestamp:n,...i}=e
|
|
131
|
+
return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...i})}function z(){return U&&U.addEventListener&&U.performance}let j,X,J=0,Q={}
|
|
132
|
+
function W(){!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
|
133
|
+
const n=w("CLS",0)
|
|
133
134
|
let i,s=0,a=[]
|
|
134
135
|
const r=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=a[0],r=a[a.length-1]
|
|
135
|
-
s&&0!==a.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,a.push(t)):(s=t.value,a=[t]),s>n.value&&(n.value=s,n.entries=a,i&&i())}}))},o
|
|
136
|
-
o&&(i=
|
|
137
|
-
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),
|
|
138
|
-
const n=
|
|
136
|
+
s&&0!==a.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,a.push(t)):(s=t.value,a=[t]),s>n.value&&(n.value=s,n.entries=a,i&&i())}}))},o=$("layout-shift",r)
|
|
137
|
+
o&&(i=A(t,n,e.reportAllChanges),M((()=>{r(o.takeRecords()),i(!0)})))}((t=>{const e=t.entries.pop()
|
|
138
|
+
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),Q.cls={value:t.value,unit:""},X=e)}))}function Z(t){!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
|
139
|
+
const n=P(),i=w("LCP")
|
|
139
140
|
let s
|
|
140
141
|
const a=t=>{const e=t[t.length-1]
|
|
141
|
-
if(e){const t=Math.max(e.startTime-
|
|
142
|
-
t<n.firstHiddenTime&&(i.value=t,i.entries=[e],s())}},r
|
|
143
|
-
if(r){s=
|
|
144
|
-
const n=()=>{
|
|
145
|
-
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP"),
|
|
146
|
-
const n=
|
|
142
|
+
if(e){const t=Math.max(e.startTime-O(),0)
|
|
143
|
+
t<n.firstHiddenTime&&(i.value=t,i.entries=[e],s())}},r=$("largest-contentful-paint",a)
|
|
144
|
+
if(r){s=A(t,i,e.reportAllChanges)
|
|
145
|
+
const n=()=>{q[i.id]||(a(r.takeRecords()),r.disconnect(),q[i.id]=!0,s(!0))};["keydown","click"].forEach((t=>{addEventListener(t,n,{once:!0,capture:!0})})),M(n,!0)}}((t=>{const e=t.entries.pop()
|
|
146
|
+
e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP"),Q.lcp={value:t.value,unit:"millisecond"},j=e)}),{reportAllChanges:t})}function K(){!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
|
147
|
+
const n=P(),i=w("FID")
|
|
147
148
|
let s
|
|
148
|
-
const a=t=>{t.startTime<n.firstHiddenTime&&(i.value=t.processingStart-t.startTime,i.entries.push(t),s(!0))},r=t=>{t.forEach(a)},o
|
|
149
|
-
s=
|
|
149
|
+
const a=t=>{t.startTime<n.firstHiddenTime&&(i.value=t.processingStart-t.startTime,i.entries.push(t),s(!0))},r=t=>{t.forEach(a)},o=$("first-input",r)
|
|
150
|
+
s=A(t,i,e.reportAllChanges),o&&M((()=>{r(o.takeRecords()),o.disconnect()}),!0)}((t=>{const e=t.entries.pop()
|
|
150
151
|
if(!e)return
|
|
151
|
-
const n=(0,
|
|
152
|
-
o&&r&&
|
|
153
|
-
const
|
|
154
|
-
function
|
|
155
|
-
e&&(0,
|
|
152
|
+
const n=(0,G.XL)(I.Z1),i=(0,G.XL)(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FID"),Q.fid={value:t.value,unit:"millisecond"},Q["mark.fid"]={value:n+i,unit:"second"}}))}function V(t,e,n,i,s,a){const r=a?e[a]:e[`${n}End`],o=e[`${n}Start`]
|
|
153
|
+
o&&r&&F(t,{op:"browser",description:(0,Y.h)(s,(()=>n)),startTimestamp:i+(0,G.XL)(o),endTimestamp:i+(0,G.XL)(r)})}var tt=n(8142),et=n(98902)
|
|
154
|
+
const nt=["localhost",/^\//],it={traceFetch:!0,traceXHR:!0,tracingOrigins:nt,tracePropagationTargets:nt}
|
|
155
|
+
function st(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:i,tracingOrigins:s,shouldCreateSpanForRequest:a}={traceFetch:it.traceFetch,traceXHR:it.traceXHR,...t},r="function"==typeof a?a:t=>!0,o=t=>function(t,e){return(0,et.U0)(t,e||nt)}(t,i||s),c={}
|
|
156
|
+
e&&(0,tt.o)("fetch",(t=>{!function(t,e,n,i){if(!(0,G.zu)()||!t.fetchData||!e(t.fetchData.url))return
|
|
156
157
|
if(t.endTimestamp){const e=t.fetchData.__span
|
|
157
158
|
if(!e)return
|
|
158
159
|
const n=i[e]
|
|
159
|
-
return void(n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus("internal_error"),n.finish(),delete i[e]))}const s=(0,
|
|
160
|
+
return void(n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus("internal_error"),n.finish(),delete i[e]))}const s=(0,G.x1)()
|
|
160
161
|
if(s){const e=s.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"})
|
|
161
162
|
t.fetchData.__span=e.spanId,i[e.spanId]=e
|
|
162
163
|
const a=t.args[0]
|
|
163
164
|
t.args[1]=t.args[1]||{}
|
|
164
165
|
const r=t.args[1]
|
|
165
|
-
n(t.fetchData.url)&&(r.headers=function(t,e,n,i){const s=(0,
|
|
166
|
+
n(t.fetchData.url)&&(r.headers=function(t,e,n,i){const s=(0,x.IQ)(e),a=n.toTraceparent(),r="undefined"!=typeof Request&&(0,_.V9)(t,Request)?t.headers:i.headers
|
|
166
167
|
if(r){if("undefined"!=typeof Headers&&(0,_.V9)(r,Headers)){const t=new Headers(r)
|
|
167
|
-
return t.append("sentry-trace",a),s&&t.append(
|
|
168
|
-
return s&&t.push([
|
|
169
|
-
return Array.isArray(t)?e.push(...t):t&&e.push(t),s&&e.push(s),{...r,"sentry-trace":a,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":a,baggage:s}}(a,s.getDynamicSamplingContext(),e,r),s.metadata.propagations++)}}(t,r,o,c)})),n&&(0,
|
|
168
|
+
return t.append("sentry-trace",a),s&&t.append(x.bU,s),t}if(Array.isArray(r)){const t=[...r,["sentry-trace",a]]
|
|
169
|
+
return s&&t.push([x.bU,s]),t}{const t="baggage"in r?r.baggage:void 0,e=[]
|
|
170
|
+
return Array.isArray(t)?e.push(...t):t&&e.push(t),s&&e.push(s),{...r,"sentry-trace":a,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":a,baggage:s}}(a,s.getDynamicSamplingContext(),e,r),s.metadata.propagations++)}}(t,r,o,c)})),n&&(0,tt.o)("xhr",(t=>{!function(t,e,n,i){if(!(0,G.zu)()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return
|
|
170
171
|
const s=t.xhr.__sentry_xhr__
|
|
171
172
|
if(t.endTimestamp){const e=t.xhr.__sentry_xhr_span_id__
|
|
172
173
|
if(!e)return
|
|
173
174
|
const n=i[e]
|
|
174
|
-
return void(n&&(n.setHttpStatus(s.status_code),n.finish(),delete i[e]))}const a=(0,
|
|
175
|
+
return void(n&&(n.setHttpStatus(s.status_code),n.finish(),delete i[e]))}const a=(0,G.x1)()
|
|
175
176
|
if(a){const e=a.startChild({data:{...s.data,type:"xhr",method:s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client"})
|
|
176
177
|
if(t.xhr.__sentry_xhr_span_id__=e.spanId,i[t.xhr.__sentry_xhr_span_id__]=e,t.xhr.setRequestHeader&&n(t.xhr.__sentry_xhr__.url))try{t.xhr.setRequestHeader("sentry-trace",e.toTraceparent())
|
|
177
|
-
const n=a.getDynamicSamplingContext(),i=(0,
|
|
178
|
-
i&&t.xhr.setRequestHeader(
|
|
179
|
-
if(!
|
|
180
|
-
let i,s=
|
|
181
|
-
e&&(i=t({name:
|
|
182
|
-
void 0===a&&s&&-1!==s.indexOf(n)?s=void 0:a!==n&&(s=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:
|
|
183
|
-
class
|
|
178
|
+
const n=a.getDynamicSamplingContext(),i=(0,x.IQ)(n)
|
|
179
|
+
i&&t.xhr.setRequestHeader(x.bU,i),a.metadata.propagations++}catch(t){}}}(t,r,o,c)}))}const at="BrowserTracing",rt={idleTimeout:k.nT,finalTimeout:k.mg,heartbeatInterval:k.hd,markBackgroundTransactions:!0,routingInstrumentation:function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
|
|
180
|
+
if(!U||!U.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not initialize routing instrumentation due to invalid location"))
|
|
181
|
+
let i,s=U.location.href
|
|
182
|
+
e&&(i=t({name:U.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,tt.o)("history",(e=>{let{to:n,from:a}=e
|
|
183
|
+
void 0===a&&s&&-1!==s.indexOf(n)?s=void 0:a!==n&&(s=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:U.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...it}
|
|
184
|
+
class ot{__init(){this.name=at}constructor(t){ot.prototype.__init.call(this),this.options={...rt,...t},t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins)
|
|
184
185
|
const{_metricOptions:e}=this.options
|
|
185
186
|
!function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
|
|
186
|
-
const e=
|
|
187
|
-
e&&
|
|
187
|
+
const e=z()
|
|
188
|
+
e&&I.Z1&&(e.mark&&U.performance.mark("sentry-tracing-init"),W(),Z(t),K())}(e&&e._reportAllChanges),(0,a.x)([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&$("longtask",(t=>{for(const e of t){const t=(0,G.x1)()
|
|
188
189
|
if(!t)return
|
|
189
|
-
const n=(0,
|
|
190
|
+
const n=(0,G.XL)(I.Z1+e.startTime),i=(0,G.XL)(e.duration)
|
|
190
191
|
t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+i})}}))}setupOnce(t,e){this._getCurrentHub=e
|
|
191
192
|
const{routingInstrumentation:n,startTransactionOnLocationChange:i,startTransactionOnPageLoad:s,markBackgroundTransactions:a,traceFetch:o,traceXHR:c,tracePropagationTargets:_,shouldCreateSpanForRequest:d}=this.options
|
|
192
|
-
n((t=>this._createRouteTransaction(t)),s,i),a&&(
|
|
193
|
-
if(
|
|
194
|
-
const{beforeNavigate:e,idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,o="pageload"===t.op,c=o?
|
|
193
|
+
n((t=>this._createRouteTransaction(t)),s,i),a&&(U&&U.document?U.document.addEventListener("visibilitychange",(()=>{const t=(0,G.x1)()
|
|
194
|
+
if(U.document.hidden&&t){const e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),st({traceFetch:o,traceXHR:c,tracePropagationTargets:_,shouldCreateSpanForRequest:d})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`))
|
|
195
|
+
const{beforeNavigate:e,idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,o="pageload"===t.op,c=o?ct("sentry-trace"):null,_=o?ct("baggage"):null,d=c?(0,N.q)(c):void 0,p=_?(0,x.EN)(_):void 0,l={...t,...d,metadata:{...t.metadata,dynamicSamplingContext:d&&!p?{}:p},trimEnd:!0},u="function"==typeof e?e(l):l,h=void 0===u?{...l,sampled:!1}:u
|
|
195
196
|
h.metadata=h.name!==l.name?{...h.metadata,source:"custom"}:h.metadata,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Will not send ${h.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Starting ${h.op} transaction on scope`)
|
|
196
|
-
const m=this._getCurrentHub(),{location:g}=
|
|
197
|
-
return f.registerBeforeFinishCallback((t=>{!function(t){const e=
|
|
198
|
-
if(!e||!
|
|
199
|
-
const n=(0,
|
|
197
|
+
const m=this._getCurrentHub(),{location:g}=U,f=(0,s.lb)(m,h,n,i,!0,{location:g},a)
|
|
198
|
+
return f.registerBeforeFinishCallback((t=>{!function(t){const e=z()
|
|
199
|
+
if(!e||!U.performance.getEntries||!I.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Adding & adjusting spans using Performance API")
|
|
200
|
+
const n=(0,G.XL)(I.Z1),i=e.getEntries()
|
|
200
201
|
let s,a
|
|
201
|
-
if(i.slice(
|
|
202
|
-
if(!("navigation"===t.op&&n+i<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{
|
|
202
|
+
if(i.slice(J).forEach((e=>{const i=(0,G.XL)(e.startTime),o=(0,G.XL)(e.duration)
|
|
203
|
+
if(!("navigation"===t.op&&n+i<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{V(t,e,i,n)})),V(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),V(t,e,"fetch",n,"cache","domainLookupStart"),V(t,e,"domainLookup",n,"DNS"),function(t,e,n){F(t,{op:"browser",description:"request",startTimestamp:n+(0,G.XL)(e.requestStart),endTimestamp:n+(0,G.XL)(e.responseEnd)}),F(t,{op:"browser",description:"response",startTimestamp:n+(0,G.XL)(e.responseStart),endTimestamp:n+(0,G.XL)(e.responseEnd)})}(t,e,n)}(t,e,n),s=n+(0,G.XL)(e.responseStart),a=n+(0,G.XL)(e.requestStart)
|
|
203
204
|
break
|
|
204
205
|
case"mark":case"paint":case"measure":{!function(t,e,n,i,s){const a=s+n,r=a+i
|
|
205
|
-
|
|
206
|
-
const s=
|
|
207
|
-
"first-paint"===e.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FP"),
|
|
208
|
-
break}case"resource":{const s=e.name.replace(
|
|
206
|
+
F(t,{description:e.name,endTimestamp:r,op:e.entryType,startTimestamp:a})}(t,e,i,o,n)
|
|
207
|
+
const s=P(),a=e.startTime<s.firstHiddenTime
|
|
208
|
+
"first-paint"===e.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FP"),Q.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FCP"),Q.fcp={value:e.startTime,unit:"millisecond"})
|
|
209
|
+
break}case"resource":{const s=e.name.replace(U.location.origin,"")
|
|
209
210
|
!function(t,e,n,i,s,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return
|
|
210
211
|
const r={}
|
|
211
212
|
"transferSize"in e&&(r["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(r["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(r["Decoded Body Size"]=e.decodedBodySize)
|
|
212
213
|
const o=a+i
|
|
213
|
-
|
|
214
|
-
break}}})),
|
|
214
|
+
F(t,{description:n,endTimestamp:o+s,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:o,data:r})}(t,e,s,i,o,n)
|
|
215
|
+
break}}})),J=Math.max(i.length-1,0),function(t){const e=U.navigator
|
|
215
216
|
if(!e)return
|
|
216
217
|
const n=e.connection
|
|
217
|
-
n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),
|
|
218
|
-
const i=
|
|
219
|
-
const e=
|
|
220
|
-
e&&
|
|
221
|
-
return e?e.getAttribute("content"):null}var dt
|
|
222
|
-
!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(
|
|
223
|
-
var
|
|
218
|
+
n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),H(n.rtt)&&(Q["connection.rtt"]={value:n.rtt,unit:"millisecond"})),H(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),H(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding TTFB"),Q.ttfb={value:1e3*(s-t.startTimestamp),unit:"millisecond"},"number"==typeof a&&a<=s&&(Q["ttfb.requestTime"]={value:1e3*(s-a),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(!Q[e]||n>=t.startTimestamp)return
|
|
219
|
+
const i=Q[e].value,s=n+(0,G.XL)(i),a=Math.abs(1e3*(s-t.startTimestamp)),o=a-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Measurements] Normalized ${e} from ${i} to ${a} (${o})`),Q[e].value=a}))
|
|
220
|
+
const e=Q["mark.fid"]
|
|
221
|
+
e&&Q.fid&&(F(t,{description:"first input delay",endTimestamp:e.value+(0,G.XL)(Q.fid.value),op:"ui.action",startTimestamp:e.value}),delete Q["mark.fid"]),"fcp"in Q||delete Q.cls,Object.keys(Q).forEach((e=>{t.setMeasurement(e,Q[e].value,Q[e].unit)})),function(t){j&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP Data"),j.element&&t.setTag("lcp.element",(0,B.Rt)(j.element)),j.id&&t.setTag("lcp.id",j.id),j.url&&t.setTag("lcp.url",j.url.trim().slice(0,200)),t.setTag("lcp.size",j.size)),X&&X.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS Data"),X.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,B.Rt)(e.node)))))}(t)}j=void 0,X=void 0,Q={}}(t)})),f}}function ct(t){const e=(0,B.qT)(`meta[name=${t}]`)
|
|
222
|
+
return e?e.getAttribute("content"):null}var _t,dt=n(20484)
|
|
223
|
+
!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(_t||(_t={}))
|
|
224
|
+
var pt=n(21535);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,s.ro)()},20484:(t,e,n)=>{n.d(e,{Dr:()=>_,Zd:()=>d,gB:()=>c})
|
|
224
225
|
var i=n(4549),s=n(7209),a=n(88468),r=n(88521),o=n(15834)
|
|
225
226
|
class c{__init(){this.spans=[]}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3
|
|
226
227
|
c.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class _{__init2(){this.traceId=(0,s.DM)()}__init3(){this.spanId=(0,s.DM)().substring(16)}__init4(){this.startTimestamp=(0,a._I)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(_.prototype.__init2.call(this),_.prototype.__init3.call(this),_.prototype.__init4.call(this),_.prototype.__init5.call(this),_.prototype.__init6.call(this),_.prototype.__init7.call(this),!t)return this
|
|
@@ -264,4 +265,4 @@ function s(t){const e=(0,i.Gd)().getClient(),n=t||e&&e.getOptions()
|
|
|
264
265
|
return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function a(t){const e=(t||(0,i.Gd)()).getScope()
|
|
265
266
|
return e&&e.getTransaction()}function r(t){return t/1e3}},4549:(t,e,n)=>{function i(t,e){return null!=t?t:e()}n.d(e,{h:()=>i})}}])
|
|
266
267
|
|
|
267
|
-
//# sourceMappingURL=chunk.507.
|
|
268
|
+
//# sourceMappingURL=chunk.507.f7ed7e0b5ac069083e0c.map
|