@ekyc_qoobiss/qbs-ect-cmp 1.12.4 → 1.12.5

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.
@@ -5619,6 +5619,10 @@ const IdDoubleSide = class {
5619
5619
  }
5620
5620
  async captureIdImage(event) {
5621
5621
  let idPhoto = event.detail;
5622
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5623
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5624
+ return;
5625
+ }
5622
5626
  try {
5623
5627
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
5624
5628
  this.uploadPhoto();
@@ -5629,6 +5633,10 @@ const IdDoubleSide = class {
5629
5633
  }
5630
5634
  async captureIdBackImage(event) {
5631
5635
  let idPhoto = event.detail;
5636
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5637
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5638
+ return;
5639
+ }
5632
5640
  try {
5633
5641
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
5634
5642
  this.uploadPhoto();
@@ -5763,6 +5771,10 @@ const IdSingleSide = class {
5763
5771
  }
5764
5772
  async captureIdImage(event) {
5765
5773
  let idPhoto = event.detail;
5774
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5775
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5776
+ return;
5777
+ }
5766
5778
  try {
5767
5779
  this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
5768
5780
  await this.uploadPhoto();
@@ -9387,6 +9399,10 @@ const UserLiveness = class {
9387
9399
  }
9388
9400
  async captureSelfieImage(event) {
9389
9401
  let selfiePhoto = event.detail;
9402
+ if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
9403
+ await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
9404
+ return;
9405
+ }
9390
9406
  try {
9391
9407
  this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
9392
9408
  await this.uploadPhoto();
@@ -58,6 +58,10 @@ export class IdDoubleSide {
58
58
  }
59
59
  async captureIdImage(event) {
60
60
  let idPhoto = event.detail;
61
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
62
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
63
+ return;
64
+ }
61
65
  try {
62
66
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
63
67
  this.uploadPhoto();
@@ -68,6 +72,10 @@ export class IdDoubleSide {
68
72
  }
69
73
  async captureIdBackImage(event) {
70
74
  let idPhoto = event.detail;
75
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
76
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
77
+ return;
78
+ }
71
79
  try {
72
80
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
73
81
  this.uploadPhoto();
@@ -33,6 +33,10 @@ export class IdSingleSide {
33
33
  }
34
34
  async captureIdImage(event) {
35
35
  let idPhoto = event.detail;
36
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
37
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
38
+ return;
39
+ }
36
40
  try {
37
41
  this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
38
42
  await this.uploadPhoto();
@@ -35,6 +35,10 @@ export class UserLiveness {
35
35
  }
36
36
  async captureSelfieImage(event) {
37
37
  let selfiePhoto = event.detail;
38
+ if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
39
+ await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
40
+ return;
41
+ }
38
42
  try {
39
43
  this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
40
44
  await this.uploadPhoto();
@@ -5615,6 +5615,10 @@ const IdDoubleSide = class {
5615
5615
  }
5616
5616
  async captureIdImage(event) {
5617
5617
  let idPhoto = event.detail;
5618
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5619
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5620
+ return;
5621
+ }
5618
5622
  try {
5619
5623
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
5620
5624
  this.uploadPhoto();
@@ -5625,6 +5629,10 @@ const IdDoubleSide = class {
5625
5629
  }
5626
5630
  async captureIdBackImage(event) {
5627
5631
  let idPhoto = event.detail;
5632
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5633
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5634
+ return;
5635
+ }
5628
5636
  try {
5629
5637
  this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
5630
5638
  this.uploadPhoto();
@@ -5759,6 +5767,10 @@ const IdSingleSide = class {
5759
5767
  }
5760
5768
  async captureIdImage(event) {
5761
5769
  let idPhoto = event.detail;
5770
+ if (idPhoto.length == 0 || idPhoto.size == 0) {
5771
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5772
+ return;
5773
+ }
5762
5774
  try {
5763
5775
  this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
5764
5776
  await this.uploadPhoto();
@@ -9383,6 +9395,10 @@ const UserLiveness = class {
9383
9395
  }
9384
9396
  async captureSelfieImage(event) {
9385
9397
  let selfiePhoto = event.detail;
9398
+ if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
9399
+ await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
9400
+ return;
9401
+ }
9386
9402
  try {
9387
9403
  this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
9388
9404
  await this.uploadPhoto();