@nsshunt/stsrunnerframework 2.0.17 → 2.0.18
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/dist/index.cjs +6 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +8 -65
- package/types/commonTypes.d.ts.map +1 -1
- package/types/runnerInstance.d.ts +5 -1
- package/types/runnerInstance.d.ts.map +1 -1
package/dist/index.cjs
CHANGED
|
@@ -74,13 +74,6 @@ var IWorkerState = /* @__PURE__ */ function(IWorkerState) {
|
|
|
74
74
|
IWorkerState["error"] = "error";
|
|
75
75
|
return IWorkerState;
|
|
76
76
|
}({});
|
|
77
|
-
var IRunnerSignalType = /* @__PURE__ */ function(IRunnerSignalType) {
|
|
78
|
-
IRunnerSignalType["duration"] = "duration";
|
|
79
|
-
IRunnerSignalType["iteration"] = "iteration";
|
|
80
|
-
IRunnerSignalType["log"] = "log";
|
|
81
|
-
IRunnerSignalType["user"] = "user";
|
|
82
|
-
return IRunnerSignalType;
|
|
83
|
-
}({});
|
|
84
77
|
var PublishMessageCommandsTestRunner = {
|
|
85
78
|
...eIWMessageCommands,
|
|
86
79
|
GetAccessToken: "__GetAccessToken",
|
|
@@ -3481,6 +3474,10 @@ var RunnerInstance = class {
|
|
|
3481
3474
|
/** Broker used to send runner commands to the worker and await responses. */
|
|
3482
3475
|
#messageBroker;
|
|
3483
3476
|
/**
|
|
3477
|
+
* Runtime data for this runner being executed within a runner plan
|
|
3478
|
+
*/
|
|
3479
|
+
runnerPlanRuntime;
|
|
3480
|
+
/**
|
|
3484
3481
|
* Construct a new live runner runtime instance.
|
|
3485
3482
|
*
|
|
3486
3483
|
* Behaviour:
|
|
@@ -3684,7 +3681,7 @@ var RunnerInstance = class {
|
|
|
3684
3681
|
iteration: this.iteration,
|
|
3685
3682
|
state: this.state
|
|
3686
3683
|
};
|
|
3687
|
-
if (this.
|
|
3684
|
+
if (this.runnerPlanRuntime) retVal.runnerPlanRuntime = { ...this.runnerPlanRuntime };
|
|
3688
3685
|
return retVal;
|
|
3689
3686
|
} catch (error) {
|
|
3690
3687
|
_nsshunt_stsutils.defaultLogger.error(`toRunnerCore(): Error: [${error}]`);
|
|
@@ -4070,7 +4067,7 @@ var ArchiveManager = class {
|
|
|
4070
4067
|
GetArchiveList = async (runnerSearchFilters) => {
|
|
4071
4068
|
this.options.logger.debug(`GetArchiveList()`);
|
|
4072
4069
|
try {
|
|
4073
|
-
return this.archiveList.filter((runner) => !runnerSearchFilters.plan ? true : runner.options.
|
|
4070
|
+
return this.archiveList.filter((runner) => !runnerSearchFilters.plan ? true : runner.options.runnerPlanInstance?.plan?.localeCompare(runnerSearchFilters.plan) === 0).filter((runner) => !runnerSearchFilters.planInstanceId ? true : runner.options.runnerPlanInstance?.planInstanceId?.localeCompare(runnerSearchFilters.planInstanceId) === 0).filter((runner) => !runnerSearchFilters.tag ? true : runner.options.tag?.includes(runnerSearchFilters.tag)).filter((runner) => !runnerSearchFilters.userDataKey ? true : !runner.options.userData ? false : !!runner.options.userData[runnerSearchFilters.userDataKey]);
|
|
4074
4071
|
} catch (error) {
|
|
4075
4072
|
this.options.logger.error(`GetArchiveList(): Error: [${error}]`);
|
|
4076
4073
|
return [];
|
|
@@ -6563,7 +6560,6 @@ var STSWorkerManager = class {
|
|
|
6563
6560
|
};
|
|
6564
6561
|
//#endregion
|
|
6565
6562
|
exports.AbstractRunnerExecutionWorker = AbstractRunnerExecutionWorker;
|
|
6566
|
-
exports.IRunnerSignalType = IRunnerSignalType;
|
|
6567
6563
|
exports.IRunnerState = IRunnerState;
|
|
6568
6564
|
exports.IWorkerState = IWorkerState;
|
|
6569
6565
|
exports.PublishMessageCommandsTestRunner = PublishMessageCommandsTestRunner;
|