@regulaforensics/idv-capture-web 3.4.314-nightly → 3.4.315-nightly
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/main.iife.js +4 -4
- package/dist/main.js +21 -21
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2496,7 +2496,7 @@ const ks = () => {
|
|
|
2496
2496
|
osVersion: `${Je.osVersion}`,
|
|
2497
2497
|
hostAppId: ks(),
|
|
2498
2498
|
host: ks(),
|
|
2499
|
-
sdkVersion: "3.4.
|
|
2499
|
+
sdkVersion: "3.4.315-nightly".trim(),
|
|
2500
2500
|
name: navigator.userAgent,
|
|
2501
2501
|
deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2502
2502
|
hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
@@ -8356,7 +8356,7 @@ const RM = 3e4, lr = class lr {
|
|
|
8356
8356
|
return b(this, null, function* () {
|
|
8357
8357
|
if (e.prepareRequired) {
|
|
8358
8358
|
if (e.base64) {
|
|
8359
|
-
if (yield this.checkImageBySrc(e.base64)) return;
|
|
8359
|
+
if (yield this.checkImageBySrc(e.base64, e.timeout)) return;
|
|
8360
8360
|
if (this.failedAssets.base64.add(e.base64), e.failurePolicy === "error") {
|
|
8361
8361
|
this.failedAssets.blockingAssets.add("base64 string");
|
|
8362
8362
|
return;
|
|
@@ -8364,7 +8364,7 @@ const RM = 3e4, lr = class lr {
|
|
|
8364
8364
|
}
|
|
8365
8365
|
if (!e.imageId) {
|
|
8366
8366
|
if (e.imageURL) {
|
|
8367
|
-
if (yield this.checkImageBySrc(e.imageURL)) return;
|
|
8367
|
+
if (yield this.checkImageBySrc(e.imageURL, e.timeout)) return;
|
|
8368
8368
|
if (this.failedAssets.imageURL.add(e.imageURL), e.failurePolicy === "error") {
|
|
8369
8369
|
this.failedAssets.blockingAssets.add(e.imageURL);
|
|
8370
8370
|
return;
|
|
@@ -8375,27 +8375,27 @@ const RM = 3e4, lr = class lr {
|
|
|
8375
8375
|
}
|
|
8376
8376
|
});
|
|
8377
8377
|
}
|
|
8378
|
-
static checkImageBySrc(e) {
|
|
8378
|
+
static checkImageBySrc(e, r) {
|
|
8379
8379
|
return b(this, null, function* () {
|
|
8380
|
-
return new Promise((
|
|
8381
|
-
let
|
|
8382
|
-
const
|
|
8383
|
-
|
|
8384
|
-
},
|
|
8385
|
-
|
|
8380
|
+
return new Promise((i) => {
|
|
8381
|
+
let n = null, o = null, s = !1;
|
|
8382
|
+
const c = r ? r * 1e3 : RM, a = (M) => {
|
|
8383
|
+
s || (s = !0, l(), i(M));
|
|
8384
|
+
}, l = () => {
|
|
8385
|
+
o !== null && (clearTimeout(o), o = null), n && (n.onload = null, n.onerror = null, n = null);
|
|
8386
8386
|
};
|
|
8387
8387
|
try {
|
|
8388
|
-
if (e.length === 0) return
|
|
8389
|
-
|
|
8390
|
-
if (!(
|
|
8388
|
+
if (e.length === 0) return a(!1);
|
|
8389
|
+
o = setTimeout(() => a(!1), c), n = new Image(), n.onload = () => b(null, null, function* () {
|
|
8390
|
+
if (!(n != null && n.decode)) return a(!0);
|
|
8391
8391
|
try {
|
|
8392
|
-
yield
|
|
8393
|
-
} catch (
|
|
8392
|
+
yield n.decode();
|
|
8393
|
+
} catch (M) {
|
|
8394
8394
|
}
|
|
8395
|
-
lr.decodedImages.set(e,
|
|
8396
|
-
}),
|
|
8397
|
-
} catch (
|
|
8398
|
-
|
|
8395
|
+
lr.decodedImages.set(e, n), a(!0);
|
|
8396
|
+
}), n.onerror = () => a(!1), n.src = e;
|
|
8397
|
+
} catch (M) {
|
|
8398
|
+
a(!1);
|
|
8399
8399
|
}
|
|
8400
8400
|
});
|
|
8401
8401
|
});
|
|
@@ -9328,7 +9328,7 @@ const Vo = class Vo extends Fr {
|
|
|
9328
9328
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = ea(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
9329
9329
|
}
|
|
9330
9330
|
get version() {
|
|
9331
|
-
return `${"3.4.
|
|
9331
|
+
return `${"3.4.315-nightly".trim()}`;
|
|
9332
9332
|
}
|
|
9333
9333
|
disconnectedCallback() {
|
|
9334
9334
|
var e;
|
|
@@ -9418,7 +9418,7 @@ class sg {
|
|
|
9418
9418
|
}
|
|
9419
9419
|
/** service commands */
|
|
9420
9420
|
get version() {
|
|
9421
|
-
return "3.4.
|
|
9421
|
+
return "3.4.315-nightly";
|
|
9422
9422
|
}
|
|
9423
9423
|
set nonce(e) {
|
|
9424
9424
|
Be.getState().setNonce(e);
|
package/package.json
CHANGED