@quintype/components 3.8.9-stripe-up-downgrade.8 → 3.8.9

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
@@ -5821,7 +5821,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5821
5821
  error,
5822
5822
  switchPaymentOptions,
5823
5823
  payload,
5824
- response,
5825
5824
  _args12 = arguments;
5826
5825
 
5827
5826
  return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
@@ -5848,7 +5847,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5848
5847
  switchType = get__default["default"](options, ['switchType']);
5849
5848
 
5850
5849
  if (!(intent === 'switch')) {
5851
- _context12.next = 23;
5850
+ _context12.next = 19;
5852
5851
  break;
5853
5852
  }
5854
5853
 
@@ -5876,24 +5875,15 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5876
5875
  success_url: options === null || options === void 0 ? void 0 : options.successUrl,
5877
5876
  cancel_url: options === null || options === void 0 ? void 0 : options.cancelUrl
5878
5877
  }
5879
- }); // return switchPaymentOptions.stripe.proceed(payload);
5880
-
5881
- _context12.next = 20;
5882
- return switchPaymentOptions.stripe.proceed(payload);
5883
-
5884
- case 20:
5885
- response = _context12.sent;
5886
- console.log("FROM COMPONENTS--------", {
5887
- response: response
5888
5878
  });
5889
- return _context12.abrupt("return", response);
5879
+ return _context12.abrupt("return", switchPaymentOptions.stripe.proceed(payload));
5890
5880
 
5891
- case 23:
5881
+ case 19:
5892
5882
  return _context12.abrupt("return", paymentOptions.stripe ? paymentOptions.stripe.proceed(paymentObject) : Promise.reject({
5893
5883
  message: 'Payment option is loading...'
5894
5884
  }));
5895
5885
 
5896
- case 24:
5886
+ case 20:
5897
5887
  case "end":
5898
5888
  return _context12.stop();
5899
5889
  }
@@ -747,7 +747,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
747
747
  error,
748
748
  switchPaymentOptions,
749
749
  payload,
750
- response,
751
750
  _args12 = arguments;
752
751
 
753
752
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
@@ -774,7 +773,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
774
773
  switchType = get(options, ['switchType']);
775
774
 
776
775
  if (!(intent === 'switch')) {
777
- _context12.next = 23;
776
+ _context12.next = 19;
778
777
  break;
779
778
  }
780
779
 
@@ -802,24 +801,15 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
802
801
  success_url: options === null || options === void 0 ? void 0 : options.successUrl,
803
802
  cancel_url: options === null || options === void 0 ? void 0 : options.cancelUrl
804
803
  }
805
- }); // return switchPaymentOptions.stripe.proceed(payload);
806
-
807
- _context12.next = 20;
808
- return switchPaymentOptions.stripe.proceed(payload);
809
-
810
- case 20:
811
- response = _context12.sent;
812
- console.log("FROM COMPONENTS--------", {
813
- response: response
814
804
  });
815
- return _context12.abrupt("return", response);
805
+ return _context12.abrupt("return", switchPaymentOptions.stripe.proceed(payload));
816
806
 
817
- case 23:
807
+ case 19:
818
808
  return _context12.abrupt("return", paymentOptions.stripe ? paymentOptions.stripe.proceed(paymentObject) : Promise.reject({
819
809
  message: 'Payment option is loading...'
820
810
  }));
821
811
 
822
- case 24:
812
+ case 20:
823
813
  case "end":
824
814
  return _context12.stop();
825
815
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.8.9-stripe-up-downgrade.8",
3
+ "version": "3.8.9",
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",