decord/source/__polyfill/13xxx/module_13021.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

81 lines
2.7 KiB
JavaScript

// Module ID: 13021
// Function ID: 13022
// Dependencies: [12982, 12970, 13005, 12929]
// Module 13021
import stackParserFromStackParserOptions from "stackParserFromStackParserOptions" /* 12929 */;
import setupIntegration from "module_12982" /* 12982 */;
let c2 = "_sentryBundlerPluginAppKey:";
export const thirdPartyErrorFilterIntegration = setupIntegration.defineIntegration((arg0) => {
const behaviour = arg0;
return {
name: "ThirdPartyErrorsFilter",
setup(on) {
const options = on;
on.on("beforeEnvelope", (arg0) => {
options(closure_1_1[1]).forEachEnvelopeItem(arg0, (arg0, arg1) => {
if ("event" === arg1) {
const _Array = Array;
let tmp3;
if (Array.isArray(arg0)) {
tmp3 = arg0[1];
}
if (tmp3) {
const result = options(dependencyMap[2]).stripMetadataFromStackFrames(tmp3);
arg0[1] = tmp3;
const obj = options(dependencyMap[2]);
}
}
});
});
on.on("applyFrameMetadata", (type) => {
if (!type.type) {
const result = options(dependencyMap[2]).addMetadataToStackFrames(options.getOptions().stackParser, type);
const obj = options(dependencyMap[2]);
}
});
},
processEvent(tags) {
const framesFromEvent = stackParserFromStackParserOptions.getFramesFromEvent(tags);
let mapped;
if (framesFromEvent) {
let found = framesFromEvent.filter((filename) => filename.filename);
mapped = found.map((module_metadata) => {
if (module_metadata.module_metadata) {
const _Object = Object;
const keys = Object.keys(module_metadata.module_metadata);
const found = keys.filter((item) => item.startsWith(length));
let mapped = found.map((arr) => arr.slice(length.length));
} else {
mapped = [];
}
return mapped;
});
}
if (mapped) {
if ("drop-error-if-contains-third-party-frames" === behaviour.behaviour) {
let str2 = "some";
} else {
str2 = "every";
}
if (mapped[str2]((arr) => !arr.some((item) => {
filterKeys = filterKeys.filterKeys;
return filterKeys.includes(item);
}))) {
if ("drop-error-if-contains-third-party-frames" !== tmp2.behaviour) {
if ("drop-error-if-exclusively-contains-third-party-frames" !== tmp2.behaviour) {
const obj2 = {};
const merged = Object.assign(tags.tags);
obj2.third_party_code = true;
tags.tags = obj2;
}
}
return null;
}
}
return tags;
}
};
});