easyproctor 0.0.26 → 0.0.27

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
@@ -8408,9 +8408,14 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8408
8408
  azureBlobUrl = proctoringConfig.azureBlobUrl;
8409
8409
  setBaseUrl(proctoringConfig.baseUrl);
8410
8410
  } else {
8411
- setConfiguration("iarisprod", "iaris", "?sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacupitfx&se=2025-12-28T06:34:02Z&st=2021-12-27T22:34:02Z&spr=https&sig=1rsgx389pHZCnJYd44peuWSfeCUdN8bQ9EfcLoMOdDc%3D");
8412
- azureBlobUrl = "https://iarisprod.blob.core.windows.net/iaris";
8413
- setBaseUrl("https://iaris.easyproctor.tech/api");
8411
+ const config = await makeRequest({
8412
+ url: `/AzureKey`,
8413
+ method: "GET",
8414
+ jwt: proctoringOptions.token
8415
+ });
8416
+ setConfiguration(config.account, config.containerName, config.sas);
8417
+ azureBlobUrl = config.azureBlobUrl;
8418
+ setBaseUrl(config.baseUrl);
8414
8419
  }
8415
8420
  if (!allowMultipleMonitors) {
8416
8421
  const hasMultipleMonitors = await checkIfhasMultipleMonitors();
@@ -8493,7 +8498,6 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8493
8498
  const { onProgress } = options;
8494
8499
  const record = await getRecord("exams");
8495
8500
  if (!record) {
8496
- console.log("OXE");
8497
8501
  throw PROCTORING_NOT_STARTED;
8498
8502
  }
8499
8503
  onStopSharingScreenCallback = void 0;
package/index.js CHANGED
@@ -8748,9 +8748,14 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8748
8748
  azureBlobUrl = proctoringConfig.azureBlobUrl;
8749
8749
  setBaseUrl(proctoringConfig.baseUrl);
8750
8750
  } else {
8751
- setConfiguration("iarisprod", "iaris", "?sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacupitfx&se=2025-12-28T06:34:02Z&st=2021-12-27T22:34:02Z&spr=https&sig=1rsgx389pHZCnJYd44peuWSfeCUdN8bQ9EfcLoMOdDc%3D");
8752
- azureBlobUrl = "https://iarisprod.blob.core.windows.net/iaris";
8753
- setBaseUrl("https://iaris.easyproctor.tech/api");
8751
+ const config = await makeRequest({
8752
+ url: `/AzureKey`,
8753
+ method: "GET",
8754
+ jwt: proctoringOptions.token
8755
+ });
8756
+ setConfiguration(config.account, config.containerName, config.sas);
8757
+ azureBlobUrl = config.azureBlobUrl;
8758
+ setBaseUrl(config.baseUrl);
8754
8759
  }
8755
8760
  if (!allowMultipleMonitors) {
8756
8761
  const hasMultipleMonitors = await checkIfhasMultipleMonitors();
@@ -8833,7 +8838,6 @@ function useProctoring(proctoringOptions, proctoringConfig) {
8833
8838
  const { onProgress } = options;
8834
8839
  const record = await getRecord("exams");
8835
8840
  if (!record) {
8836
- console.log("OXE");
8837
8841
  throw PROCTORING_NOT_STARTED;
8838
8842
  }
8839
8843
  onStopSharingScreenCallback = void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",