@nsshunt/stsrunnerframework 1.0.132 → 1.0.134

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,12 +2385,18 @@ 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) => {
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;
2388
+ return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : () => {
2389
+ if (runnerSearchFilters.plan && runner.options.runnerPlan) {
2390
+ return runner.options.runnerPlan.plan.localeCompare(runnerSearchFilters.plan) === 0;
2391
+ } else {
2392
+ return false;
2393
+ }
2394
+ }).filter((runner) => !runnerSearchFilters.planInstanceId ? true : () => {
2395
+ if (runnerSearchFilters.planInstanceId && runner.options.runnerPlan) {
2396
+ return runner.options.runnerPlan.planInstanceId.localeCompare(runnerSearchFilters.planInstanceId) === 0;
2397
+ } else {
2398
+ return false;
2399
+ }
2394
2400
  }).filter((runner) => {
2395
2401
  var _a;
2396
2402
  return !runnerSearchFilters.tag ? true : (_a = runner.options.tag) == null ? void 0 : _a.includes(runnerSearchFilters.tag);