decord/source/913_moduleMetadataIntegration.js
2026-08-24 06:08:38 +00:00

38 lines
1.1 KiB
JavaScript

// Module ID: 913
// Function ID: 914
// Name: moduleMetadataIntegration
// Dependencies: [887, 864, 914]
// Module 913 (moduleMetadataIntegration)
import setupIntegration from "setupIntegration" /* 887 */;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
export const moduleMetadataIntegration = setupIntegration.defineIntegration(() => ({
name: "ModuleMetadata",
setup(on) {
closure_0 = on;
on.on("beforeEnvelope", (arg0) => {
options(table[1]).forEachEnvelopeItem(arg0, (arg0, arg1) => {
if ("event" === arg1) {
const _Array = Array;
let tmp3;
if (Array.isArray(arg0)) {
tmp3 = arg0[1];
}
if (tmp3) {
const result = callback(table[2]).stripMetadataFromStackFrames(tmp3);
arg0[1] = tmp3;
const obj = callback(table[2]);
}
}
});
});
on.on("applyFrameMetadata", (type) => {
if (!type.type) {
const result = options(closure_1_1[2]).addMetadataToStackFrames(options.getOptions().stackParser, type);
const obj = options(closure_1_1[2]);
}
});
}
}));