2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 1060
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 11326
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: weakMap
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [794]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 1060 (weakMap)
|
2026-07-23 10:11:24 +00:00
|
|
|
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
|
|
const weakMap = new WeakMap();
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
export const reportingObserverIntegration = registerSpanErrorInstrumentation.defineIntegration(function _reportingObserverIntegration() {
|
2026-07-20 16:05:17 +00:00
|
|
|
function handler(items) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (outer1_2.has(obj.getClient())) {
|
2026-07-20 16:05:17 +00:00
|
|
|
function _loop(item10015) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback = item10015;
|
|
|
|
|
callback(handler[0]).withScope((setExtra) => {
|
|
|
|
|
setExtra.setExtra("url", item10015.url);
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = "No details available";
|
2026-07-23 10:11:24 +00:00
|
|
|
const combined = "ReportingObserver [" + item10015.type + "]";
|
|
|
|
|
if (item10015.body) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj = {};
|
|
|
|
|
for (const key10020 in closure_0.body) {
|
|
|
|
|
let tmp12 = key10020;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp13 = item10015;
|
|
|
|
|
obj[key10020] = item10015.body[key10020];
|
|
|
|
|
continue;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
setExtra.setExtra("body", obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
if ("crash" === item10015.type) {
|
|
|
|
|
const body = item10015.body;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [body.crashId || "", body.reason || ""];
|
|
|
|
|
const str5 = items.join(" ");
|
|
|
|
|
const tmp9 = body.crashId || "";
|
|
|
|
|
str = items.join(" ").trim() || "No details available";
|
|
|
|
|
const tmp10 = items.join(" ").trim() || "No details available";
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
str = item10015.body.message || "No details available";
|
|
|
|
|
const tmp7 = item10015.body.message || "No details available";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
item10015(handler[0]).captureMessage("" + combined + ": " + str);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
for (const item10015 of arg0) {
|
|
|
|
|
let tmp2 = _loop;
|
|
|
|
|
let _loopResult = _loop(item10015);
|
2026-07-23 10:11:24 +00:00
|
|
|
continue;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (arguments.length > 0) {
|
|
|
|
|
if (undefined !== arguments[0]) {
|
|
|
|
|
const first = arguments[0];
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = {}.types || ["crash", "deprecation", "intervention"];
|
|
|
|
|
let obj = {
|
2026-07-20 16:05:17 +00:00
|
|
|
name: "ReportingObserver",
|
|
|
|
|
setupOnce() {
|
|
|
|
|
let obj = callback(handler[0]);
|
|
|
|
|
if (obj.supportsReportingObserver()) {
|
|
|
|
|
const ReportingObserver = callback(handler[0]).GLOBAL_OBJ.ReportingObserver;
|
|
|
|
|
obj = { buffered: true, types: callback };
|
|
|
|
|
const prototype = ReportingObserver.prototype;
|
|
|
|
|
const reportingObserver = new ReportingObserver(handler, obj);
|
|
|
|
|
reportingObserver.observe();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setup(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = outer1_2.set(arg0, true);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
});
|