easyproctor 0.0.48 → 0.0.49
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 +13 -23
- package/index.js +19 -18
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +19 -19
package/esm/index.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
for (let key of __getOwnPropNames(
|
|
14
|
-
if (!__hasOwnProp.call(
|
|
15
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
16
|
}
|
|
17
|
-
return
|
|
18
|
-
};
|
|
19
|
-
var __toModule = (module) => {
|
|
20
|
-
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
|
17
|
+
return to;
|
|
21
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
22
20
|
|
|
23
21
|
// src/plugins/mp3.js
|
|
24
22
|
var require_mp3 = __commonJS({
|
|
25
23
|
"src/plugins/mp3.js"(exports, module) {
|
|
24
|
+
"use strict";
|
|
26
25
|
(function(global2, factory) {
|
|
27
26
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global2.MicRecorder = factory();
|
|
28
27
|
})(exports, function() {
|
|
@@ -14341,8 +14340,8 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
14341
14340
|
audio: { deviceId: microphoneId },
|
|
14342
14341
|
video: {
|
|
14343
14342
|
deviceId: cameraId,
|
|
14344
|
-
width: { max: 1280, ideal:
|
|
14345
|
-
height: { max: 720, ideal:
|
|
14343
|
+
width: { max: 1280, ideal: 1280 },
|
|
14344
|
+
height: { max: 720, ideal: 720 },
|
|
14346
14345
|
frameRate: 15
|
|
14347
14346
|
}
|
|
14348
14347
|
};
|
|
@@ -14352,7 +14351,7 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
14352
14351
|
}
|
|
14353
14352
|
|
|
14354
14353
|
// src/modules/startAudioCapture.ts
|
|
14355
|
-
var import_mp3 =
|
|
14354
|
+
var import_mp3 = __toESM(require_mp3());
|
|
14356
14355
|
var stopRecord;
|
|
14357
14356
|
function startAudioCapture() {
|
|
14358
14357
|
const recorder2 = new import_mp3.default({
|
|
@@ -15398,7 +15397,6 @@ function optimizeObject(theObject) {
|
|
|
15398
15397
|
}
|
|
15399
15398
|
|
|
15400
15399
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EnvUtils.js
|
|
15401
|
-
"use strict";
|
|
15402
15400
|
var strWindow = "window";
|
|
15403
15401
|
var strDocument = "document";
|
|
15404
15402
|
var strDocumentMode = "documentMode";
|
|
@@ -15648,7 +15646,6 @@ function getDebugListener(config) {
|
|
|
15648
15646
|
}
|
|
15649
15647
|
|
|
15650
15648
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DiagnosticLogger.js
|
|
15651
|
-
"use strict";
|
|
15652
15649
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
15653
15650
|
var AiUserActionablePrefix = "AI: ";
|
|
15654
15651
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -15952,7 +15949,6 @@ function getGblPerfMgr() {
|
|
|
15952
15949
|
}
|
|
15953
15950
|
|
|
15954
15951
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryPluginChain.js
|
|
15955
|
-
"use strict";
|
|
15956
15952
|
var TelemetryPluginChain = function() {
|
|
15957
15953
|
function TelemetryPluginChain2(plugin, defItemCtx) {
|
|
15958
15954
|
var _self = this;
|
|
@@ -16008,7 +16004,6 @@ var TelemetryPluginChain = function() {
|
|
|
16008
16004
|
}();
|
|
16009
16005
|
|
|
16010
16006
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js
|
|
16011
|
-
"use strict";
|
|
16012
16007
|
function _createProxyChain(plugins, itemCtx) {
|
|
16013
16008
|
var proxies = [];
|
|
16014
16009
|
if (plugins && plugins.length > 0) {
|
|
@@ -16146,7 +16141,6 @@ var strIKey = "iKey";
|
|
|
16146
16141
|
var strExtensionConfig = "extensionConfig";
|
|
16147
16142
|
|
|
16148
16143
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js
|
|
16149
|
-
"use strict";
|
|
16150
16144
|
var strGetPlugin = "getPlugin";
|
|
16151
16145
|
var BaseTelemetryPlugin = function() {
|
|
16152
16146
|
function BaseTelemetryPlugin2() {
|
|
@@ -16212,7 +16206,6 @@ var BaseTelemetryPlugin = function() {
|
|
|
16212
16206
|
}();
|
|
16213
16207
|
|
|
16214
16208
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryHelpers.js
|
|
16215
|
-
"use strict";
|
|
16216
16209
|
var processTelemetry = "processTelemetry";
|
|
16217
16210
|
var priority = "priority";
|
|
16218
16211
|
var setNextPlugin = "setNextPlugin";
|
|
@@ -16252,7 +16245,6 @@ function sortPlugins(plugins) {
|
|
|
16252
16245
|
}
|
|
16253
16246
|
|
|
16254
16247
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ChannelController.js
|
|
16255
|
-
"use strict";
|
|
16256
16248
|
var ChannelControllerPriority = 500;
|
|
16257
16249
|
var ChannelValidationMessage = "Channel has invalid priority";
|
|
16258
16250
|
var ChannelController = function(_super) {
|
|
@@ -16573,7 +16565,6 @@ function uaDisallowsSameSiteNone(userAgent) {
|
|
|
16573
16565
|
}
|
|
16574
16566
|
|
|
16575
16567
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseCore.js
|
|
16576
|
-
"use strict";
|
|
16577
16568
|
var validationError = "Extensions must provide callback to initialize";
|
|
16578
16569
|
var strNotificationManager = "_notificationManager";
|
|
16579
16570
|
function _createPerfManager(core, notificationMgr) {
|
|
@@ -16939,7 +16930,6 @@ function mwcRandom32(signed) {
|
|
|
16939
16930
|
}
|
|
16940
16931
|
|
|
16941
16932
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CoreUtils.js
|
|
16942
|
-
"use strict";
|
|
16943
16933
|
var strVisibilityChangeEvt = "visibilitychange";
|
|
16944
16934
|
var strPageHide = "pagehide";
|
|
16945
16935
|
function addEventHandler(eventName, callback) {
|
package/index.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
var __export = (target, all) => {
|
|
12
|
-
__markAsModule(target);
|
|
13
12
|
for (var name in all)
|
|
14
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
14
|
};
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
18
|
-
for (let key of __getOwnPropNames(
|
|
19
|
-
if (!__hasOwnProp.call(
|
|
20
|
-
__defProp(
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
20
|
}
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
var __toModule = (module2) => {
|
|
25
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
21
|
+
return to;
|
|
26
22
|
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
25
|
|
|
28
26
|
// src/plugins/mp3.js
|
|
29
27
|
var require_mp3 = __commonJS({
|
|
30
28
|
"src/plugins/mp3.js"(exports, module2) {
|
|
29
|
+
"use strict";
|
|
31
30
|
(function(global2, factory) {
|
|
32
31
|
typeof exports === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global2.MicRecorder = factory();
|
|
33
32
|
})(exports, function() {
|
|
@@ -22639,9 +22638,11 @@ var require_applicationinsights_web = __commonJS({
|
|
|
22639
22638
|
});
|
|
22640
22639
|
|
|
22641
22640
|
// src/index.ts
|
|
22642
|
-
|
|
22641
|
+
var src_exports = {};
|
|
22642
|
+
__export(src_exports, {
|
|
22643
22643
|
useProctoring: () => useProctoring
|
|
22644
22644
|
});
|
|
22645
|
+
module.exports = __toCommonJS(src_exports);
|
|
22645
22646
|
|
|
22646
22647
|
// src/modules/recorder.ts
|
|
22647
22648
|
function recorder(stream, buffer) {
|
|
@@ -22682,8 +22683,8 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
22682
22683
|
audio: { deviceId: microphoneId },
|
|
22683
22684
|
video: {
|
|
22684
22685
|
deviceId: cameraId,
|
|
22685
|
-
width: { max: 1280, ideal:
|
|
22686
|
-
height: { max: 720, ideal:
|
|
22686
|
+
width: { max: 1280, ideal: 1280 },
|
|
22687
|
+
height: { max: 720, ideal: 720 },
|
|
22687
22688
|
frameRate: 15
|
|
22688
22689
|
}
|
|
22689
22690
|
};
|
|
@@ -22693,7 +22694,7 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
22693
22694
|
}
|
|
22694
22695
|
|
|
22695
22696
|
// src/modules/startAudioCapture.ts
|
|
22696
|
-
var import_mp3 =
|
|
22697
|
+
var import_mp3 = __toESM(require_mp3());
|
|
22697
22698
|
var stopRecord;
|
|
22698
22699
|
function startAudioCapture() {
|
|
22699
22700
|
const recorder2 = new import_mp3.default({
|
|
@@ -22762,7 +22763,7 @@ async function startScreenCapture(buffer, options) {
|
|
|
22762
22763
|
}
|
|
22763
22764
|
|
|
22764
22765
|
// src/modules/upload.ts
|
|
22765
|
-
var import_storage_blob =
|
|
22766
|
+
var import_storage_blob = require("@azure/storage-blob");
|
|
22766
22767
|
var account = "";
|
|
22767
22768
|
var containerName = "";
|
|
22768
22769
|
var sas = "";
|
|
@@ -22907,7 +22908,7 @@ async function clearBuffers(table) {
|
|
|
22907
22908
|
}
|
|
22908
22909
|
|
|
22909
22910
|
// src/plugins/insights.ts
|
|
22910
|
-
var import_applicationinsights_web =
|
|
22911
|
+
var import_applicationinsights_web = __toESM(require_applicationinsights_web());
|
|
22911
22912
|
var insights;
|
|
22912
22913
|
var init = (key) => {
|
|
22913
22914
|
insights = new import_applicationinsights_web.ApplicationInsights({
|