idmission-web-sdk 2.2.135 → 2.2.136
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/dist/lib/camera/Camera.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +4 -3
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +4 -3
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +4 -3
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.136';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -3371,8 +3371,9 @@ function listAvailableCameras(facingMode_1) {
|
|
|
3371
3371
|
return [4 /*yield*/, navigator.mediaDevices.enumerateDevices()];
|
|
3372
3372
|
case 2:
|
|
3373
3373
|
videoDevices = _a.sent().filter(function (_a) {
|
|
3374
|
-
var kind = _a.kind
|
|
3375
|
-
|
|
3374
|
+
var kind = _a.kind,
|
|
3375
|
+
label = _a.label;
|
|
3376
|
+
return kind === 'videoinput' && !label.toLowerCase().includes('virtual');
|
|
3376
3377
|
});
|
|
3377
3378
|
// Release the access to the user's camera that we obtained for enumeration purposes.
|
|
3378
3379
|
cameraEnumerationStream.getVideoTracks().forEach(function (track) {
|