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