@alipay/ams-checkout 0.0.1701393225-dev.7 → 0.0.1701393225-dev.8
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.
@@ -199,15 +199,14 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
199
199
|
console.log('res', res);
|
200
200
|
if (res !== null && res !== void 0 && res.success && res.merchantSessionObject) {
|
201
201
|
console.log('res.merchantSessionObject', res.merchantSessionObject);
|
202
|
-
Promise.resolve(res.merchantSessionObject);
|
203
|
-
return;
|
202
|
+
return Promise.resolve(res.merchantSessionObject);
|
204
203
|
}
|
205
|
-
Promise.reject({
|
204
|
+
return Promise.reject({
|
206
205
|
errorCode: res.errorCode,
|
207
206
|
errorMessage: res.errorMessage
|
208
207
|
});
|
209
208
|
}).catch(function (error) {
|
210
|
-
Promise.reject(error);
|
209
|
+
return Promise.reject(error);
|
211
210
|
}));
|
212
211
|
case 15:
|
213
212
|
case "end":
|
@@ -254,15 +253,14 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
254
253
|
_context3.t6 = _this3.logger;
|
255
254
|
return _context3.abrupt("return", (0, _context3.t0)(_context3.t1, _context3.t5, _context3.t6).then(function (res) {
|
256
255
|
if (res !== null && res !== void 0 && res.success) {
|
257
|
-
Promise.resolve(res);
|
258
|
-
return;
|
256
|
+
return Promise.resolve(res);
|
259
257
|
}
|
260
|
-
Promise.reject({
|
258
|
+
return Promise.reject({
|
261
259
|
errorCode: res.errorCode,
|
262
260
|
errorMessage: res.errorMessage
|
263
261
|
});
|
264
262
|
}).catch(function (error) {
|
265
|
-
Promise.resolve(error);
|
263
|
+
return Promise.resolve(error);
|
266
264
|
}));
|
267
265
|
case 12:
|
268
266
|
case "end":
|