easyproctor-hml 0.0.27 → 0.0.29
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/esm/index.js +5 -5
- package/index.js +5 -5
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +16 -16
package/esm/index.js
CHANGED
|
@@ -29571,14 +29571,14 @@ var Proctoring = class {
|
|
|
29571
29571
|
this.sessionOptions = { ...getDefaultProctoringOptions, ...options };
|
|
29572
29572
|
this.videoOptions = validatePartialVideoOptions(_videoOptions);
|
|
29573
29573
|
await this.initConfig();
|
|
29574
|
-
console.log("verifyMultipleMonitors");
|
|
29575
|
-
console.log("this.state" + this.state);
|
|
29576
29574
|
await this.verifyMultipleMonitors(this.sessionOptions);
|
|
29577
29575
|
if (this.state != "Stop" /* Stop */) {
|
|
29578
|
-
throw PROCTORING_ALREADY_STARTED;
|
|
29576
|
+
throw PROCTORING_ALREADY_STARTED + " " + this.state;
|
|
29579
29577
|
}
|
|
29580
|
-
console.log("change Status");
|
|
29581
29578
|
this.state = "Starting" /* Starting */;
|
|
29579
|
+
if (this.state == "Starting" /* Starting */) {
|
|
29580
|
+
throw PROCTORING_ALREADY_STARTED + " LASCOU " + this.state;
|
|
29581
|
+
}
|
|
29582
29582
|
if (await this.repository.hasSessions()) {
|
|
29583
29583
|
await this.repository.clear();
|
|
29584
29584
|
}
|
|
@@ -29686,7 +29686,7 @@ Upload Services: ${uploaderServices}`, this.serviceType);
|
|
|
29686
29686
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
29687
29687
|
if (hasMultipleMonitors) {
|
|
29688
29688
|
trackers.registerError(this.proctoringId, "Multiplas telas detectadas!");
|
|
29689
|
-
throw MULTIPLE_MONITORS_DETECTED;
|
|
29689
|
+
throw MULTIPLE_MONITORS_DETECTED + "->" + this.state;
|
|
29690
29690
|
}
|
|
29691
29691
|
}
|
|
29692
29692
|
}
|
package/index.js
CHANGED
|
@@ -41105,14 +41105,14 @@ var Proctoring = class {
|
|
|
41105
41105
|
this.sessionOptions = { ...getDefaultProctoringOptions, ...options };
|
|
41106
41106
|
this.videoOptions = validatePartialVideoOptions(_videoOptions);
|
|
41107
41107
|
await this.initConfig();
|
|
41108
|
-
console.log("verifyMultipleMonitors");
|
|
41109
|
-
console.log("this.state" + this.state);
|
|
41110
41108
|
await this.verifyMultipleMonitors(this.sessionOptions);
|
|
41111
41109
|
if (this.state != "Stop" /* Stop */) {
|
|
41112
|
-
throw PROCTORING_ALREADY_STARTED;
|
|
41110
|
+
throw PROCTORING_ALREADY_STARTED + " " + this.state;
|
|
41113
41111
|
}
|
|
41114
|
-
console.log("change Status");
|
|
41115
41112
|
this.state = "Starting" /* Starting */;
|
|
41113
|
+
if (this.state == "Starting" /* Starting */) {
|
|
41114
|
+
throw PROCTORING_ALREADY_STARTED + " LASCOU " + this.state;
|
|
41115
|
+
}
|
|
41116
41116
|
if (await this.repository.hasSessions()) {
|
|
41117
41117
|
await this.repository.clear();
|
|
41118
41118
|
}
|
|
@@ -41220,7 +41220,7 @@ Upload Services: ${uploaderServices}`, this.serviceType);
|
|
|
41220
41220
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
41221
41221
|
if (hasMultipleMonitors) {
|
|
41222
41222
|
trackers.registerError(this.proctoringId, "Multiplas telas detectadas!");
|
|
41223
|
-
throw MULTIPLE_MONITORS_DETECTED;
|
|
41223
|
+
throw MULTIPLE_MONITORS_DETECTED + "->" + this.state;
|
|
41224
41224
|
}
|
|
41225
41225
|
}
|
|
41226
41226
|
}
|