@alipay/ams-checkout 0.0.1757298389-dev.3 → 0.0.1757298389-dev.5

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.
@@ -6,10 +6,10 @@ export declare const sdkVersion: string;
6
6
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
7
7
  * TODO 这里考虑直接换成packagejson.version
8
8
  */
9
- export declare const AMSCheckoutAppVersion = "1.42.1";
10
- export declare const AMSAutoDebitAppVersion = "1.42.1";
11
- export declare const AMSEasyPayAppVersion = "1.42.1";
12
- export declare const AMSCashierPaymentAppVersion = "1.42.1";
13
- export declare const AMSVaultingAppVersion = "1.42.1";
14
- export declare const AMSPaymentElementAppVersion = "1.42.1";
15
- export declare const ADDRESSElementAppVersion = "1.42.1";
9
+ export declare const AMSCheckoutAppVersion = "1.43.0-rtl";
10
+ export declare const AMSAutoDebitAppVersion = "1.43.0-rtl";
11
+ export declare const AMSEasyPayAppVersion = "1.43.0-rtl";
12
+ export declare const AMSCashierPaymentAppVersion = "1.43.0-rtl";
13
+ export declare const AMSVaultingAppVersion = "1.43.0-rtl";
14
+ export declare const AMSPaymentElementAppVersion = "1.43.0-rtl";
15
+ export declare const ADDRESSElementAppVersion = "1.43.0-rtl";
@@ -36,10 +36,10 @@ export var sdkVersion = json.version;
36
36
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
37
37
  * TODO 这里考虑直接换成packagejson.version
38
38
  */
39
- export var AMSCheckoutAppVersion = '1.42.1'; // 兜底版本号
40
- export var AMSAutoDebitAppVersion = '1.42.1'; // 代扣
41
- export var AMSEasyPayAppVersion = '1.42.1'; // easypay
42
- export var AMSCashierPaymentAppVersion = '1.42.1'; // 收银台(卡、apm)
43
- export var AMSVaultingAppVersion = '1.42.1'; // 绑卡
44
- export var AMSPaymentElementAppVersion = '1.42.1'; // payment element
45
- export var ADDRESSElementAppVersion = '1.42.1'; // address element
39
+ export var AMSCheckoutAppVersion = '1.43.0-rtl'; // 兜底版本号
40
+ export var AMSAutoDebitAppVersion = '1.43.0-rtl'; // 代扣
41
+ export var AMSEasyPayAppVersion = '1.43.0-rtl'; // easypay
42
+ export var AMSCashierPaymentAppVersion = '1.43.0-rtl'; // 收银台(卡、apm)
43
+ export var AMSVaultingAppVersion = '1.43.0-rtl'; // 绑卡
44
+ export var AMSPaymentElementAppVersion = '1.43.0-rtl'; // payment element
45
+ export var ADDRESSElementAppVersion = '1.43.0-rtl'; // address element
@@ -217,34 +217,42 @@ var ElementController = /*#__PURE__*/function () {
217
217
  return _regeneratorRuntime().wrap(function _callee$(_context) {
218
218
  while (1) switch (_context.prev = _context.next) {
219
219
  case 0:
220
+ if (!_this3.initTimeout) {
221
+ _context.next = 4;
222
+ break;
223
+ }
224
+ return _context.abrupt("return", resolve({
225
+ isValid: false
226
+ }));
227
+ case 4:
220
228
  if (!((_this3$elementProcess = _this3.elementProcessors) !== null && _this3$elementProcess !== void 0 && _this3$elementProcess[ElementType.payment])) {
221
- _context.next = 13;
229
+ _context.next = 17;
222
230
  break;
223
231
  }
224
- _context.prev = 1;
225
- _context.next = 4;
232
+ _context.prev = 5;
233
+ _context.next = 8;
226
234
  return _this3.onValidateFunc((_this3$elementProcess2 = _this3.elementProcessors[ElementType.payment]) === null || _this3$elementProcess2 === void 0 ? void 0 : _this3$elementProcess2.eventCenter, ElementPaymentMethod.PAYMENT_ELEMENT);
227
- case 4:
235
+ case 8:
228
236
  validateResult = _context.sent;
229
237
  return _context.abrupt("return", resolve(validateResult.data));
230
- case 8:
231
- _context.prev = 8;
232
- _context.t0 = _context["catch"](1);
238
+ case 12:
239
+ _context.prev = 12;
240
+ _context.t0 = _context["catch"](5);
233
241
  return _context.abrupt("return", resolve({
234
242
  isValid: false
235
243
  }));
236
- case 11:
237
- _context.next = 14;
244
+ case 15:
245
+ _context.next = 18;
238
246
  break;
239
- case 13:
247
+ case 17:
240
248
  return _context.abrupt("return", resolve({
241
249
  isValid: false
242
250
  }));
243
- case 14:
251
+ case 18:
244
252
  case "end":
245
253
  return _context.stop();
246
254
  }
247
- }, _callee, null, [[1, 8]]);
255
+ }, _callee, null, [[5, 12]]);
248
256
  }));
249
257
  return function (_x) {
250
258
  return _ref2.apply(this, arguments);
@@ -378,6 +386,7 @@ var ElementController = /*#__PURE__*/function () {
378
386
  });
379
387
  this.serviceMap.EventCenter.listen(EVENT.webAppReady.name, function (data) {
380
388
  clearTimeout(_this5.initTimeout);
389
+ _this5.initTimeout = null;
381
390
  if (_this5.elementContainerService.getContainerService(data.source)) {
382
391
  renderCallback({
383
392
  success: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1757298389-dev.3",
3
+ "version": "0.0.1757298389-dev.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",