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

36 lines
809 B
JavaScript

// Metro module 884 (f885).
import { dsnToString } from "./dsnFromString";
import { createEnvelope } from "./forEachEnvelopeItem";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export function createLogContainerEnvelopeItem(a0) {
return [{
type: "log",
item_count: a0.length,
content_type: "application/vnd.sentry.items.log+json"
}, {
items: a0
}];
}
export function createLogEnvelope(a0, a1, a2, a3) {
const sdk = a1?.sdk;
const r5 = {};
if (sdk) {
r5.sdk = {
name: a1.sdk.name,
version: a1.sdk.version
};
}
if (a2 ? a3 : a2) {
r5.dsn = dsnToString(a3);
}
return createEnvelope(r5, [[{
type: "log",
item_count: a0.length,
content_type: "application/vnd.sentry.items.log+json"
}, {
items: a0
}]]);
}