@nsshunt/stsrunnerframework 1.0.97 → 1.0.98

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.
@@ -2844,14 +2844,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2844
2844
  return __privateGet(this, _workersEx)[workerId][command]();
2845
2845
  }
2846
2846
  } else {
2847
- const retVal = [];
2848
- runnerIds.forEach((runnerId) => {
2849
- if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
2850
- if (command === "UpdateOptions") {
2851
- retVal.push(__privateGet(this, _workersEx)[workerId].runnersEx[runnerId][command](executionProfile));
2852
- } else {
2853
- retVal.push(__privateGet(this, _workersEx)[workerId].runnersEx[runnerId][command]());
2854
- }
2847
+ const retVal = Object.values(__privateGet(this, _workersEx)[workerId].runnersEx).filter((runnerEx) => runnerIds.length === 0 ? true : runnerIds.includes(runnerEx.id)).map((runnerEx) => {
2848
+ if (command === "UpdateOptions") {
2849
+ return __privateGet(this, _workersEx)[workerId].runnersEx[runnerEx.id][command](executionProfile);
2850
+ } else {
2851
+ return __privateGet(this, _workersEx)[workerId].runnersEx[runnerEx.id][command]();
2855
2852
  }
2856
2853
  });
2857
2854
  return retVal;