easyproctor-hml 0.0.66 → 0.0.68

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
@@ -22012,7 +22012,6 @@ Setting: ${settings}`);
22012
22012
  this.sendFrameInterval = setInterval(async () => {
22013
22013
  if (this.upload && this.backendToken && !pending) {
22014
22014
  undeliveredPackagesCount = 0;
22015
- console.log("enviando pack " + this.filesToUpload.length);
22016
22015
  let count = 0;
22017
22016
  const length = this.filesToUpload.length;
22018
22017
  while (count < length) {
@@ -23507,6 +23506,8 @@ var DownloadService = class {
23507
23506
  async upload(data, token) {
23508
23507
  try {
23509
23508
  const { file, onProgress } = data;
23509
+ console.log("DownloadService - file.name =" + file.name);
23510
+ console.log("DownloadService - file.length =" + file.size);
23510
23511
  const url = URL.createObjectURL(file);
23511
23512
  const a3 = document.createElement("a");
23512
23513
  document.body.appendChild(a3);
@@ -23578,7 +23579,9 @@ var ProctoringUploader = class {
23578
23579
  }
23579
23580
  }
23580
23581
  async uploadAllFiles(token, globalOnProgres) {
23582
+ console.log("Proctoring Uploader - uploadAllFiles - " + this.session.recordings.length);
23581
23583
  for (let i3 = 0; i3 < this.session.recordings.length; i3++) {
23584
+ console.log("Proctoring Uploader - uploadAllFiles - " + i3);
23582
23585
  const rec = this.session.recordings[i3];
23583
23586
  if (rec.upload) {
23584
23587
  continue;
@@ -23589,6 +23592,7 @@ var ProctoringUploader = class {
23589
23592
  globalOnProgres(relativePercentage);
23590
23593
  }
23591
23594
  };
23595
+ console.log("Proctoring Uploader - this.uploadFile()");
23592
23596
  const result = await this.uploadFile(rec, token, onProgress).catch(
23593
23597
  () => void 0
23594
23598
  );
@@ -23608,6 +23612,7 @@ var ProctoringUploader = class {
23608
23612
  } else {
23609
23613
  result.url && (rec.upload.awsUrl = result.url);
23610
23614
  }
23615
+ console.log("Proctoring Uploader - result =" + result);
23611
23616
  }
23612
23617
  }
23613
23618
  if (globalOnProgres) {
@@ -26670,20 +26675,11 @@ Error: ${error}`);
26670
26675
  await this.repository.save(this.proctoringSession);
26671
26676
  let uploader;
26672
26677
  let uploaderServices;
26673
- if (versionVerify() !== "1.0.0.0") {
26674
- uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
26675
- new DownloadService(this.proctoringId)
26676
- ]);
26677
- uploaderServices = "Download";
26678
- this.serviceType = "Download" /* Download */;
26679
- } else {
26680
- uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
26681
- new UploadService(this.proctoringId, this.backend),
26682
- new DownloadService(this.proctoringId)
26683
- ]);
26684
- uploaderServices = "Upload";
26685
- this.serviceType = "Upload" /* Upload */;
26686
- }
26678
+ uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
26679
+ new DownloadService(this.proctoringId)
26680
+ ]);
26681
+ uploaderServices = "Download";
26682
+ this.serviceType = "Download" /* Download */;
26687
26683
  let extensionSuccess = false;
26688
26684
  if (this.extension.hasExtension) {
26689
26685
  await this.extension.start().then((response) => {
package/index.js CHANGED
@@ -33560,7 +33560,6 @@ Setting: ${settings}`);
33560
33560
  this.sendFrameInterval = setInterval(async () => {
33561
33561
  if (this.upload && this.backendToken && !pending) {
33562
33562
  undeliveredPackagesCount = 0;
33563
- console.log("enviando pack " + this.filesToUpload.length);
33564
33563
  let count = 0;
33565
33564
  const length = this.filesToUpload.length;
33566
33565
  while (count < length) {
@@ -35055,6 +35054,8 @@ var DownloadService = class {
35055
35054
  async upload(data, token) {
35056
35055
  try {
35057
35056
  const { file, onProgress } = data;
35057
+ console.log("DownloadService - file.name =" + file.name);
35058
+ console.log("DownloadService - file.length =" + file.size);
35058
35059
  const url2 = URL.createObjectURL(file);
35059
35060
  const a3 = document.createElement("a");
35060
35061
  document.body.appendChild(a3);
@@ -35126,7 +35127,9 @@ var ProctoringUploader = class {
35126
35127
  }
35127
35128
  }
35128
35129
  async uploadAllFiles(token, globalOnProgres) {
35130
+ console.log("Proctoring Uploader - uploadAllFiles - " + this.session.recordings.length);
35129
35131
  for (let i3 = 0; i3 < this.session.recordings.length; i3++) {
35132
+ console.log("Proctoring Uploader - uploadAllFiles - " + i3);
35130
35133
  const rec = this.session.recordings[i3];
35131
35134
  if (rec.upload) {
35132
35135
  continue;
@@ -35137,6 +35140,7 @@ var ProctoringUploader = class {
35137
35140
  globalOnProgres(relativePercentage);
35138
35141
  }
35139
35142
  };
35143
+ console.log("Proctoring Uploader - this.uploadFile()");
35140
35144
  const result = await this.uploadFile(rec, token, onProgress).catch(
35141
35145
  () => void 0
35142
35146
  );
@@ -35156,6 +35160,7 @@ var ProctoringUploader = class {
35156
35160
  } else {
35157
35161
  result.url && (rec.upload.awsUrl = result.url);
35158
35162
  }
35163
+ console.log("Proctoring Uploader - result =" + result);
35159
35164
  }
35160
35165
  }
35161
35166
  if (globalOnProgres) {
@@ -38218,20 +38223,11 @@ Error: ${error}`);
38218
38223
  await this.repository.save(this.proctoringSession);
38219
38224
  let uploader;
38220
38225
  let uploaderServices;
38221
- if (versionVerify() !== "1.0.0.0") {
38222
- uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
38223
- new DownloadService(this.proctoringId)
38224
- ]);
38225
- uploaderServices = "Download";
38226
- this.serviceType = "Download" /* Download */;
38227
- } else {
38228
- uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
38229
- new UploadService(this.proctoringId, this.backend),
38230
- new DownloadService(this.proctoringId)
38231
- ]);
38232
- uploaderServices = "Upload";
38233
- this.serviceType = "Upload" /* Upload */;
38234
- }
38226
+ uploader = new ProctoringUploader(this.proctoringSession, this.proctoringId, [
38227
+ new DownloadService(this.proctoringId)
38228
+ ]);
38229
+ uploaderServices = "Download";
38230
+ this.serviceType = "Download" /* Download */;
38235
38231
  let extensionSuccess = false;
38236
38232
  if (this.extension.hasExtension) {
38237
38233
  await this.extension.start().then((response) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor-hml",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",