@incodetech/core 0.0.0-dev-20260218-11cf7d6 → 0.0.0-dev-20260218-d80e4b9
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.
|
@@ -5,7 +5,7 @@ import { c as getDeviceClass } from "./streamingEvents-BCUCioa1.esm.js";
|
|
|
5
5
|
import "./deepsightService-B_mt2btN.esm.js";
|
|
6
6
|
import { t as api } from "./api-CmRbOLxk.esm.js";
|
|
7
7
|
import "./stats-Bv2CLzQ0.esm.js";
|
|
8
|
-
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-
|
|
8
|
+
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-CsQR0xAH.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
11
|
const AUTH_ERROR_MAP = {
|
|
@@ -599,16 +599,9 @@ const _faceCaptureMachine = setup({
|
|
|
599
599
|
prepareFaceUpload: fromPromise(async ({ input }) => {
|
|
600
600
|
const ctx = input;
|
|
601
601
|
const sessionToken = getToken();
|
|
602
|
-
|
|
602
|
+
const recordingId = (await ctx.recordingService?.stop())?.recordingId ?? null;
|
|
603
603
|
try {
|
|
604
|
-
if (ctx.deepsightService)
|
|
605
|
-
const [_, recordingResult] = await Promise.all([
|
|
606
|
-
ctx.deepsightService.performVirtualCameraCheck(sessionToken, "SELFIE"),
|
|
607
|
-
ctx.recordingService?.stop(),
|
|
608
|
-
ctx.deepsightService.analyzeFrame(ctx.capturedImage.getImageData())
|
|
609
|
-
]);
|
|
610
|
-
recordingId = recordingResult?.recordingId ?? null;
|
|
611
|
-
}
|
|
604
|
+
if (ctx.deepsightService) await Promise.all([ctx.deepsightService.performVirtualCameraCheck(sessionToken, "SELFIE"), ctx.deepsightService.analyzeFrame(ctx.capturedImage.getImageData())]);
|
|
612
605
|
} catch (error) {}
|
|
613
606
|
return {
|
|
614
607
|
encryptedBase64Image: await encryptSelfieImage({
|
package/dist/selfie.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./streamingEvents-BCUCioa1.esm.js";
|
|
|
5
5
|
import "./deepsightService-B_mt2btN.esm.js";
|
|
6
6
|
import "./api-CmRbOLxk.esm.js";
|
|
7
7
|
import "./stats-Bv2CLzQ0.esm.js";
|
|
8
|
-
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-
|
|
8
|
+
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-CsQR0xAH.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
11
11
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|