easyproctor 0.0.39 → 0.0.40

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 CHANGED
@@ -22769,7 +22769,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
22769
22769
  }
22770
22770
  const hasExam = await getRecord("exams");
22771
22771
  if (hasExam != null) {
22772
- throw PROCTORING_ALREADY_STARTED;
22772
+ await clearBuffers("exams");
22773
22773
  }
22774
22774
  try {
22775
22775
  const { cameraStream, _screenStream } = await _startCapture({ cameraId, microphoneId, allowOnlyFirstMonitor, captureScreen, proctoringType });
package/index.js CHANGED
@@ -23105,7 +23105,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
23105
23105
  }
23106
23106
  const hasExam = await getRecord("exams");
23107
23107
  if (hasExam != null) {
23108
- throw PROCTORING_ALREADY_STARTED;
23108
+ await clearBuffers("exams");
23109
23109
  }
23110
23110
  try {
23111
23111
  const { cameraStream, _screenStream } = await _startCapture({ cameraId, microphoneId, allowOnlyFirstMonitor, captureScreen, proctoringType });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",