@nsshunt/stsrunnerframework 2.0.22 → 2.0.23

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.
package/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __exportAll = (all, no_symbols) => {
11
11
  let target = {};
12
12
  for (var name in all) __defProp(target, name, {
@@ -1969,7 +1969,8 @@ var import_lodash_merge = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
1969
1969
  * @param {Array} [entries] The key-value pairs to cache.
1970
1970
  */
1971
1971
  function Stack(entries) {
1972
- this.size = (this.__data__ = new ListCache(entries)).size;
1972
+ var data = this.__data__ = new ListCache(entries);
1973
+ this.size = data.size;
1973
1974
  }
1974
1975
  /**
1975
1976
  * Removes all key-value entries from the stack.
@@ -4882,7 +4883,10 @@ var WorkerRegistry = class {
4882
4883
  if (worker) {
4883
4884
  const runnersMap = worker.GetAllRunnersExMap();
4884
4885
  if (runnersMap) {
4885
- if (runnersMap[runnerId]) delete runnersMap[runnerId];
4886
+ if (runnersMap[runnerId]) {
4887
+ delete runnersMap[runnerId];
4888
+ this.options.logger.debug(`DeleteRunner(): RunnerId: [${runnerId}] has been removed from this workerId: [${workerId}], Remaining Runners: [${Object.keys(worker.GetAllRunnersExMap()).length}]`);
4889
+ }
4886
4890
  }
4887
4891
  }
4888
4892
  };
@@ -5858,7 +5862,7 @@ var WorkerCommandCoordinator = class {
5858
5862
  * @returns Array of worker-level aggregated results.
5859
5863
  */
5860
5864
  ExecuteWorkerCommands = async (workerIds, command, runnerOptions) => {
5861
- this.options.logger.debug(`_ProcessWorkerCommands: workerIds: [${workerIds}] command: [${command}`);
5865
+ this.options.logger.debug(`_ProcessWorkerCommands: workerIds: [${workerIds}] command: [${command}]`);
5862
5866
  try {
5863
5867
  /**
5864
5868
  * Promise array holding each worker's command execution result.
@@ -10231,7 +10235,7 @@ var WorkerManagerProxy = class extends SocketIoClient {
10231
10235
  }));
10232
10236
  };
10233
10237
  _EmitStateChange = (runnerEx) => {
10234
- this.#debug(chalk.rgb(10, 50, 200)(`_EmitStateChange(): ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
10238
+ this.#debug(chalk.rgb(10, 50, 200)(`WorkerManagerProxy:_EmitStateChange(): ==>> Runner State Change: WorkerId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
10235
10239
  const stateChangeRetVal = {
10236
10240
  eventRequestCommand: "StateChange",
10237
10241
  type: IEventReturnValueBaseType.runner,
@@ -10244,7 +10248,7 @@ var WorkerManagerProxy = class extends SocketIoClient {
10244
10248
  this.socket?.emit("StateChange", stateChangeRetVal);
10245
10249
  };
10246
10250
  _EmitTelemetry = (runnerEx) => {
10247
- this.#debug(chalk.rgb(10, 50, 200)(`_EmitTelemetry(): ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
10251
+ this.#debug(chalk.rgb(10, 50, 200)(`WorkerManagerProxy:_EmitTelemetry(): ==>> WorkerId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
10248
10252
  const telemetryRetVal = {
10249
10253
  eventRequestCommand: "StateChange",
10250
10254
  type: IEventReturnValueBaseType.runner,