1 | Object.defineProperty(exports, "__esModule", { value: true });
|
2 | var hub_1 = require("@sentry/hub");
|
3 | var utils_1 = require("@sentry/utils");
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function initAndBind(clientClass, options) {
|
12 | var _a;
|
13 | if (options.debug === true) {
|
14 | utils_1.logger.enable();
|
15 | }
|
16 | var hub = hub_1.getCurrentHub();
|
17 | (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.update(options.initialScope);
|
18 | var client = new clientClass(options);
|
19 | hub.bindClient(client);
|
20 | }
|
21 | exports.initAndBind = initAndBind;
|
22 |
|
\ | No newline at end of file |