@quintype/components 3.3.2-check-sub-error.0 → 3.3.2-check-sub-error.2
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 +17 -6
- package/dist/es/components/access-type.js +17 -6
- package/package.json +1 -1
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.
|
|
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
|
|
5001
|
+
case 4:
|
|
5001
5002
|
jwtResponse = _context8.sent;
|
|
5002
|
-
_context8.next =
|
|
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
|
|
5016
|
+
case 13:
|
|
5006
5017
|
_yield$awaitHelper7 = _context8.sent;
|
|
5007
5018
|
error = _yield$awaitHelper7.error;
|
|
5008
5019
|
|
|
@@ -5035,12 +5046,12 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5035
5046
|
}
|
|
5036
5047
|
}
|
|
5037
5048
|
|
|
5038
|
-
case
|
|
5049
|
+
case 17:
|
|
5039
5050
|
case "end":
|
|
5040
5051
|
return _context8.stop();
|
|
5041
5052
|
}
|
|
5042
5053
|
}
|
|
5043
|
-
}, _callee8);
|
|
5054
|
+
}, _callee8, null, [[1, 7]]);
|
|
5044
5055
|
})));
|
|
5045
5056
|
|
|
5046
5057
|
_defineProperty__default["default"](_assertThisInitialized__default["default"](_this), "getSubscriptionForUser", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee9() {
|
|
@@ -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.
|
|
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
|
|
431
|
+
case 4:
|
|
431
432
|
jwtResponse = _context8.sent;
|
|
432
|
-
_context8.next =
|
|
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
|
|
446
|
+
case 13:
|
|
436
447
|
_yield$awaitHelper7 = _context8.sent;
|
|
437
448
|
error = _yield$awaitHelper7.error;
|
|
438
449
|
|
|
@@ -465,12 +476,12 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
465
476
|
}
|
|
466
477
|
}
|
|
467
478
|
|
|
468
|
-
case
|
|
479
|
+
case 17:
|
|
469
480
|
case "end":
|
|
470
481
|
return _context8.stop();
|
|
471
482
|
}
|
|
472
483
|
}
|
|
473
|
-
}, _callee8);
|
|
484
|
+
}, _callee8, null, [[1, 7]]);
|
|
474
485
|
})));
|
|
475
486
|
|
|
476
487
|
_defineProperty(_assertThisInitialized(_this), "getSubscriptionForUser", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
package/package.json
CHANGED