decord/source/913_moduleMetadataIntegration.js

39 lines
1.1 KiB
JavaScript
Raw Normal View History

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