easyproctor 0.0.46 → 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 +34 -26
- package/index.js +32 -31
- package/package.json +3 -8
- package/unpkg/easyproctor.min.js +19 -19
package/esm/index.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
2
|
-
return mod || (0, cb[
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
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
|
+
}
|
|
17
|
+
return to;
|
|
3
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));
|
|
4
20
|
|
|
5
|
-
//
|
|
6
|
-
var
|
|
7
|
-
"
|
|
21
|
+
// src/plugins/mp3.js
|
|
22
|
+
var require_mp3 = __commonJS({
|
|
23
|
+
"src/plugins/mp3.js"(exports, module) {
|
|
24
|
+
"use strict";
|
|
8
25
|
(function(global2, factory) {
|
|
9
26
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global2.MicRecorder = factory();
|
|
10
27
|
})(exports, function() {
|
|
@@ -13956,15 +13973,15 @@ var require_dist = __commonJS({
|
|
|
13956
13973
|
var VBRTag_1 = VBRTag;
|
|
13957
13974
|
var new_byte = common.new_byte;
|
|
13958
13975
|
var assert = common.assert;
|
|
13959
|
-
Lame = Lame_1;
|
|
13960
|
-
Presets = Presets_1;
|
|
13961
|
-
GainAnalysis = GainAnalysis_1;
|
|
13962
|
-
QuantizePVT = QuantizePVT_1;
|
|
13963
|
-
Quantize = Quantize_1;
|
|
13964
|
-
Takehiro = Takehiro_1;
|
|
13965
|
-
Reservoir = Reservoir_1;
|
|
13966
|
-
MPEGMode = MPEGMode_1;
|
|
13967
|
-
BitStream = BitStream_1;
|
|
13976
|
+
var Lame = Lame_1;
|
|
13977
|
+
var Presets = Presets_1;
|
|
13978
|
+
var GainAnalysis = GainAnalysis_1;
|
|
13979
|
+
var QuantizePVT = QuantizePVT_1;
|
|
13980
|
+
var Quantize = Quantize_1;
|
|
13981
|
+
var Takehiro = Takehiro_1;
|
|
13982
|
+
var Reservoir = Reservoir_1;
|
|
13983
|
+
var MPEGMode = MPEGMode_1;
|
|
13984
|
+
var BitStream = BitStream_1;
|
|
13968
13985
|
function GetAudio() {
|
|
13969
13986
|
var parse;
|
|
13970
13987
|
var mpg;
|
|
@@ -14323,8 +14340,8 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
14323
14340
|
audio: { deviceId: microphoneId },
|
|
14324
14341
|
video: {
|
|
14325
14342
|
deviceId: cameraId,
|
|
14326
|
-
width: { max: 1280, ideal:
|
|
14327
|
-
height: { max: 720, ideal:
|
|
14343
|
+
width: { max: 1280, ideal: 1280 },
|
|
14344
|
+
height: { max: 720, ideal: 720 },
|
|
14328
14345
|
frameRate: 15
|
|
14329
14346
|
}
|
|
14330
14347
|
};
|
|
@@ -14334,10 +14351,10 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
14334
14351
|
}
|
|
14335
14352
|
|
|
14336
14353
|
// src/modules/startAudioCapture.ts
|
|
14337
|
-
var
|
|
14354
|
+
var import_mp3 = __toESM(require_mp3());
|
|
14338
14355
|
var stopRecord;
|
|
14339
14356
|
function startAudioCapture() {
|
|
14340
|
-
const recorder2 = new
|
|
14357
|
+
const recorder2 = new import_mp3.default({
|
|
14341
14358
|
bitRate: 128
|
|
14342
14359
|
});
|
|
14343
14360
|
function start() {
|
|
@@ -15380,7 +15397,6 @@ function optimizeObject(theObject) {
|
|
|
15380
15397
|
}
|
|
15381
15398
|
|
|
15382
15399
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EnvUtils.js
|
|
15383
|
-
"use strict";
|
|
15384
15400
|
var strWindow = "window";
|
|
15385
15401
|
var strDocument = "document";
|
|
15386
15402
|
var strDocumentMode = "documentMode";
|
|
@@ -15630,7 +15646,6 @@ function getDebugListener(config) {
|
|
|
15630
15646
|
}
|
|
15631
15647
|
|
|
15632
15648
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DiagnosticLogger.js
|
|
15633
|
-
"use strict";
|
|
15634
15649
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
15635
15650
|
var AiUserActionablePrefix = "AI: ";
|
|
15636
15651
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -15934,7 +15949,6 @@ function getGblPerfMgr() {
|
|
|
15934
15949
|
}
|
|
15935
15950
|
|
|
15936
15951
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryPluginChain.js
|
|
15937
|
-
"use strict";
|
|
15938
15952
|
var TelemetryPluginChain = function() {
|
|
15939
15953
|
function TelemetryPluginChain2(plugin, defItemCtx) {
|
|
15940
15954
|
var _self = this;
|
|
@@ -15990,7 +16004,6 @@ var TelemetryPluginChain = function() {
|
|
|
15990
16004
|
}();
|
|
15991
16005
|
|
|
15992
16006
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js
|
|
15993
|
-
"use strict";
|
|
15994
16007
|
function _createProxyChain(plugins, itemCtx) {
|
|
15995
16008
|
var proxies = [];
|
|
15996
16009
|
if (plugins && plugins.length > 0) {
|
|
@@ -16128,7 +16141,6 @@ var strIKey = "iKey";
|
|
|
16128
16141
|
var strExtensionConfig = "extensionConfig";
|
|
16129
16142
|
|
|
16130
16143
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js
|
|
16131
|
-
"use strict";
|
|
16132
16144
|
var strGetPlugin = "getPlugin";
|
|
16133
16145
|
var BaseTelemetryPlugin = function() {
|
|
16134
16146
|
function BaseTelemetryPlugin2() {
|
|
@@ -16194,7 +16206,6 @@ var BaseTelemetryPlugin = function() {
|
|
|
16194
16206
|
}();
|
|
16195
16207
|
|
|
16196
16208
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryHelpers.js
|
|
16197
|
-
"use strict";
|
|
16198
16209
|
var processTelemetry = "processTelemetry";
|
|
16199
16210
|
var priority = "priority";
|
|
16200
16211
|
var setNextPlugin = "setNextPlugin";
|
|
@@ -16234,7 +16245,6 @@ function sortPlugins(plugins) {
|
|
|
16234
16245
|
}
|
|
16235
16246
|
|
|
16236
16247
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ChannelController.js
|
|
16237
|
-
"use strict";
|
|
16238
16248
|
var ChannelControllerPriority = 500;
|
|
16239
16249
|
var ChannelValidationMessage = "Channel has invalid priority";
|
|
16240
16250
|
var ChannelController = function(_super) {
|
|
@@ -16555,7 +16565,6 @@ function uaDisallowsSameSiteNone(userAgent) {
|
|
|
16555
16565
|
}
|
|
16556
16566
|
|
|
16557
16567
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseCore.js
|
|
16558
|
-
"use strict";
|
|
16559
16568
|
var validationError = "Extensions must provide callback to initialize";
|
|
16560
16569
|
var strNotificationManager = "_notificationManager";
|
|
16561
16570
|
function _createPerfManager(core, notificationMgr) {
|
|
@@ -16921,7 +16930,6 @@ function mwcRandom32(signed) {
|
|
|
16921
16930
|
}
|
|
16922
16931
|
|
|
16923
16932
|
// node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CoreUtils.js
|
|
16924
|
-
"use strict";
|
|
16925
16933
|
var strVisibilityChangeEvt = "visibilitychange";
|
|
16926
16934
|
var strPageHide = "pagehide";
|
|
16927
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
|
-
//
|
|
29
|
-
var
|
|
30
|
-
"
|
|
26
|
+
// src/plugins/mp3.js
|
|
27
|
+
var require_mp3 = __commonJS({
|
|
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() {
|
|
@@ -13979,15 +13978,15 @@ var require_dist = __commonJS({
|
|
|
13979
13978
|
var VBRTag_1 = VBRTag;
|
|
13980
13979
|
var new_byte = common.new_byte;
|
|
13981
13980
|
var assert = common.assert;
|
|
13982
|
-
Lame = Lame_1;
|
|
13983
|
-
Presets = Presets_1;
|
|
13984
|
-
GainAnalysis = GainAnalysis_1;
|
|
13985
|
-
QuantizePVT = QuantizePVT_1;
|
|
13986
|
-
Quantize = Quantize_1;
|
|
13987
|
-
Takehiro = Takehiro_1;
|
|
13988
|
-
Reservoir = Reservoir_1;
|
|
13989
|
-
MPEGMode = MPEGMode_1;
|
|
13990
|
-
BitStream = BitStream_1;
|
|
13981
|
+
var Lame = Lame_1;
|
|
13982
|
+
var Presets = Presets_1;
|
|
13983
|
+
var GainAnalysis = GainAnalysis_1;
|
|
13984
|
+
var QuantizePVT = QuantizePVT_1;
|
|
13985
|
+
var Quantize = Quantize_1;
|
|
13986
|
+
var Takehiro = Takehiro_1;
|
|
13987
|
+
var Reservoir = Reservoir_1;
|
|
13988
|
+
var MPEGMode = MPEGMode_1;
|
|
13989
|
+
var BitStream = BitStream_1;
|
|
13991
13990
|
function GetAudio() {
|
|
13992
13991
|
var parse;
|
|
13993
13992
|
var mpg;
|
|
@@ -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,10 +22694,10 @@ async function startCameraCapture(buffer, options = { cameraId: void 0, micropho
|
|
|
22693
22694
|
}
|
|
22694
22695
|
|
|
22695
22696
|
// src/modules/startAudioCapture.ts
|
|
22696
|
-
var
|
|
22697
|
+
var import_mp3 = __toESM(require_mp3());
|
|
22697
22698
|
var stopRecord;
|
|
22698
22699
|
function startAudioCapture() {
|
|
22699
|
-
const recorder2 = new
|
|
22700
|
+
const recorder2 = new import_mp3.default({
|
|
22700
22701
|
bitRate: 128
|
|
22701
22702
|
});
|
|
22702
22703
|
function start() {
|
|
@@ -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({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easyproctor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"description": "Modulo web de gravação do EasyProctor",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -22,10 +22,9 @@
|
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/dom-mediacapture-record": "^1.0.11",
|
|
25
|
-
"@types/recorder-js": "^1.0.2",
|
|
26
25
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
27
26
|
"@typescript-eslint/parser": "^5.8.0",
|
|
28
|
-
"esbuild": "^0.
|
|
27
|
+
"esbuild": "^0.14.47",
|
|
29
28
|
"esbuild-serve": "^1.0.1",
|
|
30
29
|
"eslint": "^8.2.0",
|
|
31
30
|
"eslint-plugin-html": "^6.2.0",
|
|
@@ -33,10 +32,6 @@
|
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
34
|
"@azure/storage-blob": "^12.8.0",
|
|
36
|
-
"@microsoft/applicationinsights-web": "^2.7.4"
|
|
37
|
-
"lamejs": "^1.2.1",
|
|
38
|
-
"mic-recorder-to-mp3": "^2.2.2",
|
|
39
|
-
"recorder-js": "^1.0.7",
|
|
40
|
-
"recordrtc": "^5.6.2"
|
|
35
|
+
"@microsoft/applicationinsights-web": "^2.7.4"
|
|
41
36
|
}
|
|
42
37
|
}
|