@quintype/components 3.8.5-ms-logs.0 → 3.8.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.
package/dist/cjs/index.js CHANGED
@@ -5092,7 +5092,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5092
5092
  accessTypeScript.setAttribute('data-accessType-script', '1');
5093
5093
  accessTypeScript.async = 1;
5094
5094
  document.body.appendChild(accessTypeScript);
5095
- console.log('scription loaded----1');
5096
5095
  return true;
5097
5096
  }
5098
5097
 
@@ -5101,7 +5100,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5101
5100
  callback();
5102
5101
  }
5103
5102
 
5104
- console.log('scription loaded----2');
5105
5103
  return true;
5106
5104
  });
5107
5105
 
@@ -5119,16 +5117,15 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5119
5117
  switch (_context.prev = _context.next) {
5120
5118
  case 0:
5121
5119
  isLoggedIn = _args.length > 3 && _args[3] !== undefined ? _args[3] : true;
5122
- console.log('set user-----', global.AccessType);
5123
5120
 
5124
5121
  if (global.AccessType) {
5125
- _context.next = 4;
5122
+ _context.next = 3;
5126
5123
  break;
5127
5124
  }
5128
5125
 
5129
5126
  return _context.abrupt("return", null);
5130
5127
 
5131
- case 4:
5128
+ case 3:
5132
5129
  userObj = isLoggedIn ? {
5133
5130
  emailAddress: emailAddress,
5134
5131
  mobileNumber: mobileNumber,
@@ -5136,28 +5133,27 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5136
5133
  } : {
5137
5134
  isLoggedIn: false
5138
5135
  };
5139
- console.log('user object------', userObj);
5140
- _context.next = 8;
5136
+ _context.next = 6;
5141
5137
  return awaitHelper(global.AccessType.setUser(userObj));
5142
5138
 
5143
- case 8:
5139
+ case 6:
5144
5140
  _yield$awaitHelper = _context.sent;
5145
5141
  error = _yield$awaitHelper.error;
5146
5142
  user = _yield$awaitHelper.data;
5147
5143
 
5148
5144
  if (!error) {
5149
- _context.next = 14;
5145
+ _context.next = 12;
5150
5146
  break;
5151
5147
  }
5152
5148
 
5153
5149
  console.warn("User context setting failed --> ", error);
5154
5150
  return _context.abrupt("return", error);
5155
5151
 
5156
- case 14:
5157
- console.log('user----', user);
5152
+ case 12:
5153
+ _this.props.onUserSet && _this.props.onUserSet();
5158
5154
  return _context.abrupt("return", user);
5159
5155
 
5160
- case 16:
5156
+ case 14:
5161
5157
  case "end":
5162
5158
  return _context.stop();
5163
5159
  }
@@ -5482,22 +5478,18 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5482
5478
  callback = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : function () {
5483
5479
  return null;
5484
5480
  };
5485
- console.log('run sequencial=====');
5486
5481
  _ref9 = _this.props || {}, email = _ref9.email, phone = _ref9.phone, accessTypeBkIntegrationId = _ref9.accessTypeBkIntegrationId, _ref9$executeSequenti = _ref9.executeSequentialCalls, executeSequentialCalls = _ref9$executeSequenti === void 0 ? true : _ref9$executeSequenti;
5487
- _context8.next = 5;
5482
+ _context8.next = 4;
5488
5483
  return fetch("/api/auth/v1/access-token/integrations/".concat(accessTypeBkIntegrationId));
5489
5484
 
5490
- case 5:
5485
+ case 4:
5491
5486
  jwtResponse = _context8.sent;
5492
- console.log('jwt response-----', jwtResponse);
5493
- _context8.next = 9;
5487
+ _context8.next = 7;
5494
5488
  return awaitHelper(_this.setUser(email, phone, jwtResponse.headers.get('x-integration-token'), !!jwtResponse.headers.get('x-integration-token')));
5495
5489
 
5496
- case 9:
5490
+ case 7:
5497
5491
  _yield$awaitHelper7 = _context8.sent;
5498
5492
  error = _yield$awaitHelper7.error;
5499
- console.log('error====', error);
5500
- console.log('executeSequentialCalls======', executeSequentialCalls);
5501
5493
 
5502
5494
  if (!error) {
5503
5495
  try {
@@ -5528,7 +5520,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5528
5520
  }
5529
5521
  }
5530
5522
 
5531
- case 14:
5523
+ case 10:
5532
5524
  case "end":
5533
5525
  return _context8.stop();
5534
5526
  }
@@ -5636,7 +5628,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5636
5628
 
5637
5629
  _defineProperty__default["default"](_assertThisInitialized__default["default"](_this), "initAccessType", function (callback) {
5638
5630
  var accessTypeBkIntegrationId = _this.props.accessTypeBkIntegrationId;
5639
- console.log('init at');
5640
5631
 
5641
5632
  try {
5642
5633
  _this.loadScript(function () {
@@ -65,7 +65,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
65
65
  accessTypeScript.setAttribute('data-accessType-script', '1');
66
66
  accessTypeScript.async = 1;
67
67
  document.body.appendChild(accessTypeScript);
68
- console.log('scription loaded----1');
69
68
  return true;
70
69
  }
71
70
 
@@ -74,7 +73,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
74
73
  callback();
75
74
  }
76
75
 
77
- console.log('scription loaded----2');
78
76
  return true;
79
77
  });
80
78
 
@@ -92,16 +90,15 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
92
90
  switch (_context.prev = _context.next) {
93
91
  case 0:
94
92
  isLoggedIn = _args.length > 3 && _args[3] !== undefined ? _args[3] : true;
95
- console.log('set user-----', global.AccessType);
96
93
 
97
94
  if (global.AccessType) {
98
- _context.next = 4;
95
+ _context.next = 3;
99
96
  break;
100
97
  }
101
98
 
102
99
  return _context.abrupt("return", null);
103
100
 
104
- case 4:
101
+ case 3:
105
102
  userObj = isLoggedIn ? {
106
103
  emailAddress: emailAddress,
107
104
  mobileNumber: mobileNumber,
@@ -109,28 +106,27 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
109
106
  } : {
110
107
  isLoggedIn: false
111
108
  };
112
- console.log('user object------', userObj);
113
- _context.next = 8;
109
+ _context.next = 6;
114
110
  return awaitHelper(global.AccessType.setUser(userObj));
115
111
 
116
- case 8:
112
+ case 6:
117
113
  _yield$awaitHelper = _context.sent;
118
114
  error = _yield$awaitHelper.error;
119
115
  user = _yield$awaitHelper.data;
120
116
 
121
117
  if (!error) {
122
- _context.next = 14;
118
+ _context.next = 12;
123
119
  break;
124
120
  }
125
121
 
126
122
  console.warn("User context setting failed --> ", error);
127
123
  return _context.abrupt("return", error);
128
124
 
129
- case 14:
130
- console.log('user----', user);
125
+ case 12:
126
+ _this.props.onUserSet && _this.props.onUserSet();
131
127
  return _context.abrupt("return", user);
132
128
 
133
- case 16:
129
+ case 14:
134
130
  case "end":
135
131
  return _context.stop();
136
132
  }
@@ -455,22 +451,18 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
455
451
  callback = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : function () {
456
452
  return null;
457
453
  };
458
- console.log('run sequencial=====');
459
454
  _ref9 = _this.props || {}, email = _ref9.email, phone = _ref9.phone, accessTypeBkIntegrationId = _ref9.accessTypeBkIntegrationId, _ref9$executeSequenti = _ref9.executeSequentialCalls, executeSequentialCalls = _ref9$executeSequenti === void 0 ? true : _ref9$executeSequenti;
460
- _context8.next = 5;
455
+ _context8.next = 4;
461
456
  return fetch("/api/auth/v1/access-token/integrations/".concat(accessTypeBkIntegrationId));
462
457
 
463
- case 5:
458
+ case 4:
464
459
  jwtResponse = _context8.sent;
465
- console.log('jwt response-----', jwtResponse);
466
- _context8.next = 9;
460
+ _context8.next = 7;
467
461
  return awaitHelper(_this.setUser(email, phone, jwtResponse.headers.get('x-integration-token'), !!jwtResponse.headers.get('x-integration-token')));
468
462
 
469
- case 9:
463
+ case 7:
470
464
  _yield$awaitHelper7 = _context8.sent;
471
465
  error = _yield$awaitHelper7.error;
472
- console.log('error====', error);
473
- console.log('executeSequentialCalls======', executeSequentialCalls);
474
466
 
475
467
  if (!error) {
476
468
  try {
@@ -501,7 +493,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
501
493
  }
502
494
  }
503
495
 
504
- case 14:
496
+ case 10:
505
497
  case "end":
506
498
  return _context8.stop();
507
499
  }
@@ -609,7 +601,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
609
601
 
610
602
  _defineProperty(_assertThisInitialized(_this), "initAccessType", function (callback) {
611
603
  var accessTypeBkIntegrationId = _this.props.accessTypeBkIntegrationId;
612
- console.log('init at');
613
604
 
614
605
  try {
615
606
  _this.loadScript(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.8.5-ms-logs.0",
3
+ "version": "3.8.5",
4
4
  "description": "Components to help build Quintype Node.js apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",