@alipay/ams-checkout 0.0.1730107332-dev.37 → 0.0.1730107332-dev.38
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/umd/ams-checkout.min.js +1 -1
- package/esm/foundation/product-processor/easysafepay/deps.d.ts +1 -1
- package/esm/foundation/product-processor/easysafepay/deps.js +1 -1
- package/esm/foundation/product-processor/easysafepay/index.js +8 -19
- package/esm/types/index.d.ts +4 -0
- package/esm/types/index.js +5 -0
- package/package.json +1 -1
@@ -3,7 +3,7 @@ export { v4 as uuid } from 'uuid';
|
|
3
3
|
export type { BizFlowStartBehavior, PaymentContext, ProductProcessor, RedirectBehaviorPayload, RenderBehaviorPayload, } from '../..';
|
4
4
|
export * as ChannelCustomize from '../../../component/channel';
|
5
5
|
export type { IChannelBehavior } from '../../../component/channel';
|
6
|
-
export { DisplayTypeEnum, PaymentMethodCategoryTypeEnum, ProductSceneEnum } from '../../../types';
|
6
|
+
export { DisplayTypeEnum, PaymentMethodCategoryTypeEnum, ProductSceneEnum, RiskSdkInfoEnum } from '../../../types';
|
7
7
|
export type { CashierSdkActionQueryRequest, CashierSdkActionQueryResult, CashierSubmitPayRequest, CashierSubmitPayResult, IoptionsParams, } from '../../../types';
|
8
8
|
export { isPC } from '../../../util';
|
9
9
|
export { getBackScheme } from '../../utils/redirect_utils';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export { v4 as uuid } from 'uuid';
|
2
2
|
import * as _ChannelCustomize from "../../../component/channel";
|
3
3
|
export { _ChannelCustomize as ChannelCustomize };
|
4
|
-
export { DisplayTypeEnum, PaymentMethodCategoryTypeEnum, ProductSceneEnum } from "../../../types";
|
4
|
+
export { DisplayTypeEnum, PaymentMethodCategoryTypeEnum, ProductSceneEnum, RiskSdkInfoEnum } from "../../../types";
|
5
5
|
export { isPC } from "../../../util";
|
6
6
|
export { getBackScheme } from "../../utils/redirect_utils";
|
7
7
|
export { isLocalMock } from "../../../util/mock";
|
@@ -16,7 +16,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
16
16
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
19
|
-
import { ChannelCustomize, DisplayTypeEnum, getBackScheme, isPC, ProductInfoCacheUtil, ProductSceneEnum, ServiceProvider, uuid, WebAppUrlUtil } from "./deps";
|
19
|
+
import { ChannelCustomize, DisplayTypeEnum, getBackScheme, isPC, ProductInfoCacheUtil, ProductSceneEnum, RiskSdkInfoEnum, ServiceProvider, uuid, WebAppUrlUtil } from "./deps";
|
20
20
|
export var EasySafePayProcessor = /*#__PURE__*/function () {
|
21
21
|
function EasySafePayProcessor() {
|
22
22
|
_classCallCheck(this, EasySafePayProcessor);
|
@@ -431,38 +431,27 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
|
|
431
431
|
}
|
432
432
|
}
|
433
433
|
if (!shouldInitSecuritySDK) {
|
434
|
-
_context4.next =
|
434
|
+
_context4.next = 10;
|
435
435
|
break;
|
436
436
|
}
|
437
437
|
_context4.next = 10;
|
438
438
|
return this.securityService.initSecurity(this.SECURITY_SDK_INIT_TIMEOUT);
|
439
439
|
case 10:
|
440
440
|
this.logger.logInfo({
|
441
|
-
title: '
|
441
|
+
title: 'a3753.b101271.c388193.d514078'
|
442
442
|
}, {
|
443
|
-
|
444
|
-
riskSdkInfo: 'need'
|
443
|
+
riskSdkInfo: shouldInitSecuritySDK ? RiskSdkInfoEnum.NEED : RiskSdkInfoEnum.NO_NEED
|
445
444
|
});
|
446
|
-
_context4.next =
|
445
|
+
_context4.next = 15;
|
447
446
|
break;
|
448
447
|
case 13:
|
449
|
-
|
450
|
-
title: 'start_easypay_without_security_sdk'
|
451
|
-
}, {
|
452
|
-
spmId: 'a3753.b101271.c388193.d514078',
|
453
|
-
riskSdkInfo: 'noneed'
|
454
|
-
});
|
455
|
-
case 14:
|
456
|
-
_context4.next = 18;
|
457
|
-
break;
|
458
|
-
case 16:
|
459
|
-
_context4.prev = 16;
|
448
|
+
_context4.prev = 13;
|
460
449
|
_context4.t0 = _context4["catch"](0);
|
461
|
-
case
|
450
|
+
case 15:
|
462
451
|
case "end":
|
463
452
|
return _context4.stop();
|
464
453
|
}
|
465
|
-
}, _callee4, this, [[0,
|
454
|
+
}, _callee4, this, [[0, 13]]);
|
466
455
|
}));
|
467
456
|
function initSecuritySDK() {
|
468
457
|
return _initSecuritySDK.apply(this, arguments);
|
package/esm/types/index.d.ts
CHANGED
package/esm/types/index.js
CHANGED
@@ -253,4 +253,9 @@ export var ConnectErrorCode = /*#__PURE__*/function (ConnectErrorCode) {
|
|
253
253
|
ConnectErrorCode["USER_AUTH_VERIFICATION_FAILED"] = "USER_AUTH_VERIFICATION_FAILED";
|
254
254
|
ConnectErrorCode["USER_NOT_EXISTS"] = "USER_NOT_EXISTS";
|
255
255
|
return ConnectErrorCode;
|
256
|
+
}({});
|
257
|
+
export var RiskSdkInfoEnum = /*#__PURE__*/function (RiskSdkInfoEnum) {
|
258
|
+
RiskSdkInfoEnum["NEED"] = "need";
|
259
|
+
RiskSdkInfoEnum["NO_NEED"] = "noneed";
|
260
|
+
return RiskSdkInfoEnum;
|
256
261
|
}({});
|