93 lines
4.3 KiB
React
93 lines
4.3 KiB
React
/* Metro module 7464; source: unknown; dependencies: [7425, 7413, 7448, 7372] */
|
|
function _fun60190(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:6, offset: 0x016fddde, size: 98 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = require(7425) /* metro dependency 7425 */;
|
|
value = value.defineIntegration(function(a0) {
|
|
var env0_0 = a0;
|
|
return {name: 'ThirdPartyErrorsFilter', setup: _fun60192, processEvent: _fun60196};
|
|
});
|
|
exports.thirdPartyErrorFilterIntegration = value;
|
|
}
|
|
|
|
function _fun60191(a0) { // fn#60191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:112, offset: 0x016fde40, size: 43 bytes, params: 2, frame: 3
|
|
let env0_0 = a0;
|
|
return {name: 'ThirdPartyErrorsFilter', setup: function(a0) {
|
|
var env0_0 = a0;
|
|
a0.on('beforeEnvelope', _fun60193);
|
|
a0.on('applyFrameMetadata', _fun60195);
|
|
}, processEvent: processEvent_60196};
|
|
}
|
|
|
|
function setup_60192(a0) { // fn#60192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:167, offset: 0x016fde6b, size: 59 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
a0.on('beforeEnvelope', _fun60193);
|
|
a0.on('applyFrameMetadata', _fun60195);
|
|
}
|
|
|
|
function processEvent_60196(a0) { // fn#60196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:515, offset: 0x016fded7, size: 174 bytes, params: 2, frame: 18
|
|
var behaviour;
|
|
var Object;
|
|
const value = processEvent_60196GetBundleKeysForAllFramesWithFilenames(a0);
|
|
if (value) {
|
|
behaviour = env0_0.behaviour;
|
|
if (value[behaviour === 'drop-error-if-contains-third-party-frames' ? 'some' : env0_0.behaviour !== 'apply-tag-if-contains-third-party-frames' ? 'every' : 'some'](function(a0) {
|
|
return !a0.some(_fun60203);
|
|
})) {
|
|
behaviour = env0_0.behaviour;
|
|
if (behaviour === 'drop-error-if-contains-third-party-frames') {
|
|
return null;
|
|
}
|
|
behaviour = env0_0.behaviour;
|
|
if (behaviour === 'drop-error-if-exclusively-contains-third-party-frames') {
|
|
return null;
|
|
}
|
|
Object = global.Object;
|
|
a0.tags = Object.assign({}, a0.tags, {third_party_code: true});
|
|
return a0;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _fun60193(a0) { // fn#60193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:208, offset: 0x016fdea6, size: 49 bytes, params: 2, frame: 14
|
|
var environment;
|
|
const value = environment.__proto__.__proto__;
|
|
(require(7413) /* metro dependency 7413 */).forEachEnvelopeItem(a0, _fun60194);
|
|
}
|
|
|
|
function processEvent_60196GetBundleKeysForAllFramesWithFilenames(a0) { // fn#60197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:546, owner: processEvent_60196.getBundleKeysForAllFramesWithFilenames, offset: 0x016fdf85, size: 78 bytes, params: 2, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(7372) /* metro dependency 7372 */;
|
|
value = value.getFramesFromEvent(a0);
|
|
if (value) {
|
|
value = value.filter(function(a0) {
|
|
return !!a0.filename;
|
|
});
|
|
return value.map(_fun60199);
|
|
}
|
|
}
|
|
|
|
function _fun60202(a0) { // fn#60202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:1012, offset: 0x016fe030, size: 26 bytes, params: 2, frame: 11
|
|
return !a0.some(_fun60203);
|
|
}
|
|
|
|
function _fun60199(a0) { // fn#60199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7642:702, offset: 0x016fdfe4, size: 76 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var Object;
|
|
var value;
|
|
if (a0.module_metadata) {
|
|
Object = global.Object;
|
|
value = Object.keys(a0.module_metadata);
|
|
value = value.filter(_fun60200);
|
|
value = value.map(_fun60201);
|
|
r0 = value;
|
|
} else {
|
|
r0 = [];
|
|
}
|
|
return r0;
|
|
}
|
|
|