@incodetech/core 0.0.0-dev-20260223-3222aae → 0.0.0-dev-20260223-4e681c2
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/authentication.esm.js +2 -2
- package/dist/{backCameraStream-Bnu7cAJc.esm.js → backCameraStream-qmSZb-gd.esm.js} +1 -2
- package/dist/{faceCaptureSetup-DycY6czH.esm.js → faceCaptureSetup-BqQxJfMT.esm.js} +34 -36
- package/dist/{id-DOFN_Qw2.esm.js → id-bJfOEncR.esm.js} +3 -6
- package/dist/id.esm.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/selfie.esm.js +2 -2
- package/package.json +5 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import { l as getDeviceClass } from "./backCameraStream-
|
|
2
|
+
import { l as getDeviceClass } from "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-m2UksnQC.esm.js";
|
|
4
4
|
import { a as fromPromise, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import "./deepsightService-fjzbldgJ.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-BqQxJfMT.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
11
|
const AUTH_ERROR_MAP = {
|
|
@@ -88,8 +88,7 @@ async function uploadDeepsightVideo(encryptedVideo, token) {
|
|
|
88
88
|
video: encryptedVideo,
|
|
89
89
|
type: "selfie"
|
|
90
90
|
}, { headers: { "X-Incode-Hardware-Id": token } })).data.recordingId ?? "";
|
|
91
|
-
} catch
|
|
92
|
-
console.error("Error uploading deepsight video:", error);
|
|
91
|
+
} catch {
|
|
93
92
|
return "";
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, o as uploadDeepsightVideo, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-
|
|
2
|
+
import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, o as uploadDeepsightVideo, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import { D as createManager, E as stopCameraStream, T as requestCameraAccess, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-m2UksnQC.esm.js";
|
|
4
4
|
import { a as fromPromise, i as fromCallback, n as setup, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-DlSxxyGw.esm.js";
|
|
@@ -408,41 +408,39 @@ async function startRecordingSession(params) {
|
|
|
408
408
|
hasAudio
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function stopRecording(session) {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
})();
|
|
411
|
+
async function stopRecording(session) {
|
|
412
|
+
try {
|
|
413
|
+
addEvent({
|
|
414
|
+
code: streamingEvents.strStreamVideoCaptureStop,
|
|
415
|
+
module: eventModuleNames.selfie,
|
|
416
|
+
payload: {
|
|
417
|
+
message: "Recording capture stopped",
|
|
418
|
+
videoRecordingId: session.videoRecordingId,
|
|
419
|
+
sessionId: session.sessionId,
|
|
420
|
+
streamId: session.connection.publisher.getStreamId()
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
await stopRecording$1(session.videoRecordingId);
|
|
424
|
+
addEvent({
|
|
425
|
+
code: streamingEvents.strStreamPublisherDestroyed,
|
|
426
|
+
module: eventModuleNames.selfie,
|
|
427
|
+
payload: {
|
|
428
|
+
message: "Recording publisher destroyed",
|
|
429
|
+
sessionId: session.sessionId,
|
|
430
|
+
streamId: session.connection.publisher.getStreamId()
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
} finally {
|
|
434
|
+
await session.connection.disconnect();
|
|
435
|
+
addEvent({
|
|
436
|
+
code: streamingEvents.strSessionDidDisconnect,
|
|
437
|
+
module: eventModuleNames.selfie,
|
|
438
|
+
payload: {
|
|
439
|
+
message: "Recording session disconnected",
|
|
440
|
+
sessionId: session.sessionId
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
446
444
|
}
|
|
447
445
|
async function initializeDeepsightSession(options) {
|
|
448
446
|
const { loadDeepsightSession } = await import("./deepsightLoader-DAQ9UMIL.esm.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-
|
|
2
|
+
import { a as stopRecording$1, c as requestPermission, i as startRecording, l as getDeviceClass, n as streamingEvents, r as createRecordingSession, s as checkPermission, t as getBackCameraStream } from "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import { A as getWindowDimensions, D as createManager, N as isDesktop, S as IncodeCanvas, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, i as IdCaptureProvider, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-m2UksnQC.esm.js";
|
|
4
4
|
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import { n as isBrowserSimulation } from "./deepsightService-fjzbldgJ.esm.js";
|
|
@@ -145,8 +145,7 @@ async function initializeSession(options = {}) {
|
|
|
145
145
|
try {
|
|
146
146
|
features = await fetchFeatureConfig(signal);
|
|
147
147
|
disableIpify = isFeatureEnabled("DISABLE_IPIFY", features.features);
|
|
148
|
-
} catch
|
|
149
|
-
console.warn("Failed to fetch feature config:", error);
|
|
148
|
+
} catch {
|
|
150
149
|
features = { sessionIdentifier: "" };
|
|
151
150
|
}
|
|
152
151
|
let fingerprintSuccess = false;
|
|
@@ -315,9 +314,7 @@ async function initializeIdCapture(params) {
|
|
|
315
314
|
});
|
|
316
315
|
if (deepsightService) try {
|
|
317
316
|
await deepsightService.performPrcCheck({ constraints: getPrcCameraConstraints() });
|
|
318
|
-
} catch
|
|
319
|
-
console.warn("PRC check failed during ID capture initialization:", error);
|
|
320
|
-
}
|
|
317
|
+
} catch {}
|
|
321
318
|
const stream = await getIdCameraStream();
|
|
322
319
|
if (deepsightService) {
|
|
323
320
|
const videoTrack = stream.getVideoTracks()[0];
|
package/dist/id.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
2
|
+
import "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import "./src-m2UksnQC.esm.js";
|
|
4
4
|
import "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import "./deepsightService-fjzbldgJ.esm.js";
|
|
6
6
|
import "./api-DlSxxyGw.esm.js";
|
|
7
|
-
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
7
|
+
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-bJfOEncR.esm.js";
|
|
8
8
|
import "./stats-GJMiTm5k.esm.js";
|
|
9
9
|
|
|
10
10
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import { c as requestPermission, l as getDeviceClass, s as checkPermission, u as getBrowser } from "./backCameraStream-
|
|
2
|
+
import { c as requestPermission, l as getDeviceClass, s as checkPermission, u as getBrowser } from "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import { O as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-m2UksnQC.esm.js";
|
|
4
4
|
import "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import "./deepsightService-fjzbldgJ.esm.js";
|
|
6
6
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-DlSxxyGw.esm.js";
|
|
7
|
-
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
7
|
+
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-bJfOEncR.esm.js";
|
|
8
8
|
import "./stats-GJMiTm5k.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/setup.ts
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-h8K9H3OM.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
2
|
+
import "./backCameraStream-qmSZb-gd.esm.js";
|
|
3
3
|
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-m2UksnQC.esm.js";
|
|
4
4
|
import { a as fromPromise, o as createActor, r as assign } from "./endpoints-DXp63GM6.esm.js";
|
|
5
5
|
import "./deepsightService-fjzbldgJ.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-BqQxJfMT.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
11
11
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260223-
|
|
3
|
+
"version": "0.0.0-dev-20260223-4e681c2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"dist"
|
|
59
59
|
],
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@biomejs/biome": "^2.3.7",
|
|
62
61
|
"@vitest/coverage-v8": "^4.0.13",
|
|
63
62
|
"tsdown": "^0.16.6",
|
|
64
63
|
"typescript": "^5.9.3",
|
|
@@ -71,8 +70,10 @@
|
|
|
71
70
|
"dev": "tsdown -c tsdown.config.ts --watch",
|
|
72
71
|
"test": "vitest run",
|
|
73
72
|
"coverage": "vitest run --coverage",
|
|
74
|
-
"lint": "
|
|
75
|
-
"
|
|
73
|
+
"lint": "eslint .",
|
|
74
|
+
"lint:fix": "eslint . --fix",
|
|
75
|
+
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
76
|
+
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
76
77
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
77
78
|
}
|
|
78
79
|
}
|