@tap-payments/apple-pay-button 1.2.3 → 1.2.4

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.
@@ -135,6 +135,7 @@ export var useApplePay = function (_a) {
135
135
  if (debug)
136
136
  console.log('merchant configuration: ', data);
137
137
  setProfile(data);
138
+ onReady && onReady();
138
139
  return [3, 6];
139
140
  case 4:
140
141
  err_1 = _h.sent();
@@ -142,7 +143,6 @@ export var useApplePay = function (_a) {
142
143
  return [3, 6];
143
144
  case 5:
144
145
  setLoading(false);
145
- onReady && onReady();
146
146
  return [7];
147
147
  case 6: return [2];
148
148
  }
@@ -268,7 +268,7 @@ export var useApplePay = function (_a) {
268
268
  console.error('We only support AppleToken and TapToken for now');
269
269
  console.info('Completing payment with status: STATUS_FAILURE');
270
270
  session_1.completePayment({ status: ApplePaySession.STATUS_FAILURE });
271
- _f.label = 8;
271
+ throw new Error('We only support AppleToken and TapToken for now');
272
272
  case 8: return [3, 11];
273
273
  case 9:
274
274
  error_2 = _f.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",