@nsshunt/stsrunnerframework 1.0.130 → 1.0.132

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.
@@ -2385,7 +2385,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2385
2385
  // Filter by plan and/or tag. Leave blank to not use in filter.
2386
2386
  __publicField(this, "GetArchiveList", (runnerSearchFilters) => {
2387
2387
  try {
2388
- return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : !runner.options.plan ? false : runner.options.plan.localeCompare(runnerSearchFilters.plan) === 0).filter((runner) => !runnerSearchFilters.planId ? true : !runner.options.planId ? false : runner.options.planId.localeCompare(runnerSearchFilters.planId) === 0).filter((runner) => !runnerSearchFilters.tag ? true : !runner.options.tag ? false : runner.options.tag.includes(runnerSearchFilters.tag)).filter((runner) => !runnerSearchFilters.userDataKey ? true : !runner.options.userData ? false : runner.options.userData[runnerSearchFilters.userDataKey] ? true : false);
2388
+ return __privateGet(this, _archiveList).filter((runner) => {
2389
+ var _a, _b;
2390
+ return !runnerSearchFilters.plan ? true : ((_b = (_a = runner.options.runnerPlan) == null ? void 0 : _a.plan) == null ? void 0 : _b.localeCompare(runnerSearchFilters.plan)) === 0;
2391
+ }).filter((runner) => {
2392
+ var _a, _b;
2393
+ return !runnerSearchFilters.planId ? true : ((_b = (_a = runner.options.runnerPlan) == null ? void 0 : _a.planId) == null ? void 0 : _b.localeCompare(runnerSearchFilters.planId)) === 0;
2394
+ }).filter((runner) => {
2395
+ var _a;
2396
+ return !runnerSearchFilters.tag ? true : (_a = runner.options.tag) == null ? void 0 : _a.includes(runnerSearchFilters.tag);
2397
+ }).filter((runner) => !runnerSearchFilters.userDataKey ? true : !runner.options.userData ? false : !!runner.options.userData[runnerSearchFilters.userDataKey]);
2389
2398
  } catch (error) {
2390
2399
  __privateGet(this, _error2).call(this, `GetArchiveList(): Error: [${error}]`);
2391
2400
  return [];
@@ -3213,11 +3222,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
3213
3222
  const retVal = {
3214
3223
  id: runnerEx.id,
3215
3224
  iteration: runnerEx.iteration,
3216
- state: runnerEx.state,
3217
- options: {
3218
- plan: runnerEx.options.plan
3219
- }
3225
+ state: runnerEx.state
3220
3226
  };
3227
+ if (runnerEx.options && runnerEx.options.runnerPlan) {
3228
+ retVal.options = {
3229
+ runnerPlan: { ...runnerEx.options.runnerPlan }
3230
+ };
3231
+ }
3221
3232
  return retVal;
3222
3233
  } catch (error) {
3223
3234
  __privateGet(this, _error2).call(this, `CreateRunnerCopy(): Error: [${error}]`);