slnodejs 6.1.519 → 6.1.526

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.
Files changed (60) hide show
  1. package/browser-agent/dist/browser-agent-all.js +32 -38
  2. package/browser-agent/dist/browser-agent-all.min.js +3 -3
  3. package/browser-agent/package.json +1 -1
  4. package/package.json +2 -2
  5. package/tsOutputs/build-scanner/build-diff-process.js +20 -3
  6. package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
  7. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +1 -0
  8. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
  9. package/tsOutputs/build-scanner/instrumentation/files-instrumenter.d.ts +3 -0
  10. package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js +5 -0
  11. package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js.map +1 -1
  12. package/tsOutputs/build-scanner/source-map-eraser/factory.d.ts +5 -0
  13. package/tsOutputs/build-scanner/source-map-eraser/factory.js +24 -0
  14. package/tsOutputs/build-scanner/source-map-eraser/factory.js.map +1 -0
  15. package/tsOutputs/build-scanner/source-map-eraser/interface.d.ts +9 -0
  16. package/tsOutputs/build-scanner/source-map-eraser/interface.js +10 -0
  17. package/tsOutputs/build-scanner/source-map-eraser/interface.js.map +1 -0
  18. package/tsOutputs/build-scanner/source-map-eraser/none-source-maps-eraser.d.ts +5 -0
  19. package/tsOutputs/build-scanner/source-map-eraser/none-source-maps-eraser.js +22 -0
  20. package/tsOutputs/build-scanner/source-map-eraser/none-source-maps-eraser.js.map +1 -0
  21. package/tsOutputs/build-scanner/source-map-eraser/skip-copy-source-maps.d.ts +9 -0
  22. package/tsOutputs/build-scanner/source-map-eraser/skip-copy-source-maps.js +28 -0
  23. package/tsOutputs/build-scanner/source-map-eraser/skip-copy-source-maps.js.map +1 -0
  24. package/tsOutputs/build-scanner/source-map-eraser/source-maps-eraser.d.ts +10 -0
  25. package/tsOutputs/build-scanner/source-map-eraser/source-maps-eraser.js +45 -0
  26. package/tsOutputs/build-scanner/source-map-eraser/source-maps-eraser.js.map +1 -0
  27. package/tsOutputs/cli-parse/cli.js +6 -3
  28. package/tsOutputs/cli-parse/cli.js.map +1 -1
  29. package/tsOutputs/cli-parse/contracts.d.ts +2 -0
  30. package/tsOutputs/cli-parse/contracts.js.map +1 -1
  31. package/tsOutputs/cli-parse/executors/base-executor.js +22 -6
  32. package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
  33. package/tsOutputs/cli-parse/executors/build-args-dto.js +1 -0
  34. package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
  35. package/tsOutputs/cli-parse/executors/build-executor.js +12 -1
  36. package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
  37. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +12 -1
  38. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
  39. package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
  40. package/tsOutputs/common/config-process/config-system.js +6 -2
  41. package/tsOutputs/common/config-process/config-system.js.map +1 -1
  42. package/tsOutputs/common/config-process/config.d.ts +3 -0
  43. package/tsOutputs/common/config-process/config.js +3 -0
  44. package/tsOutputs/common/config-process/config.js.map +1 -1
  45. package/tsOutputs/common/constants/sl-env-vars.d.ts +0 -6
  46. package/tsOutputs/common/constants/sl-env-vars.js +0 -16
  47. package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
  48. package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
  49. package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
  50. package/tsOutputs/common/http/backend-proxy.d.ts +7 -5
  51. package/tsOutputs/common/http/backend-proxy.js +8 -3
  52. package/tsOutputs/common/http/backend-proxy.js.map +1 -1
  53. package/tsOutputs/common/http/contracts.d.ts +6 -1
  54. package/tsOutputs/common/http/contracts.js +3 -3
  55. package/tsOutputs/common/http/contracts.js.map +1 -1
  56. package/tsOutputs/common/http/http-client.d.ts +5 -5
  57. package/tsOutputs/common/http/http-client.js +3 -10
  58. package/tsOutputs/common/http/http-client.js.map +1 -1
  59. package/tsOutputs/test-listener/api.js.map +1 -1
  60. package/tsOutputs/test-listener/factory.js.map +1 -1
@@ -14811,11 +14811,14 @@ module.exports = function hasSymbols() {
14811
14811
  },{}],174:[function(require,module,exports){
14812
14812
  'use strict';
14813
14813
 
14814
- var bind = require('function-bind');
14814
+ var hasOwnProperty = {}.hasOwnProperty;
14815
+ var call = Function.prototype.call;
14815
14816
 
14816
- module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
14817
+ module.exports = call.bind ? call.bind(hasOwnProperty) : function (O, P) {
14818
+ return call.call(hasOwnProperty, O, P);
14819
+ };
14817
14820
 
14818
- },{"function-bind":169}],175:[function(require,module,exports){
14821
+ },{}],175:[function(require,module,exports){
14819
14822
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
14820
14823
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
14821
14824
  var e, m
@@ -28889,7 +28892,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28889
28892
  "use strict";
28890
28893
  Object.defineProperty(exports, "__esModule", { value: true });
28891
28894
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
28892
- exports.SL_AGENT_VERSION = '6.1.519';
28895
+ exports.SL_AGENT_VERSION = '6.1.526';
28893
28896
  exports.SL_AGENT_TYPE = 'browser';
28894
28897
  });
28895
28898
 
@@ -32890,12 +32893,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32890
32893
  getAllKeyValues(callback) {
32891
32894
  if (this.prefix) {
32892
32895
  const ret = {};
32896
+ ret['httpMaxAttempts'] = process.env['SL_HttpMaxAttempts'];
32897
+ ret['httpAttemptInterval'] = process.env['SL_HttpAttemptInterval'];
32893
32898
  for (const key in process.env) {
32894
32899
  if (key.indexOf(this.prefix) == 0) {
32895
- ret[key.substr(this.prefix.length)] = process.env[key];
32900
+ ret[key.substring(this.prefix.length)] = process.env[key];
32896
32901
  }
32897
32902
  }
32898
- callback(null, ret);
32903
+ return callback(null, ret);
32899
32904
  }
32900
32905
  else {
32901
32906
  return callback(null, process.env);
@@ -33195,6 +33200,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33195
33200
  this.useTsNode = new config_system_1.BooleanConfigKey(false, false);
33196
33201
  this.testRecommendationSleepSeconds = new config_system_1.NumberConfigKey(false, 1);
33197
33202
  this.removeSensitiveData = new config_system_1.BooleanConfigKey(false, false);
33203
+ this.httpTimeout = new config_system_1.NumberConfigKey(false, 60 * 1000 * 2);
33204
+ this.httpMaxAttempts = new config_system_1.NumberConfigKey(false, 6);
33205
+ this.httpAttemptInterval = new config_system_1.NumberConfigKey(false, 5 * 1000);
33198
33206
  }
33199
33207
  }
33200
33208
  exports.AgentConfig = AgentConfig;
@@ -33405,15 +33413,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33405
33413
  const buffer_size_helper_1 = require("../footprints-process-v6/buffer-size-helper");
33406
33414
  const env_var_parsing_1 = require("../utils/env-var-parsing");
33407
33415
  class SlEnvVars {
33408
- static getHttpTimeout() {
33409
- return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_TIMEOUT);
33410
- }
33411
- static getHttpMaxAttempts() {
33412
- return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_MAX_ATTEMPTS);
33413
- }
33414
- static getHttpAttemptInterval() {
33415
- return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_ATTEMPT_INTERVAL);
33416
- }
33417
33416
  static inProductionListenerMode() {
33418
33417
  return !!process.env[SlEnvVars.PRODUCTION_LISTENER];
33419
33418
  }
@@ -33469,9 +33468,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33469
33468
  }
33470
33469
  }
33471
33470
  exports.SlEnvVars = SlEnvVars;
33472
- SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
33473
- SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
33474
- SlEnvVars.HTTP_ATTEMPT_INTERVAL = 'SL_HttpAttemptInterval';
33475
33471
  SlEnvVars.PRODUCTION_LISTENER = 'SL_production';
33476
33472
  SlEnvVars.FILE_STORAGE = 'SL_fileStorage';
33477
33473
  SlEnvVars.NEW_UNIQUE_ID = 'SL_newUniqueId';
@@ -35555,7 +35551,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35555
35551
  if (v !== undefined) module.exports = v;
35556
35552
  }
35557
35553
  else if (typeof define === "function" && define.amd) {
35558
- define(["require", "exports", "./contracts", "./http-client", "./sl-routes", "../utils/validation-utils", "./entities-mapper", "../constants/constants", "../constants/sl-env-vars", "../utils/timer-utils"], factory);
35554
+ define(["require", "exports", "./contracts", "./http-client", "./sl-routes", "../utils/validation-utils", "./entities-mapper", "../constants/constants", "../utils/timer-utils"], factory);
35559
35555
  }
35560
35556
  })(function (require, exports) {
35561
35557
  "use strict";
@@ -35567,9 +35563,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35567
35563
  const validation_utils_1 = require("../utils/validation-utils");
35568
35564
  const entities_mapper_1 = require("./entities-mapper");
35569
35565
  const constants_1 = require("../constants/constants");
35570
- const sl_env_vars_1 = require("../constants/sl-env-vars");
35571
35566
  const timer_utils_1 = require("../utils/timer-utils");
35572
35567
  class BackendProxy {
35568
+ get httpMaxAttemps() {
35569
+ return this.config.httpMaxAttemps || BackendProxy.DEFAULT_HTTP_MAX_ATTEMPTS;
35570
+ }
35571
+ get httpAttemptInterval() {
35572
+ return this.config.httpAttemptInterval || BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL;
35573
+ }
35573
35574
  constructor(agentInstanceData, config, logger, httpClient) {
35574
35575
  this.agentInstanceData = agentInstanceData;
35575
35576
  this.config = config;
@@ -35859,8 +35860,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35859
35860
  }
35860
35861
  makeRequestWithRetries(doSingleRequest, retries, delayBetweenRetires, statusesForRetry) {
35861
35862
  return __awaiter(this, void 0, void 0, function* () {
35862
- let retriesLeft = retries || sl_env_vars_1.SlEnvVars.getHttpMaxAttempts() || BackendProxy.DEFAULT_HTTP_MAX_ATTEMPTS;
35863
- const intervalBetweenRetries = delayBetweenRetires || sl_env_vars_1.SlEnvVars.getHttpAttemptInterval() || BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL;
35863
+ let retriesLeft = retries || this.httpMaxAttemps;
35864
+ const intervalBetweenRetries = delayBetweenRetires || this.httpAttemptInterval;
35864
35865
  let lastError = undefined;
35865
35866
  do {
35866
35867
  try {
@@ -35895,7 +35896,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35895
35896
  BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL = 5 * 1000;
35896
35897
  });
35897
35898
 
35898
- },{"../constants/constants":298,"../constants/sl-env-vars":299,"../utils/timer-utils":334,"../utils/validation-utils":335,"./contracts":321,"./entities-mapper":322,"./http-client":323,"./sl-routes":325}],321:[function(require,module,exports){
35899
+ },{"../constants/constants":298,"../utils/timer-utils":334,"../utils/validation-utils":335,"./contracts":321,"./entities-mapper":322,"./http-client":323,"./sl-routes":325}],321:[function(require,module,exports){
35899
35900
  (function (factory) {
35900
35901
  if (typeof module === "object" && typeof module.exports === "object") {
35901
35902
  var v = factory(require, exports);
@@ -35907,11 +35908,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35907
35908
  })(function (require, exports) {
35908
35909
  "use strict";
35909
35910
  Object.defineProperty(exports, "__esModule", { value: true });
35910
- exports.SealightsHaderValues = exports.SealightsHeaderNames = exports.ContentType = exports.RecommendationSetStatus = exports.RecommendedTestReason = exports.UploadReportsBody = exports.EnvironmentData = exports.AgentData = exports.UploadReportRequest = exports.EndExecutionRequest = exports.StartExecutionRequest = exports.BaseRequest = exports.SubmitLogsRequest = exports.GetRemoteConfigRequest = exports.FileData = exports.DependencyData = exports.BuildMappingRequest = exports.VersionMetaQuery = exports.VersionMeta = exports.AgentInfo = exports.GetVersionResponse = exports.GetVersionRequest = exports.CreateBuildSessionIdResponse = exports.SlAgentMetadata = exports.HttpClientConfigData = void 0;
35911
+ exports.SealightsHaderValues = exports.SealightsHeaderNames = exports.ContentType = exports.RecommendationSetStatus = exports.RecommendedTestReason = exports.UploadReportsBody = exports.EnvironmentData = exports.AgentData = exports.UploadReportRequest = exports.EndExecutionRequest = exports.StartExecutionRequest = exports.BaseRequest = exports.SubmitLogsRequest = exports.GetRemoteConfigRequest = exports.FileData = exports.DependencyData = exports.BuildMappingRequest = exports.VersionMetaQuery = exports.VersionMeta = exports.AgentInfo = exports.GetVersionResponse = exports.GetVersionRequest = exports.CreateBuildSessionIdResponse = exports.SlAgentMetadata = exports.IHttpClientConfigData = void 0;
35911
35912
  const system_date_1 = require("../system-date");
35912
- class HttpClientConfigData {
35913
+ class IHttpClientConfigData {
35913
35914
  }
35914
- exports.HttpClientConfigData = HttpClientConfigData;
35915
+ exports.IHttpClientConfigData = IHttpClientConfigData;
35915
35916
  class SlAgentMetadata {
35916
35917
  }
35917
35918
  exports.SlAgentMetadata = SlAgentMetadata;
@@ -36038,7 +36039,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36038
36039
  if (v !== undefined) module.exports = v;
36039
36040
  }
36040
36041
  else if (typeof define === "function" && define.amd) {
36041
- define(["require", "exports", "./contracts", "request", "zlib", "../constants/sl-env-vars", "./http-verb", "../utils/validation-utils", "../../common/system-date", "../../common/system-date"], factory);
36042
+ define(["require", "exports", "./contracts", "request", "zlib", "./http-verb", "../utils/validation-utils", "../../common/system-date", "../../common/system-date"], factory);
36042
36043
  }
36043
36044
  })(function (require, exports) {
36044
36045
  "use strict";
@@ -36047,7 +36048,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36047
36048
  const contracts_1 = require("./contracts");
36048
36049
  const request = require("request");
36049
36050
  const zlib = require("zlib");
36050
- const sl_env_vars_1 = require("../constants/sl-env-vars");
36051
36051
  const http_verb_1 = require("./http-verb");
36052
36052
  const validation_utils_1 = require("../utils/validation-utils");
36053
36053
  const system_date_1 = require("../../common/system-date");
@@ -36060,7 +36060,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36060
36060
  this.logger = logger;
36061
36061
  validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(cfg, 'cfg');
36062
36062
  validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(logger, 'logger');
36063
- this.defaultTimeout = this.getDefaultTimeout();
36064
36063
  }
36065
36064
  get(urlPath, callback, isNotFoundAcceptable = true) {
36066
36065
  this.invokeHttpRequest(http_verb_1.HttpVerb.GET, urlPath, callback, null, null, null, isNotFoundAcceptable);
@@ -36240,21 +36239,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36240
36239
  }
36241
36240
  return opts;
36242
36241
  }
36243
- getDefaultTimeout() {
36244
- let timeout = sl_env_vars_1.SlEnvVars.getHttpTimeout();
36245
- if (timeout == null) {
36246
- timeout = 60 * 1000 * 2;
36247
- }
36248
- timeout = Number(timeout);
36249
- this.logger.debug(`Http timeout value is '${timeout}'.`);
36250
- return timeout;
36242
+ get defaultTimeout() {
36243
+ return this.cfg.defaultTimeout || HttpClient.DEFAULT_HTTP_TIMEOUT;
36251
36244
  }
36252
36245
  }
36253
36246
  exports.HttpClient = HttpClient;
36247
+ HttpClient.DEFAULT_HTTP_TIMEOUT = 60 * 1000 * 2;
36254
36248
  });
36255
36249
 
36256
36250
  }).call(this)}).call(this,require('_process'),require("buffer").Buffer)
36257
- },{"../../common/system-date":330,"../constants/sl-env-vars":299,"../utils/validation-utils":335,"./contracts":321,"./http-verb":324,"_process":198,"buffer":163,"request":159,"zlib":161}],324:[function(require,module,exports){
36251
+ },{"../../common/system-date":330,"../utils/validation-utils":335,"./contracts":321,"./http-verb":324,"_process":198,"buffer":163,"request":159,"zlib":161}],324:[function(require,module,exports){
36258
36252
  (function (factory) {
36259
36253
  if (typeof module === "object" && typeof module.exports === "object") {
36260
36254
  var v = factory(require, exports);