Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// Module ID: 12929
|
|
// Function ID: 12930
|
|
// Dependencies: [12895, 12867, 12894]
|
|
// Exports: initAndBind, setCurrentClient
|
|
|
|
// Module 12929
|
|
import _mod12867 from "module_12867" /* 12867 */;
|
|
import _mod12894 from "module_12894" /* 12894 */;
|
|
import _mod12895 from "module_12895" /* 12895 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const initAndBind = function initAndBind(arg0, debug) {
|
|
if (true === debug.debug) {
|
|
const obj = _mod12867;
|
|
if (_mod12895.DEBUG_BUILD) {
|
|
const logger = obj.logger;
|
|
logger.enable();
|
|
} else {
|
|
obj.consoleSandbox(() => {
|
|
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
|
|
});
|
|
}
|
|
}
|
|
const currentScope = _mod12894.getCurrentScope();
|
|
currentScope.update(debug.initialScope);
|
|
const obj4 = new arg0(debug);
|
|
const currentScope1 = _mod12894.getCurrentScope();
|
|
currentScope1.setClient(obj4);
|
|
obj4.init();
|
|
return obj4;
|
|
};
|
|
export const setCurrentClient = function setCurrentClient(arg0) {
|
|
const currentScope = _mod12894.getCurrentScope();
|
|
currentScope.setClient(arg0);
|
|
};
|