@alipay/ams-checkout 0.0.1710212811-dev.33 → 0.0.1710212811-dev.36
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/core/bus/ability/tracker.d.ts +1 -1
- package/esm/core/bus/index.d.ts +2 -5
- package/esm/core/bus/index.js +2 -4
- package/esm/plugin/applepay/component.d.ts +1 -1
- package/esm/plugin/applepay/component.js +1 -1
- package/esm/plugin/applepay/index.d.ts +1 -1
- package/esm/plugin/applepay/service.d.ts +1 -1
- package/esm/plugin/component/index.js +1 -1
- package/esm/plugin/type.js +0 -1
- package/esm/request/index.d.ts +1 -1
- package/esm/service/index.d.ts +1 -1
- package/package.json +1 -1
package/esm/core/bus/index.d.ts
CHANGED
@@ -1,14 +1,11 @@
|
|
1
|
-
import { Logger } from "../../util/logger";
|
1
|
+
import type { Logger } from "../../util/logger";
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* publish_v: string 发送者版本
|
5
|
-
* base_v: string 基础包版本
|
3
|
+
* Bus 埋点内容定义
|
6
4
|
*/
|
7
5
|
export declare enum BusLogEventEnum {
|
8
6
|
/**
|
9
7
|
* 发送消息
|
10
8
|
* action:string
|
11
|
-
* sub: bool 是否订阅
|
12
9
|
*/
|
13
10
|
sdk_event_busPublishMessage = "sdk_event_busPublishMessage",
|
14
11
|
/**
|
package/esm/core/bus/index.js
CHANGED
@@ -11,9 +11,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
12
12
|
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); }
|
13
13
|
/**
|
14
|
-
*
|
15
|
-
* publish_v: string 发送者版本
|
16
|
-
* base_v: string 基础包版本
|
14
|
+
* Bus 埋点内容定义
|
17
15
|
*/
|
18
16
|
export var BusLogEventEnum = /*#__PURE__*/function (BusLogEventEnum) {
|
19
17
|
BusLogEventEnum["sdk_event_busPublishMessage"] = "sdk_event_busPublishMessage";
|
@@ -183,7 +181,7 @@ export var BusManager = /*#__PURE__*/function () {
|
|
183
181
|
return new Promise(function (resolve, reject) {
|
184
182
|
var _config$timeoutMs;
|
185
183
|
_this.publish(message, function (result) {
|
186
|
-
failed =
|
184
|
+
failed = false;
|
187
185
|
resolve(result);
|
188
186
|
});
|
189
187
|
setTimeout(function () {
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
7
7
|
*/
|
8
8
|
import { ApplePaySubTypeEnum, IAppendParams, IApplePayOptionsParams } from '../../types';
|
9
|
-
import { Logger } from '../../util/logger';
|
9
|
+
import type { Logger } from '../../util/logger';
|
10
10
|
export declare enum ApplePayComponentEvent {
|
11
11
|
sdk_event_appleAvailable = "sdk_event_appleAvailable",
|
12
12
|
sdk_event_appleCreateComponent = "sdk_event_appleCreateComponent",
|
@@ -330,7 +330,7 @@ var ApplePayComponent = /*#__PURE__*/function () {
|
|
330
330
|
try {
|
331
331
|
this._applePayService.startPay(this._parseData);
|
332
332
|
} catch (error) {
|
333
|
-
logError("appple runtime excepiton", error);
|
333
|
+
logError(eventCodeEnum.SDK_PAYMENT_ERROR, "appple runtime excepiton", error);
|
334
334
|
}
|
335
335
|
}
|
336
336
|
}]);
|
@@ -7,7 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
import { IGetMerchantSession, ICompletePaymentAuthorized, ICompleteApplePay, ILogError } from './interface';
|
9
9
|
import { ApplePaySubTypeEnum, IpaymentSessionMetaData } from '../../types';
|
10
|
-
import { Logger } from '../../util/logger';
|
10
|
+
import type { Logger } from '../../util/logger';
|
11
11
|
/**
|
12
12
|
* Apple Pay Service
|
13
13
|
*/
|
@@ -54,7 +54,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
54
54
|
_defineProperty(this, "_merchantAppointParam", void 0);
|
55
55
|
_defineProperty(this, "_webAppHeartBeatTimeoutId", void 0);
|
56
56
|
_defineProperty(this, "_webAppHeartBeatTimeoutFn", void 0);
|
57
|
-
this._appVersion = '1.
|
57
|
+
this._appVersion = '1.11.0';
|
58
58
|
this._isInitComponent = false;
|
59
59
|
this._selector = "#".concat(COMPONENT_SECTION_ID);
|
60
60
|
this.createIframeNode = function () {
|
package/esm/plugin/type.js
CHANGED
package/esm/request/index.d.ts
CHANGED
package/esm/service/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ApplePayPaymentSessionRequest, ApplePayPaymentSessionResult, CashierSdkActionQueryRequest, CashierSdkActionQueryResult, CashierSubmitPayRequest, CashierSubmitPayResult, RequestConfig } from '../types';
|
2
|
-
import { Logger } from '../util/logger';
|
2
|
+
import type { Logger } from '../util/logger';
|
3
3
|
export declare function queryPaymentInfo(params: CashierSdkActionQueryRequest, options: RequestConfig, logger: Logger): Promise<CashierSdkActionQueryResult>;
|
4
4
|
export declare function antomConfig(options: RequestConfig, logger: Logger): Promise<any>;
|
5
5
|
export declare function submitPayInfo(params: CashierSubmitPayRequest, options: RequestConfig, logger: Logger): Promise<CashierSubmitPayResult>;
|