decord/source/__polyfill/13xxx/module_13035.js
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

75 lines
2.2 KiB
JavaScript

// Module ID: 13035
// Function ID: 13036
// Dependencies: [12954, 12975, 13000]
// Exports: getCurrentHub, getCurrentHubShim
// Module 13035
import _mod12954 from "module_12954" /* 12954 */;
import _flush from "_flush" /* 12975 */;
import _mod13000 from "module_13000" /* 13000 */;
require = arg1;
const dependencyMap = arg6;
function getCurrentHubShim() {
return {
bindClient(arg0) {
const currentScope = _mod12954.getCurrentScope();
currentScope.setClient(arg0);
},
withScope: _mod12954.withScope,
getClient() {
return _mod12954.getClient();
},
getScope: _mod12954.getCurrentScope,
getIsolationScope: _mod12954.getIsolationScope,
captureException(arg0, arg1) {
const currentScope = _mod12954.getCurrentScope();
return currentScope.captureException(arg0, arg1);
},
captureMessage(arg0, arg1, arg2) {
const currentScope = _mod12954.getCurrentScope();
return currentScope.captureMessage(arg0, arg1, arg2);
},
captureEvent: _flush.captureEvent,
addBreadcrumb: _mod13000.addBreadcrumb,
setUser: _flush.setUser,
setTags: _flush.setTags,
setTag: _flush.setTag,
setExtra: _flush.setExtra,
setExtras: _flush.setExtras,
setContext: _flush.setContext,
getIntegration(id) {
const client = _mod12954.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 };