idmission-web-sdk 2.2.155 → 2.2.156

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/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.155';
206
+ var webSdkVersion = '2.2.156';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1425,7 +1425,9 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1425
1425
  }
1426
1426
  });
1427
1427
  });
1428
- }))];
1428
+ }))["catch"](function (e) {
1429
+ throw new NetworkError(e.message);
1430
+ })];
1429
1431
  case 7:
1430
1432
  _j.sent();
1431
1433
  _j.label = 8;
@@ -1668,6 +1670,8 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1668
1670
  return [4 /*yield*/, uploadDocument(selfie, {
1669
1671
  filename: 'liveness',
1670
1672
  filetype: 'image/jpeg'
1673
+ })["catch"](function (e) {
1674
+ throw new NetworkError(e.message);
1671
1675
  })];
1672
1676
  case 1:
1673
1677
  selfie = _a.sent();