idmission-web-sdk 2.2.158 → 2.2.159
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/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +5 -6
- 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 +5 -6
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +5 -6
- 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
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.159';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2323,11 +2323,14 @@
|
|
|
2323
2323
|
onDocumentUploadProgress: onDocumentUploadProgress.current,
|
|
2324
2324
|
onDocumentUploaded: onDocumentUploaded.current,
|
|
2325
2325
|
onDocumentUploadFailed: onDocumentUploadFailed.current
|
|
2326
|
+
})["catch"](function (e) {
|
|
2327
|
+
if (!throwErrorsOnFailure) throw e;
|
|
2328
|
+
return '';
|
|
2326
2329
|
})];
|
|
2327
2330
|
}
|
|
2328
2331
|
});
|
|
2329
2332
|
});
|
|
2330
|
-
}, [documentServiceUrl, jobId, sessionId, taskId]);
|
|
2333
|
+
}, [documentServiceUrl, jobId, sessionId, taskId, throwErrorsOnFailure]);
|
|
2331
2334
|
var buildSubmissionPayload = React.useCallback(function () {
|
|
2332
2335
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2333
2336
|
function uploadIfPossible(src_1, filename_1) {
|
|
@@ -2463,10 +2466,6 @@
|
|
|
2463
2466
|
submissionRequest.customerData.idData.idImageFront = documents.passportImage;
|
|
2464
2467
|
}
|
|
2465
2468
|
if (documents.selfieImage) {
|
|
2466
|
-
// if (action === SubmissionAction.IDENTIFY) {
|
|
2467
|
-
// // TODO: remove once API is fixed
|
|
2468
|
-
// submissionRequest.biometricData = { selfie: documents.selfieImage }
|
|
2469
|
-
// }
|
|
2470
2469
|
submissionRequest.customerData.biometricData = {
|
|
2471
2470
|
selfie: documents.selfieImage
|
|
2472
2471
|
};
|