@nsshunt/stsrunnerframework 1.0.133 → 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.
|
@@ -2383,12 +2383,18 @@ class STSWorkerManager {
|
|
|
2383
2383
|
// Filter by plan and/or tag. Leave blank to not use in filter.
|
|
2384
2384
|
__publicField(this, "GetArchiveList", (runnerSearchFilters) => {
|
|
2385
2385
|
try {
|
|
2386
|
-
return __privateGet(this, _archiveList).filter((runner) => {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2386
|
+
return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : () => {
|
|
2387
|
+
if (runnerSearchFilters.plan && runner.options.runnerPlan) {
|
|
2388
|
+
return runner.options.runnerPlan.plan.localeCompare(runnerSearchFilters.plan) === 0;
|
|
2389
|
+
} else {
|
|
2390
|
+
return false;
|
|
2391
|
+
}
|
|
2392
|
+
}).filter((runner) => !runnerSearchFilters.planInstanceId ? true : () => {
|
|
2393
|
+
if (runnerSearchFilters.planInstanceId && runner.options.runnerPlan) {
|
|
2394
|
+
return runner.options.runnerPlan.planInstanceId.localeCompare(runnerSearchFilters.planInstanceId) === 0;
|
|
2395
|
+
} else {
|
|
2396
|
+
return false;
|
|
2397
|
+
}
|
|
2392
2398
|
}).filter((runner) => {
|
|
2393
2399
|
var _a;
|
|
2394
2400
|
return !runnerSearchFilters.tag ? true : (_a = runner.options.tag) == null ? void 0 : _a.includes(runnerSearchFilters.tag);
|