@ekyc_qoobiss/qbs-ect-cmp 3.5.0 → 3.5.1

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.
@@ -494,11 +494,27 @@ class ApiCall {
494
494
  }
495
495
  this.AddLog('Error in post ', ex);
496
496
  try {
497
- return await this.http(request);
497
+ var request2 = new Request(state.apiBaseUrl + url, {
498
+ method: 'POST',
499
+ body: data,
500
+ headers: {
501
+ 'Content-Type': 'application/json',
502
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
503
+ },
504
+ });
505
+ return await this.http(request2);
498
506
  }
499
507
  catch (ex2) {
500
508
  this.AddLog('Error in post ', ex2);
501
- return await this.http(request);
509
+ var request3 = new Request(state.apiBaseUrl + url, {
510
+ method: 'POST',
511
+ body: data,
512
+ headers: {
513
+ 'Content-Type': 'application/json',
514
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
515
+ },
516
+ });
517
+ return await this.http(request3);
502
518
  }
503
519
  }
504
520
  }
@@ -519,11 +535,25 @@ class ApiCall {
519
535
  }
520
536
  this.AddLog('Error in get ', ex);
521
537
  try {
522
- return await this.http(request);
538
+ var request2 = new Request(state.apiBaseUrl + url, {
539
+ method: 'GET',
540
+ headers: {
541
+ 'Content-Type': 'application/json',
542
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
543
+ },
544
+ });
545
+ return await this.http(request2);
523
546
  }
524
547
  catch (ex2) {
525
548
  this.AddLog('Error in get ', ex2);
526
- return await this.http(request);
549
+ var request3 = new Request(state.apiBaseUrl + url, {
550
+ method: 'GET',
551
+ headers: {
552
+ 'Content-Type': 'application/json',
553
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
554
+ },
555
+ });
556
+ return await this.http(request3);
527
557
  }
528
558
  }
529
559
  }
@@ -6374,7 +6404,7 @@ function v4(options, buf, offset) {
6374
6404
  }
6375
6405
 
6376
6406
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6377
- const version$1 = "3.5.0";
6407
+ const version$1 = "3.5.1";
6378
6408
  const description = "Person Identification Component";
6379
6409
  const main = "./dist/index.cjs.js";
6380
6410
  const module$1 = "./dist/index.js";
@@ -68,11 +68,27 @@ export class ApiCall {
68
68
  }
69
69
  this.AddLog('Error in post ', ex);
70
70
  try {
71
- return await this.http(request);
71
+ var request2 = new Request(store.apiBaseUrl + url, {
72
+ method: 'POST',
73
+ body: data,
74
+ headers: {
75
+ 'Content-Type': 'application/json',
76
+ 'Authorization': 'IDKYC-TOKEN ' + store.token,
77
+ },
78
+ });
79
+ return await this.http(request2);
72
80
  }
73
81
  catch (ex2) {
74
82
  this.AddLog('Error in post ', ex2);
75
- return await this.http(request);
83
+ var request3 = new Request(store.apiBaseUrl + url, {
84
+ method: 'POST',
85
+ body: data,
86
+ headers: {
87
+ 'Content-Type': 'application/json',
88
+ 'Authorization': 'IDKYC-TOKEN ' + store.token,
89
+ },
90
+ });
91
+ return await this.http(request3);
76
92
  }
77
93
  }
78
94
  }
@@ -93,11 +109,25 @@ export class ApiCall {
93
109
  }
94
110
  this.AddLog('Error in get ', ex);
95
111
  try {
96
- return await this.http(request);
112
+ var request2 = new Request(store.apiBaseUrl + url, {
113
+ method: 'GET',
114
+ headers: {
115
+ 'Content-Type': 'application/json',
116
+ 'Authorization': 'IDKYC-TOKEN ' + store.token,
117
+ },
118
+ });
119
+ return await this.http(request2);
97
120
  }
98
121
  catch (ex2) {
99
122
  this.AddLog('Error in get ', ex2);
100
- return await this.http(request);
123
+ var request3 = new Request(store.apiBaseUrl + url, {
124
+ method: 'GET',
125
+ headers: {
126
+ 'Content-Type': 'application/json',
127
+ 'Authorization': 'IDKYC-TOKEN ' + store.token,
128
+ },
129
+ });
130
+ return await this.http(request3);
101
131
  }
102
132
  }
103
133
  }
@@ -490,11 +490,27 @@ class ApiCall {
490
490
  }
491
491
  this.AddLog('Error in post ', ex);
492
492
  try {
493
- return await this.http(request);
493
+ var request2 = new Request(state.apiBaseUrl + url, {
494
+ method: 'POST',
495
+ body: data,
496
+ headers: {
497
+ 'Content-Type': 'application/json',
498
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
499
+ },
500
+ });
501
+ return await this.http(request2);
494
502
  }
495
503
  catch (ex2) {
496
504
  this.AddLog('Error in post ', ex2);
497
- return await this.http(request);
505
+ var request3 = new Request(state.apiBaseUrl + url, {
506
+ method: 'POST',
507
+ body: data,
508
+ headers: {
509
+ 'Content-Type': 'application/json',
510
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
511
+ },
512
+ });
513
+ return await this.http(request3);
498
514
  }
499
515
  }
500
516
  }
@@ -515,11 +531,25 @@ class ApiCall {
515
531
  }
516
532
  this.AddLog('Error in get ', ex);
517
533
  try {
518
- return await this.http(request);
534
+ var request2 = new Request(state.apiBaseUrl + url, {
535
+ method: 'GET',
536
+ headers: {
537
+ 'Content-Type': 'application/json',
538
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
539
+ },
540
+ });
541
+ return await this.http(request2);
519
542
  }
520
543
  catch (ex2) {
521
544
  this.AddLog('Error in get ', ex2);
522
- return await this.http(request);
545
+ var request3 = new Request(state.apiBaseUrl + url, {
546
+ method: 'GET',
547
+ headers: {
548
+ 'Content-Type': 'application/json',
549
+ 'Authorization': 'IDKYC-TOKEN ' + state.token,
550
+ },
551
+ });
552
+ return await this.http(request3);
523
553
  }
524
554
  }
525
555
  }
@@ -6370,7 +6400,7 @@ function v4(options, buf, offset) {
6370
6400
  }
6371
6401
 
6372
6402
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6373
- const version$1 = "3.5.0";
6403
+ const version$1 = "3.5.1";
6374
6404
  const description = "Person Identification Component";
6375
6405
  const main = "./dist/index.cjs.js";
6376
6406
  const module = "./dist/index.js";