@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.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.314-nightly".trim(),
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((r) => {
8381
- let i = null, n = null, o = !1;
8382
- const s = (a) => {
8383
- o || (o = !0, c(), r(a));
8384
- }, c = () => {
8385
- n !== null && (clearTimeout(n), n = null), i && (i.onload = null, i.onerror = null, i = null);
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 s(!1);
8389
- n = setTimeout(() => s(!1), RM), i = new Image(), i.onload = () => b(null, null, function* () {
8390
- if (!(i != null && i.decode)) return s(!0);
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 i.decode();
8393
- } catch (a) {
8392
+ yield n.decode();
8393
+ } catch (M) {
8394
8394
  }
8395
- lr.decodedImages.set(e, i), s(!0);
8396
- }), i.onerror = () => s(!1), i.src = e;
8397
- } catch (a) {
8398
- s(!1);
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.314-nightly".trim()}`;
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.314-nightly";
9421
+ return "3.4.315-nightly";
9422
9422
  }
9423
9423
  set nonce(e) {
9424
9424
  Be.getState().setNonce(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-capture-web",
3
- "version": "3.4.314-nightly",
3
+ "version": "3.4.315-nightly",
4
4
  "description": "Regula framework agnostic web components to work with webcamera",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/main.js",