easyproctor 0.0.32 → 0.0.35

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
@@ -8260,18 +8260,15 @@ var Initialization = function() {
8260
8260
  })();
8261
8261
 
8262
8262
  // src/plugins/insights.ts
8263
- var insights = new Initialization({
8264
- config: {
8265
- instrumentationKey: "323792c9-1202-431d-85c4-36385daf9f20"
8266
- }
8267
- });
8263
+ var insights;
8268
8264
  var init = (key) => {
8269
- console.log(key);
8270
8265
  insights = new Initialization({
8271
8266
  config: {
8272
8267
  instrumentationKey: key
8273
8268
  }
8274
8269
  });
8270
+ insights.loadAppInsights();
8271
+ return insights;
8275
8272
  };
8276
8273
  var eventNames = {
8277
8274
  START: "start",
@@ -8290,7 +8287,6 @@ var trackers = {
8290
8287
  registerError: (proctoringId, description) => registerCustomEvent(eventNames.ERROR, { proctoringId, description }),
8291
8288
  registerUploadVideo: (proctoringId, success, description) => registerCustomEvent(eventNames.UPLOAD_VIDEO, { proctoringId, success, description })
8292
8289
  };
8293
- insights.loadAppInsights();
8294
8290
 
8295
8291
  // src/index.ts
8296
8292
  var defaultProctoringOptions = {
@@ -8300,7 +8296,7 @@ var defaultProctoringOptions = {
8300
8296
  allowOnlyFirstMonitor: true,
8301
8297
  captureScreen: true,
8302
8298
  proctoringType: "IMAGE",
8303
- insights: "323792c9-1202-431d-85c4-36385daf9f20"
8299
+ insights: ""
8304
8300
  };
8305
8301
  var azureBlobUrl = "";
8306
8302
  var _captureScreen = true;
package/index.js CHANGED
@@ -8600,18 +8600,15 @@ async function clearBuffers(table) {
8600
8600
 
8601
8601
  // src/plugins/insights.ts
8602
8602
  var import_applicationinsights_web = __toModule(require_applicationinsights_web());
8603
- var insights = new import_applicationinsights_web.ApplicationInsights({
8604
- config: {
8605
- instrumentationKey: "323792c9-1202-431d-85c4-36385daf9f20"
8606
- }
8607
- });
8603
+ var insights;
8608
8604
  var init = (key) => {
8609
- console.log(key);
8610
8605
  insights = new import_applicationinsights_web.ApplicationInsights({
8611
8606
  config: {
8612
8607
  instrumentationKey: key
8613
8608
  }
8614
8609
  });
8610
+ insights.loadAppInsights();
8611
+ return insights;
8615
8612
  };
8616
8613
  var eventNames = {
8617
8614
  START: "start",
@@ -8630,7 +8627,6 @@ var trackers = {
8630
8627
  registerError: (proctoringId, description) => registerCustomEvent(eventNames.ERROR, { proctoringId, description }),
8631
8628
  registerUploadVideo: (proctoringId, success, description) => registerCustomEvent(eventNames.UPLOAD_VIDEO, { proctoringId, success, description })
8632
8629
  };
8633
- insights.loadAppInsights();
8634
8630
 
8635
8631
  // src/index.ts
8636
8632
  var defaultProctoringOptions = {
@@ -8640,7 +8636,7 @@ var defaultProctoringOptions = {
8640
8636
  allowOnlyFirstMonitor: true,
8641
8637
  captureScreen: true,
8642
8638
  proctoringType: "IMAGE",
8643
- insights: "323792c9-1202-431d-85c4-36385daf9f20"
8639
+ insights: ""
8644
8640
  };
8645
8641
  var azureBlobUrl = "";
8646
8642
  var _captureScreen = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.32",
3
+ "version": "0.0.35",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -1,6 +1,5 @@
1
1
  import { ApplicationInsights } from '@microsoft/applicationinsights-web';
2
- declare let insights: ApplicationInsights;
3
- declare const init: (key: string) => void;
2
+ declare const init: (key: string) => ApplicationInsights;
4
3
  declare const trackers: {
5
4
  trackPage: (name: string, uri: string, properties?: {
6
5
  [key: string]: any;
@@ -11,5 +10,4 @@ declare const trackers: {
11
10
  registerError: (proctoringId: string, description: string) => void;
12
11
  registerUploadVideo: (proctoringId: string, success: boolean, description: string) => void;
13
12
  };
14
- export default insights;
15
13
  export { trackers, init };