@nsshunt/ststestrunner 1.1.36 → 1.1.37
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/ststestrunner.cjs +10 -5
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +10 -5
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/workerTestCaseLogger.d.ts +1 -1
- package/types/libmodule/workerTestCaseLogger.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -35789,11 +35789,16 @@ var WorkerTestCaseLogger = class {
|
|
|
35789
35789
|
#socketIoClient;
|
|
35790
35790
|
#logger;
|
|
35791
35791
|
constructor(opts) {
|
|
35792
|
-
|
|
35793
|
-
|
|
35794
|
-
|
|
35795
|
-
|
|
35796
|
-
|
|
35792
|
+
try {
|
|
35793
|
+
this.#options = opts;
|
|
35794
|
+
if (this.#options.outputToDefaultLogger === true) this.#logger = defaultLogger;
|
|
35795
|
+
else this.#logger = emptyLogger;
|
|
35796
|
+
this.#socketIoClient = new WorkerTestCaseLogPublisher(this.#options.rooms);
|
|
35797
|
+
this.#socketIoClient.Start(opts.imendpoint, opts.import, opts.imsocketnamespace);
|
|
35798
|
+
} catch (error) {
|
|
35799
|
+
console.error(error);
|
|
35800
|
+
throw error;
|
|
35801
|
+
}
|
|
35797
35802
|
}
|
|
35798
35803
|
UsePrefix = (message) => {
|
|
35799
35804
|
return `[][] ==>> ${message}`;
|