easyproctor 0.0.78 → 0.0.79

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/README.md CHANGED
@@ -219,9 +219,9 @@ const {
219
219
  });
220
220
  ```
221
221
 
222
- ## Release Note V 0.0.78
222
+ ## Release Note V 0.0.79
223
223
 
224
- - Teste em pegar o HASH do Safe Browser
224
+ - Teste em pegar o versão do Safe Browser
225
225
 
226
226
  ## License
227
227
 
package/esm/index.js CHANGED
@@ -28793,6 +28793,14 @@ var azureBlobUrl = "";
28793
28793
  var _captureScreen = true;
28794
28794
  var config;
28795
28795
  function useProctoring(proctoringOptions, homolConfig = false) {
28796
+ const versionVerify = () => {
28797
+ const agentStr = window.navigator.userAgent.split("SEB/");
28798
+ if (agentStr.length > 1)
28799
+ alert(agentStr[1]);
28800
+ else
28801
+ alert("1.0.0.0");
28802
+ };
28803
+ versionVerify();
28796
28804
  ["examId", "clientId", "token"].forEach((el) => {
28797
28805
  const key = el;
28798
28806
  if (!proctoringOptions[key]) {
@@ -28950,7 +28958,6 @@ function useProctoring(proctoringOptions, homolConfig = false) {
28950
28958
  init(config.insights);
28951
28959
  }
28952
28960
  async function start(options = defaultProctoringOptions, videoOptions = { width: 640, height: 480 }) {
28953
- ehSafeBrowser();
28954
28961
  console.log(lastClick);
28955
28962
  if (lastClick >= Date.now() - delay)
28956
28963
  throw PROCTORING_ALREADY_STARTED;
@@ -29285,16 +29292,6 @@ function useProctoring(proctoringOptions, homolConfig = false) {
29285
29292
  function onChangeDevices(cb) {
29286
29293
  onChangeDevicesCallback = cb;
29287
29294
  }
29288
- function readSafe(url) {
29289
- const r = new XMLHttpRequest();
29290
- r.open("GET", url, false);
29291
- r.send(null);
29292
- return r.getResponseHeader("x-safe-browser");
29293
- }
29294
- function ehSafeBrowser() {
29295
- const result = readSafe(window.navigator.userAgent);
29296
- alert(`O HASH \xE9: ${result}`);
29297
- }
29298
29295
  return { start, startAudio, checkDevices, finish, finishAudio, closeCheckDevices, pause, resume, onFocus, onLostFocus, onChangeDevices, enumarateDevices, checkPermissions, checkIfhasMultipleMonitors, onStopSharingScreen };
29299
29296
  }
29300
29297
  if (typeof window !== "undefined") {
package/index.js CHANGED
@@ -40314,6 +40314,14 @@ var azureBlobUrl = "";
40314
40314
  var _captureScreen = true;
40315
40315
  var config;
40316
40316
  function useProctoring(proctoringOptions, homolConfig = false) {
40317
+ const versionVerify = () => {
40318
+ const agentStr = window.navigator.userAgent.split("SEB/");
40319
+ if (agentStr.length > 1)
40320
+ alert(agentStr[1]);
40321
+ else
40322
+ alert("1.0.0.0");
40323
+ };
40324
+ versionVerify();
40317
40325
  ["examId", "clientId", "token"].forEach((el) => {
40318
40326
  const key = el;
40319
40327
  if (!proctoringOptions[key]) {
@@ -40471,7 +40479,6 @@ function useProctoring(proctoringOptions, homolConfig = false) {
40471
40479
  init(config.insights);
40472
40480
  }
40473
40481
  async function start(options = defaultProctoringOptions, videoOptions = { width: 640, height: 480 }) {
40474
- ehSafeBrowser();
40475
40482
  console.log(lastClick);
40476
40483
  if (lastClick >= Date.now() - delay)
40477
40484
  throw PROCTORING_ALREADY_STARTED;
@@ -40806,16 +40813,6 @@ function useProctoring(proctoringOptions, homolConfig = false) {
40806
40813
  function onChangeDevices(cb) {
40807
40814
  onChangeDevicesCallback = cb;
40808
40815
  }
40809
- function readSafe(url2) {
40810
- const r = new XMLHttpRequest();
40811
- r.open("GET", url2, false);
40812
- r.send(null);
40813
- return r.getResponseHeader("x-safe-browser");
40814
- }
40815
- function ehSafeBrowser() {
40816
- const result = readSafe(window.navigator.userAgent);
40817
- alert(`O HASH \xE9: ${result}`);
40818
- }
40819
40816
  return { start, startAudio, checkDevices, finish, finishAudio, closeCheckDevices, pause, resume, onFocus, onLostFocus, onChangeDevices, enumarateDevices, checkPermissions, checkIfhasMultipleMonitors, onStopSharingScreen };
40820
40817
  }
40821
40818
  if (typeof window !== "undefined") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",