Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,168 @@
|
||||
/* Metro module 1136; source: unknown; dependencies: [65, 826, 824, 1005] */
|
||||
function _fun12641(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:6, offset: 0x00dd15e3, size: 109 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const closure = getDefaultSidecarUrl;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(65) /* metro dependency 65 */;
|
||||
exports.spotlightIntegration = spotlightIntegration;
|
||||
exports.getDefaultSidecarUrl = closure;
|
||||
}
|
||||
|
||||
function getDefaultSidecarUrl() { // fn#12642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:143, offset: 0x00dd1650, size: 214 bytes, params: 1, frame: 17
|
||||
var r3;
|
||||
var r1;
|
||||
var r4;
|
||||
var r0;
|
||||
var value2;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var ReactNativeLibraries;
|
||||
var Devtools;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var devServer;
|
||||
var value7;
|
||||
var value8;
|
||||
var url;
|
||||
var binding;
|
||||
var match;
|
||||
var regexp;
|
||||
var value9;
|
||||
var value10;
|
||||
var error;
|
||||
let value = undefined;
|
||||
try {
|
||||
value2 = environment;
|
||||
property = dependencyMap[3];
|
||||
moduleValue = require(property);
|
||||
ReactNativeLibraries = moduleValue.ReactNativeLibraries;
|
||||
Devtools = ReactNativeLibraries.Devtools;
|
||||
value3 = null;
|
||||
value4 = value3 === Devtools;
|
||||
if (value4) {
|
||||
r3 = value;
|
||||
} else {
|
||||
value5 = value === Devtools;
|
||||
if (value5) {
|
||||
r3 = value;
|
||||
} else {
|
||||
devServer = Devtools.getDevServer();
|
||||
r3 = devServer;
|
||||
}
|
||||
}
|
||||
value7 = value3 === r3;
|
||||
if (value7) {
|
||||
r3 = {};
|
||||
} else {
|
||||
value8 = value !== r3;
|
||||
r3 = !value8 ? {} : r3;
|
||||
}
|
||||
url = r3.url;
|
||||
if (url) {
|
||||
match = url.match;
|
||||
regexp = RegExp('^(?:\\w+:)?\\/\\/([^/:]+)(:\\d+)?(.*)$', '');
|
||||
value9 = Reflect.apply(match, url, [regexp]);
|
||||
value10 = value3 == value9;
|
||||
if (value10) {
|
||||
r1 = value;
|
||||
} else {
|
||||
property = value9[1];
|
||||
r1 = property;
|
||||
}
|
||||
if (r1) {
|
||||
property = value9[1];
|
||||
r4 = property;
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
value = 'http://' + r4 + ':8969/stream';
|
||||
r0 = value;
|
||||
} else {
|
||||
binding = env0_3;
|
||||
r0 = binding;
|
||||
}
|
||||
} catch (error) {
|
||||
return env0_3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function spotlightIntegration() { // fn#12643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:521, offset: 0x00dd1726, size: 137 bytes, params: 1, frame: 15
|
||||
const sidecarUrl = (arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}).sidecarUrl;
|
||||
(require(826) /* metro dependency 826 */).debug.log('[Spotlight] Using Sidecar URL',
|
||||
sidecarUrl !== undefined ? sidecarUrl : getDefaultSidecarUrl());
|
||||
return {name: 'Spotlight', setupOnce: function() {
|
||||
}, setup: setup_12645};
|
||||
}
|
||||
|
||||
function spotlightIntegrationSetup(a0) { // fn#12645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:785, owner: spotlightIntegration.setup, offset: 0x00dd17af, size: 27 bytes, params: 2, frame: 13
|
||||
((a0, a1) => {
|
||||
_fun12647(a0, a1);
|
||||
})(a0, env0_0);
|
||||
}
|
||||
|
||||
function _setup(a0, a1) { // fn#12646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:804, owner: spotlightIntegration.setup._setup, offset: 0x00dd17ca, size: 23 bytes, params: 3, frame: 13
|
||||
((a0, a1) => {
|
||||
var env0_0 = a1;
|
||||
if (a0.on) {
|
||||
a0.on('beforeEnvelope', _fun12648);
|
||||
}
|
||||
})(a0, a1);
|
||||
}
|
||||
|
||||
function sendEnvelopesToSidecar(a0, a1) { // fn#12647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:826, owner: spotlightIntegration.setup._setup.sendEnvelopesToSidecar, offset: 0x00dd17e1, size: 50 bytes, params: 3, frame: 14
|
||||
const env0_0 = a1;
|
||||
if (a0.on) {
|
||||
a0.on('beforeEnvelope', _fun12648);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun12648(a0) { // fn#12648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:902, offset: 0x00dd1813, size: 230 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
var send;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const binding = env4_2;
|
||||
const value2 = binding(a0);
|
||||
const value3 = binding(a0[1]);
|
||||
value2[1] = value3.filter(function(a0) {
|
||||
return typeof a0[0].content_type !== 'string' || !a0[0].content_type.startsWith('image');
|
||||
});
|
||||
const stealthXhr = (require(824) /* metro dependency 824 */).createStealthXhr();
|
||||
if (stealthXhr) {
|
||||
stealthXhr.open('POST', require, true);
|
||||
stealthXhr.setRequestHeader('Content-Type', 'application/x-sentry-envelope');
|
||||
stealthXhr.onreadystatechange = onreadystatechange_12650;
|
||||
send = stealthXhr.send;
|
||||
value = require(826) /* metro dependency 826 */;
|
||||
Reflect.apply(send, stealthXhr, [value.serializeEnvelope(value2)]);
|
||||
} else {
|
||||
(require(826) /* metro dependency 826 */).debug.error('[Spotlight] Sentry SDK can not create XHR object');
|
||||
}
|
||||
}
|
||||
|
||||
function onreadystatechange_12650() { // fn#12650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1263:1190, offset: 0x00dd1934, size: 178 bytes, params: 1, frame: 16
|
||||
var status;
|
||||
var debug;
|
||||
var error;
|
||||
var Error;
|
||||
var statusText;
|
||||
const readyState = env0_0.readyState;
|
||||
const XHR_READYSTATE_DONE = (require(824) /* metro dependency 824 */).XHR_READYSTATE_DONE;
|
||||
if (readyState === XHR_READYSTATE_DONE) {
|
||||
status = env0_0.status;
|
||||
if (!(status === 0 || status >= 200 && status < 400)) {
|
||||
debug = (require(826) /* metro dependency 826 */).debug;
|
||||
error = debug.error;
|
||||
Error = global.Error;
|
||||
statusText = env0_0.statusText;
|
||||
Reflect.apply(error, debug,
|
||||
["[Spotlight] Sentry SDK can't connect to Spotlight is it running? See https://spotlightjs.com to download it.",
|
||||
|
||||
|
||||
new Error()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user