Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// Module ID: 12889
|
|
// Function ID: 12890
|
|
// Dependencies: [12855, 12827, 12854]
|
|
// Exports: initAndBind, setCurrentClient
|
|
|
|
// Module 12889
|
|
import _mod12827 from "module_12827" /* 12827 */;
|
|
import _mod12854 from "module_12854" /* 12854 */;
|
|
import _mod12855 from "module_12855" /* 12855 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const initAndBind = function initAndBind(arg0, debug) {
|
|
if (true === debug.debug) {
|
|
const obj = _mod12827;
|
|
if (_mod12855.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 = _mod12854.getCurrentScope();
|
|
currentScope.update(debug.initialScope);
|
|
const obj4 = new arg0(debug);
|
|
const currentScope1 = _mod12854.getCurrentScope();
|
|
currentScope1.setClient(obj4);
|
|
obj4.init();
|
|
return obj4;
|
|
};
|
|
export const setCurrentClient = function setCurrentClient(arg0) {
|
|
const currentScope = _mod12854.getCurrentScope();
|
|
currentScope.setClient(arg0);
|
|
};
|