easyproctor 0.0.25 → 0.0.26

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
@@ -8395,7 +8395,10 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8395
8395
  const cameraFileName = `EP_${proctoringId}_camera_${index}.webm`;
8396
8396
  const screenFIleName = `EP_${proctoringId}_screen_${index}.webm`;
8397
8397
  const cameraFile = new File(finalCameraBuffer, cameraFileName, { type: "video/webm" });
8398
- const screenFile = new File(finalScreenBuffer, screenFIleName, { type: "video/webm" });
8398
+ let screenFile;
8399
+ if (finalScreenBuffer.length != 0) {
8400
+ screenFile = new File(finalScreenBuffer, screenFIleName, { type: "video/webm" });
8401
+ }
8399
8402
  return { cameraFile, screenFile };
8400
8403
  };
8401
8404
  async function start(options = defaultProctoringOptions) {
@@ -8514,7 +8517,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8514
8517
  record.sessions.forEach((session) => {
8515
8518
  if (session.cameraFile)
8516
8519
  allFiles.push(session.cameraFile);
8517
- if (session.screenFile)
8520
+ if (session.screenFile != void 0)
8518
8521
  allFiles.push(session.screenFile);
8519
8522
  });
8520
8523
  const totalFiles = allFiles.length;
@@ -8531,7 +8534,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8531
8534
  end: session.end,
8532
8535
  start: session.start,
8533
8536
  videoCameraUrl: session.cameraFile.name,
8534
- videoScreenUrl: session.screenFile.name
8537
+ videoScreenUrl: session.screenFile ? session.screenFile.name : ""
8535
8538
  });
8536
8539
  });
8537
8540
  try {
package/index.js CHANGED
@@ -8735,7 +8735,10 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8735
8735
  const cameraFileName = `EP_${proctoringId}_camera_${index}.webm`;
8736
8736
  const screenFIleName = `EP_${proctoringId}_screen_${index}.webm`;
8737
8737
  const cameraFile = new File(finalCameraBuffer, cameraFileName, { type: "video/webm" });
8738
- const screenFile = new File(finalScreenBuffer, screenFIleName, { type: "video/webm" });
8738
+ let screenFile;
8739
+ if (finalScreenBuffer.length != 0) {
8740
+ screenFile = new File(finalScreenBuffer, screenFIleName, { type: "video/webm" });
8741
+ }
8739
8742
  return { cameraFile, screenFile };
8740
8743
  };
8741
8744
  async function start(options = defaultProctoringOptions) {
@@ -8854,7 +8857,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8854
8857
  record.sessions.forEach((session) => {
8855
8858
  if (session.cameraFile)
8856
8859
  allFiles.push(session.cameraFile);
8857
- if (session.screenFile)
8860
+ if (session.screenFile != void 0)
8858
8861
  allFiles.push(session.screenFile);
8859
8862
  });
8860
8863
  const totalFiles = allFiles.length;
@@ -8871,7 +8874,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8871
8874
  end: session.end,
8872
8875
  start: session.start,
8873
8876
  videoCameraUrl: session.cameraFile.name,
8874
- videoScreenUrl: session.screenFile.name
8877
+ videoScreenUrl: session.screenFile ? session.screenFile.name : ""
8875
8878
  });
8876
8879
  });
8877
8880
  try {
@@ -1,7 +1,7 @@
1
1
  import AlertDTO from "../dtos/AlertDTO";
2
2
  export interface ProctoringSession {
3
3
  id: string;
4
- screenFile: File;
4
+ screenFile: File | undefined;
5
5
  cameraFile: File;
6
6
  alerts: AlertDTO[];
7
7
  start: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",