@quintype/components 3.3.2-check-sub-error.0 → 3.3.2-check-sub-error.3

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
@@ -4994,15 +4994,26 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
4994
4994
  callback = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : function () {
4995
4995
  return null;
4996
4996
  };
4997
- _context8.next = 3;
4997
+ _context8.prev = 1;
4998
+ _context8.next = 4;
4998
4999
  return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
4999
5000
 
5000
- case 3:
5001
+ case 4:
5001
5002
  jwtResponse = _context8.sent;
5002
- _context8.next = 6;
5003
+ _context8.next = 10;
5004
+ break;
5005
+
5006
+ case 7:
5007
+ _context8.prev = 7;
5008
+ _context8.t0 = _context8["catch"](1);
5009
+ console.log("jet resposne error ", _context8.t0);
5010
+
5011
+ case 10:
5012
+ console.log("jwtresponse", jwtResponse);
5013
+ _context8.next = 13;
5003
5014
  return awaitHelper(_this.setUser(_this.props.email, _this.props.phone, jwtResponse.headers.get("x-integration-token"), !!jwtResponse.headers.get("x-integration-token")));
5004
5015
 
5005
- case 6:
5016
+ case 13:
5006
5017
  _yield$awaitHelper7 = _context8.sent;
5007
5018
  error = _yield$awaitHelper7.error;
5008
5019
 
@@ -5019,6 +5030,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5019
5030
  assetPlans = _ref10[2],
5020
5031
  campaignSubscriptionGroups = _ref10[3];
5021
5032
 
5033
+ console.log("entered then inside promise all ");
5022
5034
  reactRedux.batch(function () {
5023
5035
  _this.props.subscriptionGroupLoaded(subscriptionGroups);
5024
5036
 
@@ -5028,19 +5040,22 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5028
5040
 
5029
5041
  _this.props.campaignSubscriptionGroupLoaded(campaignSubscriptionGroups);
5030
5042
  });
5043
+ console.log(" called callback after promise all ");
5031
5044
  callback();
5045
+ })["catch"](function (e) {
5046
+ console.log("some promise all error", e);
5032
5047
  });
5033
5048
  } catch (e) {
5034
5049
  console.log("Subscription / payments failed", e);
5035
5050
  }
5036
5051
  }
5037
5052
 
5038
- case 10:
5053
+ case 17:
5039
5054
  case "end":
5040
5055
  return _context8.stop();
5041
5056
  }
5042
5057
  }
5043
- }, _callee8);
5058
+ }, _callee8, null, [[1, 7]]);
5044
5059
  })));
5045
5060
 
5046
5061
  _defineProperty__default["default"](_assertThisInitialized__default["default"](_this), "getSubscriptionForUser", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee9() {
@@ -5100,6 +5115,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5100
5115
  });
5101
5116
  } catch (e) {
5102
5117
  console.warn("Accesstype load fail", e);
5118
+ console.log("AT load fail");
5103
5119
  }
5104
5120
  });
5105
5121
 
@@ -424,15 +424,26 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
424
424
  callback = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : function () {
425
425
  return null;
426
426
  };
427
- _context8.next = 3;
427
+ _context8.prev = 1;
428
+ _context8.next = 4;
428
429
  return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
429
430
 
430
- case 3:
431
+ case 4:
431
432
  jwtResponse = _context8.sent;
432
- _context8.next = 6;
433
+ _context8.next = 10;
434
+ break;
435
+
436
+ case 7:
437
+ _context8.prev = 7;
438
+ _context8.t0 = _context8["catch"](1);
439
+ console.log("jet resposne error ", _context8.t0);
440
+
441
+ case 10:
442
+ console.log("jwtresponse", jwtResponse);
443
+ _context8.next = 13;
433
444
  return awaitHelper(_this.setUser(_this.props.email, _this.props.phone, jwtResponse.headers.get("x-integration-token"), !!jwtResponse.headers.get("x-integration-token")));
434
445
 
435
- case 6:
446
+ case 13:
436
447
  _yield$awaitHelper7 = _context8.sent;
437
448
  error = _yield$awaitHelper7.error;
438
449
 
@@ -449,6 +460,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
449
460
  assetPlans = _ref10[2],
450
461
  campaignSubscriptionGroups = _ref10[3];
451
462
 
463
+ console.log("entered then inside promise all ");
452
464
  batch(function () {
453
465
  _this.props.subscriptionGroupLoaded(subscriptionGroups);
454
466
 
@@ -458,19 +470,22 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
458
470
 
459
471
  _this.props.campaignSubscriptionGroupLoaded(campaignSubscriptionGroups);
460
472
  });
473
+ console.log(" called callback after promise all ");
461
474
  callback();
475
+ })["catch"](function (e) {
476
+ console.log("some promise all error", e);
462
477
  });
463
478
  } catch (e) {
464
479
  console.log("Subscription / payments failed", e);
465
480
  }
466
481
  }
467
482
 
468
- case 10:
483
+ case 17:
469
484
  case "end":
470
485
  return _context8.stop();
471
486
  }
472
487
  }
473
- }, _callee8);
488
+ }, _callee8, null, [[1, 7]]);
474
489
  })));
475
490
 
476
491
  _defineProperty(_assertThisInitialized(_this), "getSubscriptionForUser", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
@@ -530,6 +545,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
530
545
  });
531
546
  } catch (e) {
532
547
  console.warn("Accesstype load fail", e);
548
+ console.log("AT load fail");
533
549
  }
534
550
  });
535
551
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.3.2-check-sub-error.0",
3
+ "version": "3.3.2-check-sub-error.3",
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",