@incodetech/core 0.0.0-dev-20260224-54eec90 → 0.0.0-dev-20260224-b38e10e
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 { a as fromPromise, o as createActor, r as assign, t as endpoints } from
|
|
|
5
5
|
import "./deepsightService-Bn05rSAa.esm.js";
|
|
6
6
|
import { t as api } from "./api-DlSxxyGw.esm.js";
|
|
7
7
|
import "./stats-GJMiTm5k.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-BflAHwmc.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
11
|
const AUTH_ERROR_MAP = {
|
|
@@ -129,7 +129,8 @@ const _authenticationMachine = faceCaptureMachine.provide({
|
|
|
129
129
|
isTerminalUploadError: ({ context }) => {
|
|
130
130
|
const resp = context.uploadResponse;
|
|
131
131
|
return isTerminalAuthError(resp, context.attemptsRemaining);
|
|
132
|
-
}
|
|
132
|
+
},
|
|
133
|
+
isNoAttemptsTerminal: () => true
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
const authenticationMachine = _authenticationMachine;
|
|
@@ -759,7 +759,8 @@ const _faceCaptureMachine = setup({
|
|
|
759
759
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
|
|
760
760
|
hasCapturedImage: ({ context }) => context.capturedImage !== void 0,
|
|
761
761
|
hasUploadValidationError: () => false,
|
|
762
|
-
isTerminalUploadError: () => false
|
|
762
|
+
isTerminalUploadError: () => false,
|
|
763
|
+
isNoAttemptsTerminal: () => false
|
|
763
764
|
}
|
|
764
765
|
}).createMachine({
|
|
765
766
|
id: "faceCapture",
|
|
@@ -1161,15 +1162,23 @@ const _faceCaptureMachine = setup({
|
|
|
1161
1162
|
},
|
|
1162
1163
|
{ target: "success" }
|
|
1163
1164
|
] },
|
|
1164
|
-
uploadError: { on: { RETRY_CAPTURE:
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1165
|
+
uploadError: { on: { RETRY_CAPTURE: [
|
|
1166
|
+
{
|
|
1167
|
+
target: "checkingStream",
|
|
1168
|
+
guard: "hasAttemptsRemaining",
|
|
1169
|
+
actions: [
|
|
1170
|
+
"resetDetection",
|
|
1171
|
+
"clearUploadFailure",
|
|
1172
|
+
"clearStreamForRetry"
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
target: "#faceCapture.error",
|
|
1177
|
+
guard: "isNoAttemptsTerminal",
|
|
1178
|
+
actions: ["setTerminalError"]
|
|
1179
|
+
},
|
|
1180
|
+
{ target: "#faceCapture.finished" }
|
|
1181
|
+
] } },
|
|
1173
1182
|
success: {
|
|
1174
1183
|
entry: "cleanup",
|
|
1175
1184
|
after: { 3e3: { target: "#faceCapture.processing" } }
|
package/dist/selfie.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { a as fromPromise, o as createActor, r as assign } from "./endpoints-DXp
|
|
|
5
5
|
import "./deepsightService-Bn05rSAa.esm.js";
|
|
6
6
|
import "./api-DlSxxyGw.esm.js";
|
|
7
7
|
import "./stats-GJMiTm5k.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-BflAHwmc.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
11
11
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|