slnodejs 6.1.522 → 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.
- package/browser-agent/dist/browser-agent-all.js +26 -35
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +10 -2
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +22 -6
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/config-process/config-system.js +6 -2
- package/tsOutputs/common/config-process/config-system.js.map +1 -1
- package/tsOutputs/common/config-process/config.d.ts +3 -0
- package/tsOutputs/common/config-process/config.js +3 -0
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +0 -6
- package/tsOutputs/common/constants/sl-env-vars.js +0 -16
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.d.ts +7 -5
- package/tsOutputs/common/http/backend-proxy.js +8 -3
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.d.ts +6 -1
- package/tsOutputs/common/http/contracts.js +3 -3
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/http/http-client.d.ts +5 -5
- package/tsOutputs/common/http/http-client.js +3 -10
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/factory.js.map +1 -1
|
@@ -28892,7 +28892,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28892
28892
|
"use strict";
|
|
28893
28893
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28894
28894
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
28895
|
-
exports.SL_AGENT_VERSION = '6.1.
|
|
28895
|
+
exports.SL_AGENT_VERSION = '6.1.526';
|
|
28896
28896
|
exports.SL_AGENT_TYPE = 'browser';
|
|
28897
28897
|
});
|
|
28898
28898
|
|
|
@@ -32893,12 +32893,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32893
32893
|
getAllKeyValues(callback) {
|
|
32894
32894
|
if (this.prefix) {
|
|
32895
32895
|
const ret = {};
|
|
32896
|
+
ret['httpMaxAttempts'] = process.env['SL_HttpMaxAttempts'];
|
|
32897
|
+
ret['httpAttemptInterval'] = process.env['SL_HttpAttemptInterval'];
|
|
32896
32898
|
for (const key in process.env) {
|
|
32897
32899
|
if (key.indexOf(this.prefix) == 0) {
|
|
32898
|
-
ret[key.
|
|
32900
|
+
ret[key.substring(this.prefix.length)] = process.env[key];
|
|
32899
32901
|
}
|
|
32900
32902
|
}
|
|
32901
|
-
callback(null, ret);
|
|
32903
|
+
return callback(null, ret);
|
|
32902
32904
|
}
|
|
32903
32905
|
else {
|
|
32904
32906
|
return callback(null, process.env);
|
|
@@ -33198,6 +33200,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33198
33200
|
this.useTsNode = new config_system_1.BooleanConfigKey(false, false);
|
|
33199
33201
|
this.testRecommendationSleepSeconds = new config_system_1.NumberConfigKey(false, 1);
|
|
33200
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);
|
|
33201
33206
|
}
|
|
33202
33207
|
}
|
|
33203
33208
|
exports.AgentConfig = AgentConfig;
|
|
@@ -33408,15 +33413,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33408
33413
|
const buffer_size_helper_1 = require("../footprints-process-v6/buffer-size-helper");
|
|
33409
33414
|
const env_var_parsing_1 = require("../utils/env-var-parsing");
|
|
33410
33415
|
class SlEnvVars {
|
|
33411
|
-
static getHttpTimeout() {
|
|
33412
|
-
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_TIMEOUT);
|
|
33413
|
-
}
|
|
33414
|
-
static getHttpMaxAttempts() {
|
|
33415
|
-
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_MAX_ATTEMPTS);
|
|
33416
|
-
}
|
|
33417
|
-
static getHttpAttemptInterval() {
|
|
33418
|
-
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_ATTEMPT_INTERVAL);
|
|
33419
|
-
}
|
|
33420
33416
|
static inProductionListenerMode() {
|
|
33421
33417
|
return !!process.env[SlEnvVars.PRODUCTION_LISTENER];
|
|
33422
33418
|
}
|
|
@@ -33472,9 +33468,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33472
33468
|
}
|
|
33473
33469
|
}
|
|
33474
33470
|
exports.SlEnvVars = SlEnvVars;
|
|
33475
|
-
SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
|
|
33476
|
-
SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
|
|
33477
|
-
SlEnvVars.HTTP_ATTEMPT_INTERVAL = 'SL_HttpAttemptInterval';
|
|
33478
33471
|
SlEnvVars.PRODUCTION_LISTENER = 'SL_production';
|
|
33479
33472
|
SlEnvVars.FILE_STORAGE = 'SL_fileStorage';
|
|
33480
33473
|
SlEnvVars.NEW_UNIQUE_ID = 'SL_newUniqueId';
|
|
@@ -35558,7 +35551,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35558
35551
|
if (v !== undefined) module.exports = v;
|
|
35559
35552
|
}
|
|
35560
35553
|
else if (typeof define === "function" && define.amd) {
|
|
35561
|
-
define(["require", "exports", "./contracts", "./http-client", "./sl-routes", "../utils/validation-utils", "./entities-mapper", "../constants/constants", "../
|
|
35554
|
+
define(["require", "exports", "./contracts", "./http-client", "./sl-routes", "../utils/validation-utils", "./entities-mapper", "../constants/constants", "../utils/timer-utils"], factory);
|
|
35562
35555
|
}
|
|
35563
35556
|
})(function (require, exports) {
|
|
35564
35557
|
"use strict";
|
|
@@ -35570,9 +35563,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35570
35563
|
const validation_utils_1 = require("../utils/validation-utils");
|
|
35571
35564
|
const entities_mapper_1 = require("./entities-mapper");
|
|
35572
35565
|
const constants_1 = require("../constants/constants");
|
|
35573
|
-
const sl_env_vars_1 = require("../constants/sl-env-vars");
|
|
35574
35566
|
const timer_utils_1 = require("../utils/timer-utils");
|
|
35575
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
|
+
}
|
|
35576
35574
|
constructor(agentInstanceData, config, logger, httpClient) {
|
|
35577
35575
|
this.agentInstanceData = agentInstanceData;
|
|
35578
35576
|
this.config = config;
|
|
@@ -35862,8 +35860,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35862
35860
|
}
|
|
35863
35861
|
makeRequestWithRetries(doSingleRequest, retries, delayBetweenRetires, statusesForRetry) {
|
|
35864
35862
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35865
|
-
let retriesLeft = retries ||
|
|
35866
|
-
const intervalBetweenRetries = delayBetweenRetires ||
|
|
35863
|
+
let retriesLeft = retries || this.httpMaxAttemps;
|
|
35864
|
+
const intervalBetweenRetries = delayBetweenRetires || this.httpAttemptInterval;
|
|
35867
35865
|
let lastError = undefined;
|
|
35868
35866
|
do {
|
|
35869
35867
|
try {
|
|
@@ -35898,7 +35896,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35898
35896
|
BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL = 5 * 1000;
|
|
35899
35897
|
});
|
|
35900
35898
|
|
|
35901
|
-
},{"../constants/constants":298,"../
|
|
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){
|
|
35902
35900
|
(function (factory) {
|
|
35903
35901
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35904
35902
|
var v = factory(require, exports);
|
|
@@ -35910,11 +35908,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35910
35908
|
})(function (require, exports) {
|
|
35911
35909
|
"use strict";
|
|
35912
35910
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35913
|
-
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.
|
|
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;
|
|
35914
35912
|
const system_date_1 = require("../system-date");
|
|
35915
|
-
class
|
|
35913
|
+
class IHttpClientConfigData {
|
|
35916
35914
|
}
|
|
35917
|
-
exports.
|
|
35915
|
+
exports.IHttpClientConfigData = IHttpClientConfigData;
|
|
35918
35916
|
class SlAgentMetadata {
|
|
35919
35917
|
}
|
|
35920
35918
|
exports.SlAgentMetadata = SlAgentMetadata;
|
|
@@ -36041,7 +36039,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36041
36039
|
if (v !== undefined) module.exports = v;
|
|
36042
36040
|
}
|
|
36043
36041
|
else if (typeof define === "function" && define.amd) {
|
|
36044
|
-
define(["require", "exports", "./contracts", "request", "zlib", "
|
|
36042
|
+
define(["require", "exports", "./contracts", "request", "zlib", "./http-verb", "../utils/validation-utils", "../../common/system-date", "../../common/system-date"], factory);
|
|
36045
36043
|
}
|
|
36046
36044
|
})(function (require, exports) {
|
|
36047
36045
|
"use strict";
|
|
@@ -36050,7 +36048,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36050
36048
|
const contracts_1 = require("./contracts");
|
|
36051
36049
|
const request = require("request");
|
|
36052
36050
|
const zlib = require("zlib");
|
|
36053
|
-
const sl_env_vars_1 = require("../constants/sl-env-vars");
|
|
36054
36051
|
const http_verb_1 = require("./http-verb");
|
|
36055
36052
|
const validation_utils_1 = require("../utils/validation-utils");
|
|
36056
36053
|
const system_date_1 = require("../../common/system-date");
|
|
@@ -36063,7 +36060,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36063
36060
|
this.logger = logger;
|
|
36064
36061
|
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(cfg, 'cfg');
|
|
36065
36062
|
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(logger, 'logger');
|
|
36066
|
-
this.defaultTimeout = this.getDefaultTimeout();
|
|
36067
36063
|
}
|
|
36068
36064
|
get(urlPath, callback, isNotFoundAcceptable = true) {
|
|
36069
36065
|
this.invokeHttpRequest(http_verb_1.HttpVerb.GET, urlPath, callback, null, null, null, isNotFoundAcceptable);
|
|
@@ -36243,21 +36239,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36243
36239
|
}
|
|
36244
36240
|
return opts;
|
|
36245
36241
|
}
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
if (timeout == null) {
|
|
36249
|
-
timeout = 60 * 1000 * 2;
|
|
36250
|
-
}
|
|
36251
|
-
timeout = Number(timeout);
|
|
36252
|
-
this.logger.debug(`Http timeout value is '${timeout}'.`);
|
|
36253
|
-
return timeout;
|
|
36242
|
+
get defaultTimeout() {
|
|
36243
|
+
return this.cfg.defaultTimeout || HttpClient.DEFAULT_HTTP_TIMEOUT;
|
|
36254
36244
|
}
|
|
36255
36245
|
}
|
|
36256
36246
|
exports.HttpClient = HttpClient;
|
|
36247
|
+
HttpClient.DEFAULT_HTTP_TIMEOUT = 60 * 1000 * 2;
|
|
36257
36248
|
});
|
|
36258
36249
|
|
|
36259
36250
|
}).call(this)}).call(this,require('_process'),require("buffer").Buffer)
|
|
36260
|
-
},{"../../common/system-date":330,"../
|
|
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){
|
|
36261
36252
|
(function (factory) {
|
|
36262
36253
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
36263
36254
|
var v = factory(require, exports);
|