decord/source/__polyfill/12xxx/module_12975.js
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

75 lines
2.2 KiB
JavaScript

// Module ID: 12975
// Function ID: 12976
// Dependencies: [12894, 12915, 12940]
// Exports: getCurrentHub, getCurrentHubShim
// Module 12975
import _mod12894 from "module_12894" /* 12894 */;
import _flush from "_flush" /* 12915 */;
import _mod12940 from "module_12940" /* 12940 */;
require = arg1;
const dependencyMap = arg6;
function getCurrentHubShim() {
return {
bindClient(arg0) {
const currentScope = _mod12894.getCurrentScope();
currentScope.setClient(arg0);
},
withScope: _mod12894.withScope,
getClient() {
return _mod12894.getClient();
},
getScope: _mod12894.getCurrentScope,
getIsolationScope: _mod12894.getIsolationScope,
captureException(arg0, arg1) {
const currentScope = _mod12894.getCurrentScope();
return currentScope.captureException(arg0, arg1);
},
captureMessage(arg0, arg1, arg2) {
const currentScope = _mod12894.getCurrentScope();
return currentScope.captureMessage(arg0, arg1, arg2);
},
captureEvent: _flush.captureEvent,
addBreadcrumb: _mod12940.addBreadcrumb,
setUser: _flush.setUser,
setTags: _flush.setTags,
setTag: _flush.setTag,
setExtra: _flush.setExtra,
setExtras: _flush.setExtras,
setContext: _flush.setContext,
getIntegration(id) {
const client = _mod12894.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 };