Files
discord-decomp/_bundle/Module913.js
T
2026-11-01 12:12:55 +02:00

30 lines
907 B
JavaScript

// Metro module 913 (f914).
import { defineIntegration } from "./setupIntegration";
import { forEachEnvelopeItem } from "./forEachEnvelopeItem";
import { stripMetadataFromStackFrames, addMetadataToStackFrames } from "./Module914";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export const moduleMetadataIntegration = defineIntegration(() => ({
name: "ModuleMetadata",
setup: (a0) => {
let c23901_0 = a0;
a0.on("beforeEnvelope", (a0) => {
forEachEnvelopeItem(a0, (a0, a1) => {
if (a1 === "event") {
const r10 = Array.isArray(a0) ? a0[1] : void 0;
if (r10) {
stripMetadataFromStackFrames(r10);
a0[1] = r10;
}
}
});
});
a0.on("applyFrameMetadata", (a0) => {
if (!a0.type) {
addMetadataToStackFrames(c23901_0.getOptions().stackParser, a0);
}
});
}
}));