Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
81 lines
2.7 KiB
JavaScript
81 lines
2.7 KiB
JavaScript
// Module ID: 12922
|
|
// Function ID: 12923
|
|
// Dependencies: [12883, 12871, 12906, 12830]
|
|
|
|
// Module 12922
|
|
import stackParserFromStackParserOptions from "stackParserFromStackParserOptions" /* 12830 */;
|
|
import setupIntegration from "module_12883" /* 12883 */;
|
|
|
|
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;
|
|
}
|
|
};
|
|
});
|