gbc-kyc-kit 1.8.0 → 1.8.2
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/gbc-kyc-kit.es.js +16 -3
- package/dist/gbc-kyc-kit.umd.js +27 -27
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -24892,7 +24892,6 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
|
|
|
24892
24892
|
const [similarity, setSimilarity] = useState(0);
|
|
24893
24893
|
const listener = (event) => {
|
|
24894
24894
|
if (event.detail) {
|
|
24895
|
-
console.log(event.detail, "detail");
|
|
24896
24895
|
if (event.detail.action === "PROCESS_FINISHED" && event.detail.data.response.code != -1) {
|
|
24897
24896
|
setData(event.detail.data.response);
|
|
24898
24897
|
}
|
|
@@ -24936,7 +24935,6 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
|
|
|
24936
24935
|
geolocation
|
|
24937
24936
|
}).then((res) => dataLiveness(res));
|
|
24938
24937
|
} catch (errorSavingData) {
|
|
24939
|
-
console.log(errorSavingData);
|
|
24940
24938
|
return errorSavingData;
|
|
24941
24939
|
}
|
|
24942
24940
|
};
|
|
@@ -24958,7 +24956,22 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
|
|
|
24958
24956
|
};
|
|
24959
24957
|
try {
|
|
24960
24958
|
await request2(parseReq);
|
|
24961
|
-
faceMatch ? await fetchFaceMatch(faceMatch, `data:image/jpeg;base64,${data2.images[0]}`, inProduction, customHeaders).then((res) =>
|
|
24959
|
+
faceMatch ? await fetchFaceMatch(faceMatch, `data:image/jpeg;base64,${data2.images[0]}`, inProduction, customHeaders).then((res) => {
|
|
24960
|
+
setSimilarity(res.data.similarity);
|
|
24961
|
+
saveDataToDB({
|
|
24962
|
+
data: {
|
|
24963
|
+
similarity: res.data.similarity,
|
|
24964
|
+
first_image: `data:image/jpeg;base64,${data2.images[0]}`,
|
|
24965
|
+
second_image: faceMatch
|
|
24966
|
+
},
|
|
24967
|
+
component: "facematch",
|
|
24968
|
+
eventId,
|
|
24969
|
+
source: source2,
|
|
24970
|
+
inProduction,
|
|
24971
|
+
clientId,
|
|
24972
|
+
geolocation
|
|
24973
|
+
}).then((res2) => dataLiveness(res2));
|
|
24974
|
+
}) : wrapAndSaveData();
|
|
24962
24975
|
} catch (error) {
|
|
24963
24976
|
let message2 = "";
|
|
24964
24977
|
const {
|