decord/source/__polyfill/12xxx/module_12935.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

75 lines
2.2 KiB
JavaScript

// Module ID: 12935
// Function ID: 12936
// Dependencies: [12854, 12875, 12900]
// Exports: getCurrentHub, getCurrentHubShim
// Module 12935
import _mod12854 from "module_12854" /* 12854 */;
import _flush from "_flush" /* 12875 */;
import _mod12900 from "module_12900" /* 12900 */;
require = arg1;
const dependencyMap = arg6;
function getCurrentHubShim() {
return {
bindClient(arg0) {
const currentScope = _mod12854.getCurrentScope();
currentScope.setClient(arg0);
},
withScope: _mod12854.withScope,
getClient() {
return _mod12854.getClient();
},
getScope: _mod12854.getCurrentScope,
getIsolationScope: _mod12854.getIsolationScope,
captureException(arg0, arg1) {
const currentScope = _mod12854.getCurrentScope();
return currentScope.captureException(arg0, arg1);
},
captureMessage(arg0, arg1, arg2) {
const currentScope = _mod12854.getCurrentScope();
return currentScope.captureMessage(arg0, arg1, arg2);
},
captureEvent: _flush.captureEvent,
addBreadcrumb: _mod12900.addBreadcrumb,
setUser: _flush.setUser,
setTags: _flush.setTags,
setTag: _flush.setTag,
setExtra: _flush.setExtra,
setExtras: _flush.setExtras,
setContext: _flush.setContext,
getIntegration(id) {
const client = _mod12854.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 };