idmission-web-sdk 2.3.121 → 2.3.122
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/components/video_signature_capture/VideoSignatureContext.d.ts +1 -0
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +14 -6
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +14 -6
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +14 -6
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.122';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -24303,6 +24303,7 @@
|
|
|
24303
24303
|
nullChunksReceived: 0,
|
|
24304
24304
|
timesSignatureCleared: 0,
|
|
24305
24305
|
finalChunkReceived: false,
|
|
24306
|
+
requestDataInterval: undefined,
|
|
24306
24307
|
onSignatureVideoCaptured: function onSignatureVideoCaptured() {
|
|
24307
24308
|
return null;
|
|
24308
24309
|
}
|
|
@@ -24360,8 +24361,12 @@
|
|
|
24360
24361
|
});
|
|
24361
24362
|
}
|
|
24362
24363
|
};
|
|
24363
|
-
signatureRecorder.start(
|
|
24364
|
+
signatureRecorder.start();
|
|
24365
|
+
var interval = setInterval(function () {
|
|
24366
|
+
return signatureRecorder === null || signatureRecorder === void 0 ? void 0 : signatureRecorder.requestData();
|
|
24367
|
+
}, 250);
|
|
24364
24368
|
set({
|
|
24369
|
+
requestDataInterval: interval,
|
|
24365
24370
|
recordingStartRequestedAt: performance.now()
|
|
24366
24371
|
});
|
|
24367
24372
|
},
|
|
@@ -24391,8 +24396,8 @@
|
|
|
24391
24396
|
},
|
|
24392
24397
|
diagnostics: {
|
|
24393
24398
|
nullChunksReceived: nullChunksReceived,
|
|
24394
|
-
firstNullChunkReceivedAt: firstNullChunkReceivedAt,
|
|
24395
|
-
lastNullChunkReceivedAt: lastNullChunkReceivedAt,
|
|
24399
|
+
firstNullChunkReceivedAt: firstNullChunkReceivedAt ? Math.ceil(firstNullChunkReceivedAt) : 0,
|
|
24400
|
+
lastNullChunkReceivedAt: lastNullChunkReceivedAt ? Math.ceil(lastNullChunkReceivedAt) : 0,
|
|
24396
24401
|
finalChunkReceived: finalChunkReceived,
|
|
24397
24402
|
finalChunkTimedOut: timedOut,
|
|
24398
24403
|
finalChunkWaitedMs: Math.ceil(waitedMs),
|
|
@@ -24429,6 +24434,7 @@
|
|
|
24429
24434
|
recordingStopRequestedAt: performance.now(),
|
|
24430
24435
|
recordingStoppedAt: undefined
|
|
24431
24436
|
});
|
|
24437
|
+
clearInterval(get().requestDataInterval);
|
|
24432
24438
|
return [4 /*yield*/, waitForOneMoreChunk()
|
|
24433
24439
|
// this represents the time that it is safe to release the camera access
|
|
24434
24440
|
];
|
|
@@ -24473,7 +24479,7 @@
|
|
|
24473
24479
|
signatureStartedAt: undefined,
|
|
24474
24480
|
signatureEndedAt: undefined,
|
|
24475
24481
|
acceptClickedAt: undefined,
|
|
24476
|
-
|
|
24482
|
+
// Note: clearClickedAt is intentionally preserved for telemetry metadata
|
|
24477
24483
|
supportsRequestVideoFrameCallback: undefined,
|
|
24478
24484
|
supportsRoundRect: undefined,
|
|
24479
24485
|
nullChunksReceived: 0,
|
|
@@ -24502,8 +24508,10 @@
|
|
|
24502
24508
|
timeoutMs = 3000;
|
|
24503
24509
|
}
|
|
24504
24510
|
return new Promise(function (resolve) {
|
|
24511
|
+
var _a;
|
|
24505
24512
|
var start = performance.now();
|
|
24506
|
-
var initialLastChunkReceivedAt = useVideoSignatureStore.getState().lastChunkReceivedAt;
|
|
24513
|
+
var initialLastChunkReceivedAt = (_a = useVideoSignatureStore.getState().lastChunkReceivedAt) !== null && _a !== void 0 ? _a : start;
|
|
24514
|
+
signatureRecorder === null || signatureRecorder === void 0 ? void 0 : signatureRecorder.requestData();
|
|
24507
24515
|
function checkForChunk() {
|
|
24508
24516
|
var lastChunkReceivedAt = useVideoSignatureStore.getState().lastChunkReceivedAt;
|
|
24509
24517
|
var waitedMs = performance.now() - start;
|