@alipay/ams-checkout 0.0.1756987734-dev.2 → 0.0.1756987734-dev.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.
@@ -674,6 +674,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
674
674
|
message: res === null || res === void 0 ? void 0 : res.errorMessage
|
675
675
|
};
|
676
676
|
_this5.dispatchToSDK(EVENT.error.name, createComponentError);
|
677
|
+
_this5.dispatchToSDK(EVENT.eventCallback.name, createComponentError);
|
677
678
|
if ((res === null || res === void 0 || (_res$errorActions = res.errorActions) === null || _res$errorActions === void 0 ? void 0 : _res$errorActions.showType) === 'NONE') {
|
678
679
|
// 抛错销毁SDK,不展示错误页面
|
679
680
|
reject(createComponentError);
|
@@ -685,6 +686,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
685
686
|
if (ComponentSignEnum.CASHIER_PAYMENT_CARD === _this5._componentSign) {
|
686
687
|
// 通用操作:抛CREATECOMPONENT_ERROR错误码给商户,商户升级到新版本需要处理CREATECOMPONENT_ERROR逻辑
|
687
688
|
_this5.dispatchToSDK(EVENT.error.name, ERRORMESSAGE.CREATECOMPONENT_ERROR.NETWORK_REQUEST_ERROR);
|
689
|
+
_this5.dispatchToSDK(EVENT.eventCallback.name, ERRORMESSAGE.CREATECOMPONENT_ERROR.NETWORK_REQUEST_ERROR);
|
688
690
|
}
|
689
691
|
if ([ComponentSignEnum.CASHIER_PAYMENT_CARD, ComponentSignEnum.VAULTING_CARD, ComponentSignEnum.CASHIER_PAYMENT_APM].includes(_this5._componentSign)) {
|
690
692
|
return resolve({
|