idmission-web-sdk 2.2.146 → 2.2.147
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/components/document_capture/DocumentCaptureStateProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +2 -13
- 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 +2 -13
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +2 -13
- 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.147';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -8747,18 +8747,7 @@ var DocumentCaptureStateProvider = function DocumentCaptureStateProvider(_a) {
|
|
|
8747
8747
|
}
|
|
8748
8748
|
});
|
|
8749
8749
|
}
|
|
8750
|
-
if (
|
|
8751
|
-
var tracks = videoStream.getTracks();
|
|
8752
|
-
var videoCameraTrack = tracks.find(function (track) {
|
|
8753
|
-
return track.kind === 'video';
|
|
8754
|
-
});
|
|
8755
|
-
if (videoCameraTrack) {
|
|
8756
|
-
var imageCapture = new ImageCapture(videoCameraTrack);
|
|
8757
|
-
imageCapture.takePhoto().then(onComplete)["catch"](function () {});
|
|
8758
|
-
} else {
|
|
8759
|
-
throw new Error('Failed to find a video feed for taking a photo');
|
|
8760
|
-
}
|
|
8761
|
-
} else if (videoTag) {
|
|
8750
|
+
if (videoTag) {
|
|
8762
8751
|
var canvas = document.createElement('canvas');
|
|
8763
8752
|
drawToCanvas(canvas, videoTag);
|
|
8764
8753
|
canvas.toBlob(onComplete);
|