@alipay/ams-checkout 0.0.1765161958-dev.7 → 0.0.1765291706-dev.0
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/esm/config/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import json from "../../package.json";
|
|
9
9
|
export var marmotMap = {
|
|
10
|
-
dev: '
|
|
11
|
-
sit: '
|
|
10
|
+
dev: 'http://page.alipay.net/page/antom-web-checkout/src/component-app',
|
|
11
|
+
sit: 'http://page.test.alipay.net/page/antom-web-checkout/src/component-app',
|
|
12
12
|
pre: 'https://pre.ac.alipay.com/page/antom-web-checkout/src/component-app',
|
|
13
13
|
sandbox: 'https://ac.alipay.com/page/antom-web-checkout/src/component-app',
|
|
14
14
|
light_sandbox: 'https://ac.alipay.com/page/antom-web-checkout/src/component-app',
|
|
@@ -23,8 +23,8 @@ export var marmotConfigMap = {
|
|
|
23
23
|
prod: 'https://config.marmot-cloud.com/config/data/antom-sdk-config/en_US.json'
|
|
24
24
|
};
|
|
25
25
|
export var v2AppMarmotMap = {
|
|
26
|
-
dev: '
|
|
27
|
-
sit: '
|
|
26
|
+
dev: 'http://page.alipay.net/page/antom-web-checkout-v2',
|
|
27
|
+
sit: 'http://page.test.alipay.net/page/antom-web-checkout-v2',
|
|
28
28
|
pre: 'https://pre.ac.alipay.com/page/antom-web-checkout-v2',
|
|
29
29
|
sandbox: 'https://checkout.antom.com',
|
|
30
30
|
light_sandbox: 'https://checkout.antom.com',
|
|
@@ -136,7 +136,7 @@ export function generateIframeSrc(_ref3) {
|
|
|
136
136
|
var extendInfo = (paymentSessionObj === null || paymentSessionObj === void 0 ? void 0 : paymentSessionObj.extendInfo) || '';
|
|
137
137
|
var mid = paymentSessionObj === null || paymentSessionObj === void 0 ? void 0 : paymentSessionObj.clientId;
|
|
138
138
|
var hostSign = (paymentSession || '').split('&&')[1] || '';
|
|
139
|
-
var baseUrl = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ELEMENT_ENVIRONMENT.DEV, '
|
|
139
|
+
var baseUrl = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ELEMENT_ENVIRONMENT.DEV, 'http://page.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.TEST, 'http://page.test.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SIT, 'http://page.test.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.PRE, 'https://pre.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SANDBOX, 'https://checkout.antom.com'), ELEMENT_ENVIRONMENT.PROD, 'https://checkout.antom.com');
|
|
140
140
|
var _env = (environment === null || environment === void 0 ? void 0 : environment.toLocaleUpperCase()) || ELEMENT_ENVIRONMENT.DEV;
|
|
141
141
|
if (!link) {
|
|
142
142
|
link = "".concat(baseUrl[_env]).concat(pageUrl);
|
package/esm/loader/Proxy.js
CHANGED
|
@@ -33,8 +33,10 @@ export function createBaseProxy(constructorName) {
|
|
|
33
33
|
var _newProxyInstance = function _newProxyInstance(self) {
|
|
34
34
|
return new Proxy(self, {
|
|
35
35
|
get: function get(target, prop) {
|
|
36
|
+
// 过滤 promise相关的方法,兼容商户 Promise 包装 api 的形式
|
|
37
|
+
var promiseFunctionName = ['then', 'catch', 'finally'];
|
|
36
38
|
// 如果是内部属性或方法,直接返回
|
|
37
|
-
if (prop in target || _typeof(prop) === 'symbol') {
|
|
39
|
+
if (prop in target || _typeof(prop) === 'symbol' || promiseFunctionName.includes(prop)) {
|
|
38
40
|
return target[prop];
|
|
39
41
|
}
|
|
40
42
|
|