85 lines
4.9 KiB
React
85 lines
4.9 KiB
React
/* Metro module 7477; source: unknown; dependencies: [7396, 7417, 7442] */
|
|
function _fun60309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:6, offset: 0x0170107c, size: 72 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const closure = getCurrentHub;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.getCurrentHub = closure;
|
|
exports.getCurrentHubShim = closure;
|
|
}
|
|
|
|
function getCurrentHub() { // fn#60310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:30, offset: 0x017010c4, size: 351 bytes, params: 1, frame: 15
|
|
const object2 = {bindClient: bindClient};
|
|
object2.withScope = (require(7396) /* metro dependency 7396 */).withScope;
|
|
object2.getClient = getClient_60312;
|
|
const getCurrentScope = (require(7396) /* metro dependency 7396 */).getCurrentScope;
|
|
object2.getScope = getCurrentScope;
|
|
const getIsolationScope = (require(7396) /* metro dependency 7396 */).getIsolationScope;
|
|
object2.getIsolationScope = getIsolationScope;
|
|
object2.captureException = captureException_60313;
|
|
object2.captureMessage = captureMessage_60314;
|
|
object2.captureEvent = (require(7417) /* metro dependency 7417 */).captureEvent;
|
|
object2.addBreadcrumb = (require(7442) /* metro dependency 7442 */).addBreadcrumb;
|
|
object2.setUser = (require(7417) /* metro dependency 7417 */).setUser;
|
|
object2.setTags = (require(7417) /* metro dependency 7417 */).setTags;
|
|
object2.setTag = (require(7417) /* metro dependency 7417 */).setTag;
|
|
object2.setExtra = (require(7417) /* metro dependency 7417 */).setExtra;
|
|
object2.setExtras = (require(7417) /* metro dependency 7417 */).setExtras;
|
|
object2.setContext = (require(7417) /* metro dependency 7417 */).setContext;
|
|
object2.getIntegration = getIntegration;
|
|
object2.startSession = (require(7417) /* metro dependency 7417 */).startSession;
|
|
object2.endSession = (require(7417) /* metro dependency 7417 */).endSession;
|
|
object2.captureSession = captureSession_60316;
|
|
return object2;
|
|
}
|
|
|
|
function bindClient(a0) { // fn#60311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:77, owner: getCurrentHub.bindClient, offset: 0x01701223, size: 50 bytes, params: 2, frame: 12
|
|
let value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
value.setClient(a0);
|
|
}
|
|
|
|
function getCurrentHubGetClient() { // fn#60312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:178, owner: getCurrentHub.getClient, offset: 0x01701255, size: 36 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (require(7396) /* metro dependency 7396 */).getClient();
|
|
}
|
|
|
|
function getCurrentHubCaptureException(a0, a1) { // fn#60313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:321, owner: getCurrentHub.captureException, offset: 0x01701279, size: 54 bytes, params: 3, frame: 13
|
|
let value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
return value.captureException(a0, a1);
|
|
}
|
|
|
|
function getCurrentHubCaptureMessage(a0, a1, a2) { // fn#60314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:423, owner: getCurrentHub.captureMessage, offset: 0x017012af, size: 58 bytes, params: 4, frame: 15
|
|
let value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
return value.captureMessage(a0, a1, a2);
|
|
}
|
|
|
|
function getIntegration(a0) { // fn#60315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:749, owner: getCurrentHub.getIntegration, offset: 0x017012e9, size: 66 bytes, params: 2, frame: 12
|
|
let value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getClient();
|
|
let r0 = value && value.getIntegrationByName(a0.id);
|
|
r0 = !r0 ? null : r0;
|
|
return r0;
|
|
}
|
|
|
|
function getCurrentHubCaptureSession(a0) { // fn#60316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7655:927, owner: getCurrentHub.captureSession, offset: 0x0170132b, size: 120 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__;
|
|
if (a0) {
|
|
return (require(7417) /* metro dependency 7417 */).endSession();
|
|
}
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
const client = (require(7396) /* metro dependency 7396 */).getClient();
|
|
value = value.getSession();
|
|
if (client && value) {
|
|
client.captureSession(value);
|
|
}
|
|
}
|
|
|