70 lines
2.7 KiB
React
70 lines
2.7 KiB
React
/* Metro module 1099; source: unknown; dependencies: [1036] */
|
|
function _fun12291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1226:6, offset: 0x00dc5dc9, size: 111 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.baggageHeaderHasSentryValues = function(a0) {
|
|
return a0.split(',').some(_fun12293);
|
|
};
|
|
exports.createHeadersSafely = function(a0) {
|
|
var Headers;
|
|
var prototype;
|
|
var value;
|
|
var value2;
|
|
var error;
|
|
try {
|
|
Headers = global.Headers;
|
|
prototype = Headers.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Headers}});
|
|
value2 = new Headers(a0);
|
|
value = value2 instanceof Object ? value2 : value;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
return value;
|
|
};
|
|
exports.getFullURL = getFullURL;
|
|
exports.isPerformanceResourceTiming = function(a0) {
|
|
return a0.entryType === 'resource' && 'initiatorType' in a0 && typeof a0.nextHopProtocol === 'string' && (a0.initiatorType === 'fetch' || a0.initiatorType === 'xmlhttprequest');
|
|
};
|
|
}
|
|
|
|
function baggageHeaderHasSentryValues(a0) { // fn#12292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1226:122, offset: 0x00dc5e38, size: 37 bytes, params: 2, frame: 11
|
|
return a0.split(',').some(function(a0) {
|
|
return a0.trim().startsWith('sentry-');
|
|
});
|
|
}
|
|
|
|
function getFullURL(a0) { // fn#12295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1226:354, offset: 0x00dc5ea7, size: 92 bytes, params: 2, frame: 14
|
|
var URL;
|
|
var value;
|
|
var property;
|
|
var WINDOW;
|
|
var location;
|
|
var origin;
|
|
var prototype;
|
|
var uRL;
|
|
var href;
|
|
var error;
|
|
try {
|
|
URL = global.URL;
|
|
value = environment;
|
|
property = dependencyMap[0];
|
|
value = require(property);
|
|
WINDOW = value.WINDOW;
|
|
location = WINDOW.location;
|
|
origin = location.origin;
|
|
prototype = URL.prototype;
|
|
value = Object.create(prototype, {constructor: {value: URL}});
|
|
uRL = new URL(a0);
|
|
value = uRL instanceof Object ? uRL : value;
|
|
href = value.href;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
return href;
|
|
}
|
|
|