@alipay/ams-checkout 1.40.0 → 1.42.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.
@@ -5,10 +5,10 @@ export declare const sdkVersion: string;
5
5
  /**
6
6
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
7
7
  */
8
- export declare const AMSCheckoutAppVersion = "1.40.0";
9
- export declare const AMSAutoDebitAppVersion = "1.40.0";
10
- export declare const AMSEasyPayAppVersion = "1.40.0";
11
- export declare const AMSCashierPaymentAppVersion = "1.40.0";
12
- export declare const AMSVaultingAppVersion = "1.40.0";
13
- export declare const AMSPaymentElementAppVersion = "1.40.0";
14
- export declare const ADDRESSElementAppVersion = "1.40.0";
8
+ export declare const AMSCheckoutAppVersion = "1.42.0";
9
+ export declare const AMSAutoDebitAppVersion = "1.42.0";
10
+ export declare const AMSEasyPayAppVersion = "1.42.0";
11
+ export declare const AMSCashierPaymentAppVersion = "1.42.0";
12
+ export declare const AMSVaultingAppVersion = "1.42.0";
13
+ export declare const AMSPaymentElementAppVersion = "1.42.0";
14
+ export declare const ADDRESSElementAppVersion = "1.42.0";
@@ -35,10 +35,10 @@ export var sdkVersion = json.version;
35
35
  /**
36
36
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
37
37
  */
38
- export var AMSCheckoutAppVersion = '1.40.0'; // 兜底版本号
39
- export var AMSAutoDebitAppVersion = '1.40.0'; // 代扣
40
- export var AMSEasyPayAppVersion = '1.40.0'; // easypay
41
- export var AMSCashierPaymentAppVersion = '1.40.0'; // 收银台(卡、apm)
42
- export var AMSVaultingAppVersion = '1.40.0'; // 绑卡
43
- export var AMSPaymentElementAppVersion = '1.40.0'; // payment element
44
- export var ADDRESSElementAppVersion = '1.40.0'; // address element
38
+ export var AMSCheckoutAppVersion = '1.42.0'; // 兜底版本号
39
+ export var AMSAutoDebitAppVersion = '1.42.0'; // 代扣
40
+ export var AMSEasyPayAppVersion = '1.42.0'; // easypay
41
+ export var AMSCashierPaymentAppVersion = '1.42.0'; // 收银台(卡、apm)
42
+ export var AMSVaultingAppVersion = '1.42.0'; // 绑卡
43
+ export var AMSPaymentElementAppVersion = '1.42.0'; // payment element
44
+ export var ADDRESSElementAppVersion = '1.42.0'; // address element
package/esm/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare class AntomElement extends AMSCheckout {
25
25
  export declare class AddressElement extends AddressComponent {
26
26
  constructor(options: IoptionsAddressParams);
27
27
  }
28
- export declare class Element extends ElementComponent {
28
+ export declare class AMSElement extends ElementComponent {
29
29
  constructor(options: IElementOptions);
30
30
  }
31
31
  export declare class AMSEasyPay {
package/esm/index.js CHANGED
@@ -39,10 +39,10 @@ import { LogConfig, Logger } from "./util/logger";
39
39
  var logger = new Logger(LogConfig, true);
40
40
  export { AMSCheckoutPage } from "./core/component/ckp";
41
41
  export * from "./types";
42
+ import { EVENT } from "./constant";
42
43
  import { AntomSDKCore } from "./foundation/core";
43
44
  import { AutoDebitProcessor } from "./foundation/product-processor/autoDebit";
44
45
  import { EasySafePayProcessor } from "./foundation/product-processor/easysafepay";
45
- import { EVENT } from "./constant";
46
46
  export var AMSCheckout = /*#__PURE__*/function (_AMSComponent) {
47
47
  _inherits(AMSCheckout, _AMSComponent);
48
48
  var _super = _createSuper(AMSCheckout);
@@ -204,18 +204,18 @@ export var AddressElement = /*#__PURE__*/function (_AddressComponent) {
204
204
  }
205
205
  return _createClass(AddressElement);
206
206
  }(AddressComponent);
207
- export var Element = /*#__PURE__*/function (_ElementComponent) {
208
- _inherits(Element, _ElementComponent);
209
- var _super7 = _createSuper(Element);
210
- function Element(options) {
211
- _classCallCheck(this, Element);
207
+ export var AMSElement = /*#__PURE__*/function (_ElementComponent) {
208
+ _inherits(AMSElement, _ElementComponent);
209
+ var _super7 = _createSuper(AMSElement);
210
+ function AMSElement(options) {
211
+ _classCallCheck(this, AMSElement);
212
212
  var _options = Object.assign({}, options, {
213
213
  product: ProductSceneEnum.ELEMENT_PAYMENT,
214
214
  environment: options.environment
215
215
  });
216
216
  return _super7.call(this, _options);
217
217
  }
218
- return _createClass(Element);
218
+ return _createClass(AMSElement);
219
219
  }(ElementComponent);
220
220
  export var AMSEasyPay = /*#__PURE__*/function () {
221
221
  function AMSEasyPay(options) {
@@ -649,12 +649,12 @@ export declare enum eventCodeEnum {
649
649
  SDK_INIT_PARAMETER_ERROR = "SDK_INIT_PARAMETER_ERROR",
650
650
  SDK_CREATECOMPONENT_ERROR = "SDK_CREATECOMPONENT_ERROR",
651
651
  /**
652
- * 拉取WEB应用&收银台失败
653
- */
652
+ * 拉取WEB应用&收银台失败
653
+ */
654
654
  SDK_LAUNCH_PAYMENT_APP_ERROR = "SDK_LAUNCH_PAYMENT_APP_ERROR",
655
655
  /**
656
- * 拉取WEB应用&收银台成功
657
- */
656
+ * 拉取WEB应用&收银台成功
657
+ */
658
658
  SDK_CALL_URL_SUCCESS = "SDK_CALL_URL_SUCCESS",
659
659
  /**
660
660
  @deprecated 已废弃 请使用SDK_LAUNCH_PAYMENT_APP_ERROR
@@ -54,4 +54,8 @@ declare const isEmpty: (value: any) => boolean;
54
54
  * @returns 如果值为true或者字符串"true"(不区分大小写),则返回true,否则返回false
55
55
  */
56
56
  declare const isTrue: (value: unknown) => boolean;
57
+ export declare const omit: <T extends {
58
+ [x: string]: any;
59
+ hasOwnProperty: (arg0: any) => any;
60
+ }>(obj: T, keys: Array<keyof T>) => T;
57
61
  export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript, isEmpty, isTrue, };
package/esm/util/index.js CHANGED
@@ -371,4 +371,12 @@ var isEmpty = function isEmpty(value) {
371
371
  var isTrue = function isTrue(value) {
372
372
  return value === true || typeof value === 'string' && value.toLowerCase() === 'true';
373
373
  };
374
+ export var omit = function omit(obj, keys) {
375
+ return Object.keys(obj).reduce(function (acc, key) {
376
+ if (!keys.includes(key)) {
377
+ acc[key] = obj[key];
378
+ }
379
+ return acc;
380
+ }, {});
381
+ };
374
382
  export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript, isEmpty, isTrue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "1.40.0",
3
+ "version": "1.42.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",