@nsshunt/stsvueutils 1.0.89 → 1.0.90

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.
@@ -3019,6 +3019,9 @@ chalk$2.stderr = Chalk$1({ level: stderrColor$1 ? stderrColor$1.level : 0 });
3019
3019
  chalk$2.stderr.supportsColor = stderrColor$1;
3020
3020
  const STSInstrumentControllerPluginKey = Symbol("instrumentController");
3021
3021
  const GetSTSInstrumentControllerPluginKey = () => STSInstrumentControllerPluginKey;
3022
+ const GetSTSInstrumentController = (app) => {
3023
+ return app.config.globalProperties.$sts[STSInstrumentControllerPluginKey];
3024
+ };
3022
3025
  new TextEncoder();
3023
3026
  new TextDecoder();
3024
3027
  var ExtData = (
@@ -5256,6 +5259,7 @@ class STSWorkerManager {
5256
5259
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5257
5260
  __privateAdd(this, _app, void 0);
5258
5261
  __publicField(this, "AddWorker", async (useWorkerFactory) => {
5262
+ var _a;
5259
5263
  let workerFactory;
5260
5264
  if (useWorkerFactory) {
5261
5265
  workerFactory = useWorkerFactory;
@@ -5275,7 +5279,7 @@ class STSWorkerManager {
5275
5279
  StopRunner: (runner) => __privateGet(this, _StopRunner).call(this, stsWorkerEx, runner),
5276
5280
  Stop: async () => __privateGet(this, _StopWorker).call(this, stsWorkerEx)
5277
5281
  };
5278
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`Creating new worker: [${stsWorkerEx.id}]`));
5282
+ (_a = __privateGet(this, _STSInstrumentController)) == null ? void 0 : _a.LogEx(chalk$1.yellow(`Creating new worker: [${stsWorkerEx.id}]`));
5279
5283
  console.log(`Adding worker: [${stsWorkerEx.id}]`);
5280
5284
  stsWorkerEx.worker.onmessage = function(data) {
5281
5285
  console.log(data.data);
@@ -5446,8 +5450,9 @@ class STSWorkerManager {
5446
5450
  }
5447
5451
  });
5448
5452
  __privateAdd(this, _CreateAsyncRunner, (workerEx, runnerOptions) => {
5453
+ var _a;
5449
5454
  __privateWrapper(this, _runner)._++;
5450
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`Creating new async runner: [${__privateGet(this, _runner)}]`));
5455
+ (_a = __privateGet(this, _STSInstrumentController)) == null ? void 0 : _a.LogEx(chalk$1.yellow(`Creating new async runner: [${__privateGet(this, _runner)}]`));
5451
5456
  const asyncRunnerContext = {
5452
5457
  nid: `${workerEx.workerThreadWorkerOptions.hostName}${ModelDelimeter.COMPONENT_SEPERATOR}${workerEx.workerThreadWorkerOptions.agentId}-${workerEx.workerThreadWorkerOptions.userAgent}${ModelDelimeter.NID_SEPERATOR}worker${workerEx.id}${ModelDelimeter.SEPERATOR}${__privateGet(this, _runner)}`,
5453
5458
  id: __privateGet(this, _runner).toString(),
@@ -5621,19 +5626,22 @@ class STSWorkerManager {
5621
5626
  } else {
5622
5627
  __privateSet(this, _options, {});
5623
5628
  }
5624
- console.log(chalk$1.yellow(`CompareSTSInstrumentControllerPluginKeyWMEx(): [${CompareSTSInstrumentControllerPluginKeyWMEx()}]`));
5625
- console.log(chalk$1.yellow(`Attempting to get STSInstrumentControllerPlugin using symbol: [${String(STSInstrumentControllerPluginKey)}]`));
5626
- __privateSet(this, _STSInstrumentController, app.config.globalProperties.$sts.aic);
5627
- console.log(chalk$1.yellow(app.config.globalProperties.$sts[STSInstrumentControllerPluginKey]));
5628
- console.log(chalk$1.yellow(__privateGet(this, _STSInstrumentController)));
5629
- console.log(chalk$1.yellow(app.config.globalProperties.$sts.aic));
5630
- console.log(chalk$1.yellow("keys within app.config.globalProperties.$sts"));
5631
- for (const [key] of Object.entries(app.config.globalProperties.$sts)) {
5632
- console.log(chalk$1.yellow(`${key}`));
5633
- }
5634
- if (!__privateGet(this, _STSInstrumentController)) {
5635
- console.log(chalk$1.yellow(`Failed to get STSInstrumentControllerPlugin using symbol: [${String(STSInstrumentControllerPluginKey)}]`));
5636
- }
5629
+ setTimeout(() => {
5630
+ console.log(chalk$1.yellow(`CompareSTSInstrumentControllerPluginKeyWMEx(): [${CompareSTSInstrumentControllerPluginKeyWMEx()}]`));
5631
+ console.log(chalk$1.yellow(`Attempting to get STSInstrumentControllerPlugin using symbol: [${String(STSInstrumentControllerPluginKey)}]`));
5632
+ __privateSet(this, _STSInstrumentController, app.config.globalProperties.$sts.aic);
5633
+ console.log(chalk$1.yellow(GetSTSInstrumentController(app)));
5634
+ console.log(chalk$1.yellow(app.config.globalProperties.$sts[STSInstrumentControllerPluginKey]));
5635
+ console.log(chalk$1.yellow(__privateGet(this, _STSInstrumentController)));
5636
+ console.log(chalk$1.yellow(app.config.globalProperties.$sts.aic));
5637
+ console.log(chalk$1.yellow("keys within app.config.globalProperties.$sts"));
5638
+ for (const [key] of Object.entries(app.config.globalProperties.$sts)) {
5639
+ console.log(chalk$1.yellow(`${key}`));
5640
+ }
5641
+ if (!__privateGet(this, _STSInstrumentController)) {
5642
+ console.log(chalk$1.yellow(`Failed to get STSInstrumentControllerPlugin using symbol: [${String(STSInstrumentControllerPluginKey)}]`));
5643
+ }
5644
+ }, 0);
5637
5645
  }
5638
5646
  get WorkersEx() {
5639
5647
  return __privateGet(this, _workersEx);