gbc-kyc-kit 1.0.5 → 1.0.6
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-test-2.es.js +3 -6
- package/dist/gbc-test-2.umd.js +49 -49
- package/package.json +1 -1
package/dist/gbc-test-2.es.js
CHANGED
|
@@ -20453,7 +20453,7 @@ DocumentReader.propTypes = {
|
|
|
20453
20453
|
dataDocument: propTypes.exports.PropTypes.func.isRequired,
|
|
20454
20454
|
inProduction: propTypes.exports.PropTypes.string
|
|
20455
20455
|
};
|
|
20456
|
-
const LivenessCheckController = (
|
|
20456
|
+
const LivenessCheckController = (clientId, authorize, inProduction) => {
|
|
20457
20457
|
const [isLoading, setIsLoading] = useState(false);
|
|
20458
20458
|
const [status, setStatus] = useState(clientId === void 0 ? "CLIENTID" : authorize === void 0 ? "TOKEN" : "");
|
|
20459
20459
|
const [message, setMessage] = useState("");
|
|
@@ -20471,7 +20471,7 @@ const LivenessCheckController = (dataLiveness, clientId, authorize, inProduction
|
|
|
20471
20471
|
setStatus("NOT_VERIFY");
|
|
20472
20472
|
setMessage("Error interno de aplicaci\xF3n, contactar con soporte!");
|
|
20473
20473
|
}
|
|
20474
|
-
onSendSubmitLiveness(
|
|
20474
|
+
onSendSubmitLiveness();
|
|
20475
20475
|
}
|
|
20476
20476
|
}
|
|
20477
20477
|
};
|
|
@@ -20495,7 +20495,6 @@ const LivenessCheckController = (dataLiveness, clientId, authorize, inProduction
|
|
|
20495
20495
|
};
|
|
20496
20496
|
try {
|
|
20497
20497
|
const res2 = await request2(parseReq);
|
|
20498
|
-
await dataLiveness(response);
|
|
20499
20498
|
} catch (error) {
|
|
20500
20499
|
let message2 = "";
|
|
20501
20500
|
console.log(error);
|
|
@@ -21646,7 +21645,6 @@ lib.useDeviceSelectors = useDeviceSelectors;
|
|
|
21646
21645
|
lib.useMobileOrientation = useMobileOrientation;
|
|
21647
21646
|
lib.withOrientationChange = withOrientationChange;
|
|
21648
21647
|
function LivenessCheck({
|
|
21649
|
-
dataLiveness,
|
|
21650
21648
|
mode,
|
|
21651
21649
|
clientId,
|
|
21652
21650
|
authorize,
|
|
@@ -21659,7 +21657,7 @@ function LivenessCheck({
|
|
|
21659
21657
|
clearState,
|
|
21660
21658
|
onSendSubmitLiveness,
|
|
21661
21659
|
message
|
|
21662
|
-
} = LivenessCheckController(
|
|
21660
|
+
} = LivenessCheckController(clientId, authorize, inProduction);
|
|
21663
21661
|
useEffect(() => {
|
|
21664
21662
|
const component = document.getElementsByTagName("face-liveness")[0];
|
|
21665
21663
|
if (component) {
|
|
@@ -21704,7 +21702,6 @@ LivenessCheck.propTypes = {
|
|
|
21704
21702
|
mode: propTypes.exports.PropTypes.string,
|
|
21705
21703
|
clientId: propTypes.exports.PropTypes.string.isRequired,
|
|
21706
21704
|
authorize: propTypes.exports.PropTypes.func.isRequired,
|
|
21707
|
-
dataLiveness: propTypes.exports.PropTypes.func.isRequired,
|
|
21708
21705
|
inProduction: propTypes.exports.PropTypes.string
|
|
21709
21706
|
};
|
|
21710
21707
|
var bootstrap_min = "";
|