Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
75 lines
2.2 KiB
JavaScript
75 lines
2.2 KiB
JavaScript
// Module ID: 13000
|
|
// Function ID: 13001
|
|
// Dependencies: [12919, 12940, 12965]
|
|
// Exports: getCurrentHub, getCurrentHubShim
|
|
|
|
// Module 13000
|
|
import _mod12919 from "module_12919" /* 12919 */;
|
|
import _flush from "_flush" /* 12940 */;
|
|
import _mod12965 from "module_12965" /* 12965 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
function getCurrentHubShim() {
|
|
return {
|
|
bindClient(arg0) {
|
|
const currentScope = _mod12919.getCurrentScope();
|
|
currentScope.setClient(arg0);
|
|
},
|
|
withScope: _mod12919.withScope,
|
|
getClient() {
|
|
return _mod12919.getClient();
|
|
},
|
|
getScope: _mod12919.getCurrentScope,
|
|
getIsolationScope: _mod12919.getIsolationScope,
|
|
captureException(arg0, arg1) {
|
|
const currentScope = _mod12919.getCurrentScope();
|
|
return currentScope.captureException(arg0, arg1);
|
|
},
|
|
captureMessage(arg0, arg1, arg2) {
|
|
const currentScope = _mod12919.getCurrentScope();
|
|
return currentScope.captureMessage(arg0, arg1, arg2);
|
|
},
|
|
captureEvent: _flush.captureEvent,
|
|
addBreadcrumb: _mod12965.addBreadcrumb,
|
|
setUser: _flush.setUser,
|
|
setTags: _flush.setTags,
|
|
setTag: _flush.setTag,
|
|
setExtra: _flush.setExtra,
|
|
setExtras: _flush.setExtras,
|
|
setContext: _flush.setContext,
|
|
getIntegration(id) {
|
|
const client = _mod12919.getClient();
|
|
let integrationByName = client;
|
|
if (client) {
|
|
integrationByName = client.getIntegrationByName(id.id);
|
|
}
|
|
if (!integrationByName) {
|
|
integrationByName = null;
|
|
}
|
|
return integrationByName;
|
|
},
|
|
startSession: _flush.startSession,
|
|
endSession: _flush.endSession,
|
|
captureSession(arg0) {
|
|
if (arg0) {
|
|
return tmp(tmp2[1]).endSession();
|
|
} else {
|
|
const currentScope = tmp(tmp2[0]).getCurrentScope();
|
|
const tmpResult3 = tmp(tmp2[0]);
|
|
const client = tmp(tmp2[0]).getClient();
|
|
const session = currentScope.getSession();
|
|
let tmp4 = client;
|
|
if (client) {
|
|
tmp4 = session;
|
|
}
|
|
if (tmp4) {
|
|
client.captureSession(session);
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
export const getCurrentHub = getCurrentHubShim;
|
|
export { getCurrentHubShim };
|