slnodejs 6.1.136 → 6.1.147

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.
@@ -23622,7 +23622,7 @@ module.exports={
23622
23622
  "_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
23623
23623
  "_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
23624
23624
  "_spec": "elliptic@^6.5.3",
23625
- "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
23625
+ "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main@2/browser-agent/node_modules/browserify-sign",
23626
23626
  "author": {
23627
23627
  "name": "Fedor Indutny",
23628
23628
  "email": "fedor@indutny.com"
@@ -42779,8 +42779,8 @@ function extend() {
42779
42779
  if (agentConfiguration.footprintsEnableV6.value) {
42780
42780
  return this.createBrowserAgentInstanceFPV6(window, featureDetection, configuration, agentInstanceData, logger, agentConfiguration, backendProxy, eventProcess, colorCookieHandler);
42781
42781
  }
42782
- var stateTracker = AgentFactory.createStateTracker(configuration, window, featureDetection);
42783
- var footprintsQueueSender = AgentFactory.createFootprintsQueueSender(window, featureDetection, configuration, stateTracker);
42782
+ var stateTracker = AgentFactory.createStateTracker(configuration, window, featureDetection, agentInstanceData);
42783
+ var footprintsQueueSender = AgentFactory.createFootprintsQueueSender(window, featureDetection, configuration, stateTracker, agentInstanceData);
42784
42784
  var agent = new browser_agent_instance_1.BrowserAgentInstance(logger, footprintsQueueSender, configuration, window, colorCookieHandler, stateTracker, eventProcess, agentConfiguration);
42785
42785
  return agent;
42786
42786
  };
@@ -42788,14 +42788,14 @@ function extend() {
42788
42788
  var configProcess = this.createConfigProcess(window, configuration, agentInstanceData, agentConfig, backendProxy);
42789
42789
  var stateTracker = this.createStateTrackerInfra(window, configuration, agentInstanceData, agentConfig, backendProxy, configProcess);
42790
42790
  var footprintsProcessV6 = this.getCreateFootprintsProcessV6(window, configuration, agentInstanceData, agentConfig, backendProxy, stateTracker);
42791
- var lightBackendProxy = AgentFactory.createLightBackendProxy(window, featureDetection, configuration);
42791
+ var lightBackendProxy = AgentFactory.createLightBackendProxy(window, featureDetection, configuration, agentInstanceData);
42792
42792
  var slMappingLoader = this.createSlMappingLoader(window, lightBackendProxy, configuration);
42793
42793
  var flushFootprintsWatchdog = AgentFactory.createWatchdog(window, configuration, FOOTPRINTS_FLUSH_WATCHDOG, agentConfig.footprintsCollectIntervalSecs.value);
42794
42794
  return new browser_agent_instance_fpv6_1.BrowserAgentInstanceFpv6(logger, footprintsProcessV6, configuration, window, colorCookieHandler, stateTracker, eventsProcess, agentConfig, flushFootprintsWatchdog, slMappingLoader);
42795
42795
  };
42796
- AgentFactory.createFootprintsQueueSender = function (window, featureDetection, configuration, stateTracker) {
42796
+ AgentFactory.createFootprintsQueueSender = function (window, featureDetection, configuration, stateTracker, agentInstanceData) {
42797
42797
  var watchdog = AgentFactory.createWatchdog(window, configuration, FOOTPRINTS_SENDER_WATCHDOG);
42798
- var lightBackendProxy = AgentFactory.createLightBackendProxy(window, featureDetection, configuration);
42798
+ var lightBackendProxy = AgentFactory.createLightBackendProxy(window, featureDetection, configuration, agentInstanceData);
42799
42799
  var codeCoverageManager = AgentFactory.createCodeCoverageManager(window, configuration);
42800
42800
  var testStateHelper = AgentFactory.createTestStateHelper();
42801
42801
  var environmentData = AgentFactory.createEnvironmentData(window, configuration);
@@ -42817,8 +42817,8 @@ function extend() {
42817
42817
  var codeCoverageManager = new code_coverage_manager_1.CodeCoverageManager(istanbulToFootprintsConvertor, configuration);
42818
42818
  return codeCoverageManager;
42819
42819
  };
42820
- AgentFactory.createLightBackendProxy = function (window, featureDetection, configuration) {
42821
- var jsonClient = AgentFactory.createJsonClient(window, featureDetection, configuration);
42820
+ AgentFactory.createLightBackendProxy = function (window, featureDetection, configuration, agentInstanceData) {
42821
+ var jsonClient = AgentFactory.createJsonClient(window, featureDetection, configuration, agentInstanceData);
42822
42822
  var logger = AgentFactory.createLogger('FootprintsServiceProxy', configuration, window);
42823
42823
  var lightBackendProxy = new light_backend_proxy_1.LightBackendProxy(configuration, jsonClient, logger);
42824
42824
  return lightBackendProxy;
@@ -42827,19 +42827,19 @@ function extend() {
42827
42827
  var logger = AgentFactory.createLogger('slMappingLoader', configuration, window);
42828
42828
  return new sl_mapping_loader_1.SlMappingLoader(lightBackendProxy, window, logger);
42829
42829
  };
42830
- AgentFactory.createJsonClient = function (window, featureDetection, configuration) {
42830
+ AgentFactory.createJsonClient = function (window, featureDetection, configuration, agentInstanceData) {
42831
42831
  var httpClient = AgentFactory.createHttpClient(window, featureDetection, configuration);
42832
- return configuration.blockBrowserHttpTraffic ? new noop_json_client_1.NoopJsonClient(httpClient, configuration.token) : new json_client_1.JsonClient(httpClient, configuration.token);
42832
+ return configuration.blockBrowserHttpTraffic ? new noop_json_client_1.NoopJsonClient(httpClient, configuration.token, agentInstanceData) : new json_client_1.JsonClient(httpClient, configuration.token, agentInstanceData);
42833
42833
  };
42834
42834
  AgentFactory.createHttpClient = function (window, featureDetection, configuration) {
42835
42835
  var logger = AgentFactory.createLogger('HttpClient', configuration, window);
42836
42836
  var httpClient = new http_client_1.HttpClient(window, featureDetection, logger);
42837
42837
  return httpClient;
42838
42838
  };
42839
- AgentFactory.createStateTracker = function (configuration, window, featureDetection) {
42839
+ AgentFactory.createStateTracker = function (configuration, window, featureDetection, agentInstanceData) {
42840
42840
  var watchdog = AgentFactory.createWatchdog(window, configuration, ACTIVE_EXECUTION_WATCHDOG);
42841
42841
  var logger = AgentFactory.createLogger('StateTracker', configuration, window);
42842
- var jsonClient = AgentFactory.createJsonClient(window, featureDetection, configuration);
42842
+ var jsonClient = AgentFactory.createJsonClient(window, featureDetection, configuration, agentInstanceData);
42843
42843
  var stateTracker = new state_tracker_1.StateTracker(configuration, jsonClient, watchdog, logger);
42844
42844
  return stateTracker;
42845
42845
  };
@@ -42888,7 +42888,7 @@ function extend() {
42888
42888
  AgentFactory.createBackendProxy = function (agentConfiguration, agentInstanceData, window, featureDetection, configurationData) {
42889
42889
  var logger = this.createLogger('BackendProxy', configurationData, window);
42890
42890
  var httpClientConfig = this.createHttpClientConfig(agentConfiguration);
42891
- var jsonClientAdapter = this.createJsonClientAdapter(window, featureDetection, configurationData);
42891
+ var jsonClientAdapter = this.createJsonClientAdapter(window, featureDetection, configurationData, agentInstanceData);
42892
42892
  var backendProxy = new backend_proxy_1.BackendProxy(agentInstanceData, httpClientConfig, logger, jsonClientAdapter);
42893
42893
  return backendProxy;
42894
42894
  };
@@ -42926,8 +42926,8 @@ function extend() {
42926
42926
  }
42927
42927
  return configLoader.loadAgentConfiguration(configuration);
42928
42928
  };
42929
- AgentFactory.createJsonClientAdapter = function (window, featureDetection, config) {
42930
- var jsonClient = this.createJsonClient(window, featureDetection, config);
42929
+ AgentFactory.createJsonClientAdapter = function (window, featureDetection, config, agentInstanceData) {
42930
+ var jsonClient = this.createJsonClient(window, featureDetection, config, agentInstanceData);
42931
42931
  return new json_client_adapter_1.JsonClientAdapter(jsonClient, config.server);
42932
42932
  };
42933
42933
  AgentFactory.getCreateFootprintsProcessV6 = function (window, configuration, agentInstanceData, agentConfig, backendProxy, stateTracker) {
@@ -45468,9 +45468,10 @@ var __extends = (this && this.__extends) || (function () {
45468
45468
  var http_request_1 = require("../http/http-request");
45469
45469
  var contracts_1 = require("../../../../common/http/contracts");
45470
45470
  var JsonClient = (function () {
45471
- function JsonClient(httpClient, token) {
45471
+ function JsonClient(httpClient, token, agentInstanceData) {
45472
45472
  this.httpClient = httpClient;
45473
45473
  this.token = token;
45474
+ this.agentInstanceData = agentInstanceData;
45474
45475
  this.requestsInProgress = 0;
45475
45476
  this.requestsInProgress = 0;
45476
45477
  }
@@ -45539,6 +45540,7 @@ var __extends = (this && this.__extends) || (function () {
45539
45540
  };
45540
45541
  JsonClient.prototype.getHeaders = function (contentType) {
45541
45542
  var headers = [{ name: 'Content-Type', value: (contentType || contracts_1.ContentType.JSON) }];
45543
+ headers.push({ name: 'sl-agentId', value: this.agentInstanceData.agentId });
45542
45544
  if (this.token) {
45543
45545
  headers.push({ name: 'Authorization', value: 'Bearer ' + this.token });
45544
45546
  }