@nsshunt/stsrunnerframework 1.0.122 → 1.0.124

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.
@@ -2408,9 +2408,9 @@ class STSWorkerManager {
2408
2408
  }
2409
2409
  });
2410
2410
  // Filter by plan and/or tag. Leave blank to not use in filter.
2411
- __publicField(this, "GetArchiveList", (plan, tag) => {
2411
+ __publicField(this, "GetArchiveList", (runnerSearchFilters) => {
2412
2412
  try {
2413
- return __privateGet(this, _archiveList).filter((runner) => plan.localeCompare("") === 0 ? true : runner.options.plan.localeCompare(plan) === 0).filter((runner) => tag.localeCompare("") === 0 ? true : runner.options.tag.localeCompare(tag) === 0);
2413
+ return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : runner.options.plan.localeCompare(runnerSearchFilters.plan) === 0).filter((runner) => !runnerSearchFilters.planId ? true : runner.options.planId.localeCompare(runnerSearchFilters.planId) === 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]);
2414
2414
  } catch (error) {
2415
2415
  __privateGet(this, _error2).call(this, `GetArchiveList(): Error: [${error}]`);
2416
2416
  throw error;