slnodejs 6.1.1163 → 6.2.1
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/README.md +1 -1
- package/browser-agent/dist/browser-agent-all.js +16 -7
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/package.json +4 -2
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +8 -2
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +9 -2
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +123 -333
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/config/config-resolver.js +175 -0
- package/tsOutputs/cli-parse/config/config-resolver.js.map +1 -0
- package/tsOutputs/cli-parse/config/config-store.js +40 -0
- package/tsOutputs/cli-parse/config/config-store.js.map +1 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js +161 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js +183 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js +21 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js +59 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js +146 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js +11 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js +32 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js +236 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js +86 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js +38 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js +44 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js +157 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js.map +1 -0
- package/tsOutputs/cli-parse/config/schema.js +63 -0
- package/tsOutputs/cli-parse/config/schema.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js +53 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js +33 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/transformers.js +13 -0
- package/tsOutputs/cli-parse/config/transformers.js.map +1 -0
- package/tsOutputs/cli-parse/config/validation-error.js +40 -0
- package/tsOutputs/cli-parse/config/validation-error.js.map +1 -0
- package/tsOutputs/cli-parse/contracts.d.ts +6 -1
- package/tsOutputs/cli-parse/contracts.js +5 -0
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +2 -18
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +117 -117
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +22 -24
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +73 -251
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +21 -19
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +18 -58
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +17 -14
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/instrument-executor.js +24 -93
- package/tsOutputs/cli-parse/executors/instrument-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +13 -7
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +2 -3
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js +5 -2
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +25 -6
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +9 -12
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +17 -6
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js +15 -15
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +21 -18
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +29 -40
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +28 -22
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +3 -3
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +2 -2
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.d.ts +5 -2
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.d.ts +1 -1
- package/tsOutputs/common/ignored-files-handler.js +6 -1
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.d.ts +2 -2
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/messages/message-keys.generated.js +1 -1
package/README.md
CHANGED
|
@@ -967,7 +967,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
967
967
|
"use strict";
|
|
968
968
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
969
969
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
970
|
-
exports.SL_AGENT_VERSION = '6.1
|
|
970
|
+
exports.SL_AGENT_VERSION = '6.2.1';
|
|
971
971
|
exports.SL_AGENT_TYPE = 'browser';
|
|
972
972
|
});
|
|
973
973
|
|
|
@@ -3185,6 +3185,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
3185
3185
|
COMMANDS["SCANNED"] = "scanned";
|
|
3186
3186
|
COMMANDS["DRY_RUN"] = "dryRun";
|
|
3187
3187
|
COMMANDS["INSTRUMENT"] = "instrument";
|
|
3188
|
+
COMMANDS["COMPLETE_SCAN"] = "completeScan";
|
|
3189
|
+
COMMANDS["OPEN_TEST_STAGE"] = "openTestStage";
|
|
3190
|
+
COMMANDS["START_TEST_STAGE"] = "startTestStage";
|
|
3191
|
+
COMMANDS["CLOSE_TEST_STAGE"] = "closeTestStage";
|
|
3192
|
+
COMMANDS["END_TEST_STAGE"] = "endTestStage";
|
|
3188
3193
|
})(COMMANDS = exports.COMMANDS || (exports.COMMANDS = {}));
|
|
3189
3194
|
var COMMAND_ARGS;
|
|
3190
3195
|
(function (COMMAND_ARGS) {
|
|
@@ -4858,15 +4863,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
4858
4863
|
if (v !== undefined) module.exports = v;
|
|
4859
4864
|
}
|
|
4860
4865
|
else if (typeof define === "function" && define.amd) {
|
|
4861
|
-
define(["require", "exports", "events", "
|
|
4866
|
+
define(["require", "exports", "events", "object-assign", "./config-system", "jwt-decode"], factory);
|
|
4862
4867
|
}
|
|
4863
4868
|
})(function (require, exports) {
|
|
4864
4869
|
"use strict";
|
|
4865
4870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4866
4871
|
exports.ConfigProcess = void 0;
|
|
4867
4872
|
const events = require("events");
|
|
4868
|
-
const config_system_1 = require("./config-system");
|
|
4869
4873
|
const assign = require("object-assign");
|
|
4874
|
+
const config_system_1 = require("./config-system");
|
|
4870
4875
|
const jwt_decode_1 = require("jwt-decode");
|
|
4871
4876
|
class ConfigProcess extends events.EventEmitter {
|
|
4872
4877
|
constructor(cfg, watchdog, backendProxy, logger) {
|
|
@@ -4895,8 +4900,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
4895
4900
|
reloadConfigFromServer(callback) {
|
|
4896
4901
|
this.backendProxy.getRemoteConfig({
|
|
4897
4902
|
appName: this.cfg.appName.value,
|
|
4898
|
-
|
|
4899
|
-
|
|
4903
|
+
branchName: this.cfg.branch.value,
|
|
4904
|
+
buildName: this.cfg.build.value,
|
|
4900
4905
|
labId: this.cfg.labId.value,
|
|
4901
4906
|
testStage: this.cfg.testStage.value,
|
|
4902
4907
|
}, (err, updatedCfg) => {
|
|
@@ -5357,6 +5362,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
5357
5362
|
static signalForwardingTimeout() {
|
|
5358
5363
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.SIGNAL_FORWARDING_TIMEOUT);
|
|
5359
5364
|
}
|
|
5365
|
+
static acceptAllRemoteParams() {
|
|
5366
|
+
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.ACCEPT_ALL_REMOTE_PARAMS, true);
|
|
5367
|
+
}
|
|
5360
5368
|
}
|
|
5361
5369
|
exports.SlEnvVars = SlEnvVars;
|
|
5362
5370
|
SlEnvVars.PRODUCTION_LISTENER = 'SL_production';
|
|
@@ -5382,6 +5390,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
5382
5390
|
SlEnvVars.PR_ID = 'SL_prID';
|
|
5383
5391
|
SlEnvVars.FORWARD_SIGNALS = 'SL_forwardSignals';
|
|
5384
5392
|
SlEnvVars.SIGNAL_FORWARDING_TIMEOUT = 'SL_signalForwardingTimeout';
|
|
5393
|
+
SlEnvVars.ACCEPT_ALL_REMOTE_PARAMS = 'SL_acceptAllRemoteParams';
|
|
5385
5394
|
SlEnvVars.CIA = (_a = class {
|
|
5386
5395
|
static getFileExtensions() {
|
|
5387
5396
|
return process.env[SlEnvVars.CIA.FILE_EXTENSIONS];
|
|
@@ -8033,7 +8042,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8033
8042
|
}
|
|
8034
8043
|
getRemoteConfig(request, callback) {
|
|
8035
8044
|
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(request, constants_1.Constants.REQUEST);
|
|
8036
|
-
const url = sl_routes_1.SLRoutes.configV3(this.agentInstanceData, request.appName, request.
|
|
8045
|
+
const url = sl_routes_1.SLRoutes.configV3(this.agentInstanceData, request.appName, request.branchName, request.buildName, request.testStage, request.labId);
|
|
8037
8046
|
this.client.get(url, (err, body) => {
|
|
8038
8047
|
this.invokeCallback(callback, err, body);
|
|
8039
8048
|
});
|
|
@@ -8041,7 +8050,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8041
8050
|
getRemoteConfigPromise(request) {
|
|
8042
8051
|
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(request, constants_1.Constants.REQUEST);
|
|
8043
8052
|
return new Promise((resolve, reject) => {
|
|
8044
|
-
const url = sl_routes_1.SLRoutes.configV3(this.agentInstanceData, request.appName, request.
|
|
8053
|
+
const url = sl_routes_1.SLRoutes.configV3(this.agentInstanceData, request.appName, request.branchName, request.buildName, request.testStage, request.labId);
|
|
8045
8054
|
this.client.get(url, (err, body) => {
|
|
8046
8055
|
if (err) {
|
|
8047
8056
|
reject(err);
|