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.
@@ -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.2.155';
214
+ var webSdkVersion = '2.2.156';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2407,7 +2407,9 @@
2407
2407
  }
2408
2408
  });
2409
2409
  });
2410
- }))];
2410
+ }))["catch"](function (e) {
2411
+ throw new NetworkError(e.message);
2412
+ })];
2411
2413
  case 7:
2412
2414
  _j.sent();
2413
2415
  _j.label = 8;
@@ -2650,6 +2652,8 @@
2650
2652
  return [4 /*yield*/, uploadDocument(selfie, {
2651
2653
  filename: 'liveness',
2652
2654
  filetype: 'image/jpeg'
2655
+ })["catch"](function (e) {
2656
+ throw new NetworkError(e.message);
2653
2657
  })];
2654
2658
  case 1:
2655
2659
  selfie = _a.sent();