@nsshunt/stsrunnerframework 1.0.121 → 1.0.123

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