vishwam-react-ent-sdk 1.0.7 → 1.0.8
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/README.md +148 -1
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/6-dots-rotate-white-36~GzbzADco.svg +0 -1
- package/dist/bouncing-circles~bhjNpXkl.svg +0 -1
- package/dist/disabled~jGBIdXqZ.svg +0 -73
- package/dist/enabled~bhrMcaug.svg +0 -27
- package/dist/fade-stagger-squares~ZuauTkHT.svg +0 -1
- package/dist/gears-spinner~ViTwyWPY.svg +0 -1
- package/dist/infinite-spinner~bblPQPhI.svg +0 -1
- package/dist/loading~GzbzADco.svg +0 -1
package/dist/index.modern.js
CHANGED
|
@@ -628,7 +628,7 @@ function CheckLiveness(_ref) {
|
|
|
628
628
|
var img2 = imgStr.split(',')[1];
|
|
629
629
|
clearInterval(interval);
|
|
630
630
|
return Promise.resolve(callLiveness(url, appId, userId, referenceId, captureType, eyesCheck, storeId, whiteBackground, expiryIn, img, img2, mimeString)).then(function (response) {
|
|
631
|
-
response.livenessImage =
|
|
631
|
+
response.livenessImage = img;
|
|
632
632
|
response.livenessImageType = mimeString;
|
|
633
633
|
getLivenessResponse(response);
|
|
634
634
|
setLoading(false);
|
|
@@ -656,20 +656,10 @@ function CheckLiveness(_ref) {
|
|
|
656
656
|
}, []);
|
|
657
657
|
useEffect(function () {
|
|
658
658
|
setTimeout(function () {
|
|
659
|
-
var initModels = function initModels() {
|
|
660
|
-
try {
|
|
661
|
-
return Promise.resolve(nets.tinyFaceDetector.loadFromUri('https://skyc-cdn-prod.vishwamcorp.com/apis/models/')).then(function () {
|
|
662
|
-
return Promise.resolve(nets.faceLandmark68TinyNet.loadFromUri('https://skyc-cdn-prod.vishwamcorp.com/apis/models/')).then(function () {});
|
|
663
|
-
});
|
|
664
|
-
} catch (e) {
|
|
665
|
-
return Promise.reject(e);
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
|
|
669
659
|
if (isMobile) {
|
|
670
660
|
startCamera();
|
|
671
661
|
} else {
|
|
672
|
-
|
|
662
|
+
init();
|
|
673
663
|
}
|
|
674
664
|
}, 500);
|
|
675
665
|
}, []);
|