Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// Module ID: 13010
|
|
// Function ID: 13011
|
|
// Dependencies: [12976, 12948, 12975]
|
|
// Exports: initAndBind, setCurrentClient
|
|
|
|
// Module 13010
|
|
import _mod12948 from "module_12948" /* 12948 */;
|
|
import _mod12975 from "module_12975" /* 12975 */;
|
|
import _mod12976 from "module_12976" /* 12976 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const initAndBind = function initAndBind(arg0, debug) {
|
|
if (true === debug.debug) {
|
|
const obj = _mod12948;
|
|
if (_mod12976.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 = _mod12975.getCurrentScope();
|
|
currentScope.update(debug.initialScope);
|
|
const obj4 = new arg0(debug);
|
|
const currentScope1 = _mod12975.getCurrentScope();
|
|
currentScope1.setClient(obj4);
|
|
obj4.init();
|
|
return obj4;
|
|
};
|
|
export const setCurrentClient = function setCurrentClient(arg0) {
|
|
const currentScope = _mod12975.getCurrentScope();
|
|
currentScope.setClient(arg0);
|
|
};
|