@newtonschool/react_proctoring_library 0.0.115 → 0.0.116
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.
|
@@ -27,10 +27,10 @@ const getMacBookDevice = function getMacBookDevice() {
|
|
|
27
27
|
if (!devices) {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
30
|
+
// supports Apple Silicon macbook camera only
|
|
31
|
+
const macbookCamera = devices.find(device => device.label.includes('MacBook Pro Camera') || device.label.includes('MacBook Air Camera'));
|
|
32
|
+
console.log('macbookCamera label', macbookCamera.label);
|
|
33
|
+
return macbookCamera;
|
|
34
34
|
};
|
|
35
35
|
function ElectronWebCam(_ref) {
|
|
36
36
|
let {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newtonschool/react_proctoring_library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"description": "Used to proctor online tests",
|
|
5
5
|
"author": "ayushkagrawal,shreyachandra,weastel",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
".": "./dist/index.js",
|
|
58
58
|
"./useCleanupPermissions": "./dist/useCleanupPermissions.js"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|