@nsshunt/stsrunnerframework 1.0.63 → 1.0.65
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/stsrunnerframework.mjs +50 -2
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +50 -2
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +0 -1
- package/types/commonTypes.d.ts.map +1 -1
- package/types/wmworkerProcess.d.ts +1 -10
- package/types/wmworkerProcess.d.ts.map +1 -1
- package/types/workerManager.d.ts +9 -2
- package/types/workerManager.d.ts.map +1 -1
|
@@ -2020,7 +2020,6 @@ function v4$1(options, buf, offset) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
chalk$1.level = 3;
|
|
2022
2022
|
class STSWorkerManager {
|
|
2023
|
-
//@@#rest01Client: Rest01Client
|
|
2024
2023
|
constructor(options) {
|
|
2025
2024
|
__privateAdd(this, _STSWorkerManager_instances);
|
|
2026
2025
|
//#agentSession: string = null;
|
|
@@ -2456,12 +2455,61 @@ class STSWorkerManager {
|
|
|
2456
2455
|
}
|
|
2457
2456
|
return busyWorker;
|
|
2458
2457
|
});
|
|
2458
|
+
__publicField(this, "StartAllWorkers", async () => {
|
|
2459
|
+
const promArray = [];
|
|
2460
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2461
|
+
promArray.push(stsWorker.Start());
|
|
2462
|
+
}
|
|
2463
|
+
return await Promise.all(promArray);
|
|
2464
|
+
});
|
|
2459
2465
|
__publicField(this, "StopAllWorkers", async () => {
|
|
2460
2466
|
const promArray = [];
|
|
2461
2467
|
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2462
2468
|
promArray.push(stsWorker.Stop());
|
|
2463
2469
|
}
|
|
2464
|
-
await Promise.all(promArray);
|
|
2470
|
+
return await Promise.all(promArray);
|
|
2471
|
+
});
|
|
2472
|
+
__publicField(this, "PauseAllWorkers", async () => {
|
|
2473
|
+
const promArray = [];
|
|
2474
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2475
|
+
promArray.push(stsWorker.Pause());
|
|
2476
|
+
}
|
|
2477
|
+
return await Promise.all(promArray);
|
|
2478
|
+
});
|
|
2479
|
+
__publicField(this, "ResumeAllWorkers", async () => {
|
|
2480
|
+
const promArray = [];
|
|
2481
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2482
|
+
promArray.push(stsWorker.Resume());
|
|
2483
|
+
}
|
|
2484
|
+
return await Promise.all(promArray);
|
|
2485
|
+
});
|
|
2486
|
+
__publicField(this, "ExecuteAllWorkers", async () => {
|
|
2487
|
+
const promArray = [];
|
|
2488
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2489
|
+
promArray.push(stsWorker.Execute());
|
|
2490
|
+
}
|
|
2491
|
+
return await Promise.all(promArray);
|
|
2492
|
+
});
|
|
2493
|
+
__publicField(this, "ResetAllWorkers", async () => {
|
|
2494
|
+
const promArray = [];
|
|
2495
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2496
|
+
promArray.push(stsWorker.Reset());
|
|
2497
|
+
}
|
|
2498
|
+
return await Promise.all(promArray);
|
|
2499
|
+
});
|
|
2500
|
+
__publicField(this, "UpdateAllWorkers", async (options) => {
|
|
2501
|
+
const promArray = [];
|
|
2502
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2503
|
+
promArray.push(stsWorker.UpdateOptions(options));
|
|
2504
|
+
}
|
|
2505
|
+
return await Promise.all(promArray);
|
|
2506
|
+
});
|
|
2507
|
+
__publicField(this, "TerminateAllWorkers", async () => {
|
|
2508
|
+
const promArray = [];
|
|
2509
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2510
|
+
promArray.push(stsWorker.Terminate());
|
|
2511
|
+
}
|
|
2512
|
+
return await Promise.all(promArray);
|
|
2465
2513
|
});
|
|
2466
2514
|
if (options) {
|
|
2467
2515
|
__privateSet(this, _options4, options);
|