slnodejs 6.1.447 → 6.1.451

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27169,6 +27169,21 @@ arguments[4][160][0].apply(exports,arguments)
27169
27169
  else {
27170
27170
  browserAgent.createInstance(window[SEALIGHTS_WINDOW_OBJECT]);
27171
27171
  }
27172
+ let enableOpenTelemetry = false;
27173
+ Object.keys(window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components).forEach(instanceBSID => {
27174
+ if (window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components[instanceBSID].enableOpenTelemetry) {
27175
+ return enableOpenTelemetry = true;
27176
+ }
27177
+ });
27178
+ let allowCORS = undefined;
27179
+ Object.keys(window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components).forEach(instanceBSID => {
27180
+ const instanceCORSConfig = window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components[instanceBSID].allowCORS;
27181
+ if (instanceCORSConfig === null || instanceCORSConfig === void 0 ? void 0 : instanceCORSConfig.length) {
27182
+ return allowCORS = instanceCORSConfig;
27183
+ }
27184
+ });
27185
+ const logger = log_factory_1.LogFactory.createLogger('EventsBridgeLogger');
27186
+ (0, events_bridge_1.registerEventsBridge)(logger, enableOpenTelemetry, true, allowCORS);
27172
27187
  }
27173
27188
  else if (window) {
27174
27189
  window[SEALIGHTS_WINDOW_OBJECT] = {
@@ -27674,7 +27689,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27674
27689
  if (v !== undefined) module.exports = v;
27675
27690
  }
27676
27691
  else if (typeof define === "function" && define.amd) {
27677
- define(["require", "exports", "./agent-factory", "./logger/log-factory", "./events-bridge", "./events-bridge/context-message-manager"], factory);
27692
+ define(["require", "exports", "./agent-factory", "./logger/log-factory", "./events-bridge/context-message-manager"], factory);
27678
27693
  }
27679
27694
  })(function (require, exports) {
27680
27695
  "use strict";
@@ -27682,7 +27697,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27682
27697
  exports.BrowserAgent = void 0;
27683
27698
  const agent_factory_1 = require("./agent-factory");
27684
27699
  const log_factory_1 = require("./logger/log-factory");
27685
- const events_bridge_1 = require("./events-bridge");
27686
27700
  const context_message_manager_1 = require("./events-bridge/context-message-manager");
27687
27701
  class BrowserAgent {
27688
27702
  constructor(window, featureDetection) {
@@ -27704,8 +27718,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27704
27718
  try {
27705
27719
  this.instanceAddedForBsid[configuration.buildSessionId] = true;
27706
27720
  const browserAgent = agent_factory_1.AgentFactory.createBrowserAgent(this.window, this.featureDetection, configuration);
27707
- const { enableOpenTelemetry } = configuration;
27708
- (0, events_bridge_1.registerEventsBridge)(this.logger, enableOpenTelemetry, true, configuration.allowCORS);
27709
27721
  if (browserAgent) {
27710
27722
  browserAgent.start();
27711
27723
  this.instances.push(browserAgent);
@@ -27750,7 +27762,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27750
27762
  exports.BrowserAgent = BrowserAgent;
27751
27763
  });
27752
27764
 
27753
- },{"./agent-factory":218,"./events-bridge":241,"./events-bridge/context-message-manager":237,"./logger/log-factory":249}],222:[function(require,module,exports){
27765
+ },{"./agent-factory":218,"./events-bridge/context-message-manager":237,"./logger/log-factory":249}],222:[function(require,module,exports){
27754
27766
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27755
27767
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27756
27768
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -28017,7 +28029,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28017
28029
  "use strict";
28018
28030
  Object.defineProperty(exports, "__esModule", { value: true });
28019
28031
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
28020
- exports.SL_AGENT_VERSION = '6.1.447';
28032
+ exports.SL_AGENT_VERSION = '6.1.451';
28021
28033
  exports.SL_AGENT_TYPE = 'browser';
28022
28034
  });
28023
28035