@alipay/ams-checkout 0.0.1766756057-dev.0 → 0.0.1767075519-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.
@@ -1,22 +1,16 @@
1
- /**
2
- * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
- * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
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
- */
8
1
  export declare const marmotMap: Record<string, string>;
9
2
  export declare const marmotConfigMap: Record<string, string>;
10
3
  export declare const v2AppMarmotMap: Record<string, string>;
11
4
  export declare const sdkVersion: string;
12
5
  /**
13
6
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
7
+ * TODO 这里考虑直接换成packagejson.version
14
8
  */
15
- export declare const AMSCheckoutAppVersion: string;
16
- export declare const AMSAutoDebitAppVersion: string;
17
- export declare const AMSEasyPayAppVersion: string;
18
- export declare const AMSCashierPaymentAppVersion: string;
19
- export declare const AMSVaultingAppVersion: string;
20
- export declare const AMSPaymentElementAppVersion: string;
21
- export declare const ADDRESSElementAppVersion: string;
22
- export declare const AUTHElementAppVersion: string;
9
+ export declare const AMSCheckoutAppVersion = "1.47.2";
10
+ export declare const AMSAutoDebitAppVersion = "1.47.2";
11
+ export declare const AMSEasyPayAppVersion = "1.47.2";
12
+ export declare const AMSCashierPaymentAppVersion = "1.47.2";
13
+ export declare const AMSVaultingAppVersion = "1.47.2";
14
+ export declare const AMSPaymentElementAppVersion = "1.47.2";
15
+ export declare const ADDRESSElementAppVersion = "1.47.2";
16
+ export declare const AUTHElementAppVersion = "1.47.2";
@@ -5,6 +5,7 @@
5
5
  * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
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
+ import json from "../../package.json";
8
9
  export var marmotMap = {
9
10
  dev: 'http://page.alipay.net/page/antom-web-checkout/src/component-app',
10
11
  sit: 'http://page.test.alipay.net/page/antom-web-checkout/src/component-app',
@@ -29,16 +30,17 @@ export var v2AppMarmotMap = {
29
30
  light_sandbox: 'https://checkout.antom.com',
30
31
  prod: 'https://checkout.antom.com'
31
32
  };
32
- export var sdkVersion = "".concat("0.0.1766756057-dev.0");
33
+ export var sdkVersion = json.version;
33
34
 
34
35
  /**
35
36
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
37
+ * TODO 这里考虑直接换成packagejson.version
36
38
  */
37
- export var AMSCheckoutAppVersion = sdkVersion; // 兜底版本号
38
- export var AMSAutoDebitAppVersion = sdkVersion; // 代扣
39
- export var AMSEasyPayAppVersion = sdkVersion; // easypay
40
- export var AMSCashierPaymentAppVersion = sdkVersion; // 收银台(卡、apm)
41
- export var AMSVaultingAppVersion = sdkVersion; // 绑卡
42
- export var AMSPaymentElementAppVersion = sdkVersion; // payment element
43
- export var ADDRESSElementAppVersion = sdkVersion; // address element
44
- export var AUTHElementAppVersion = sdkVersion; // auth element
39
+ export var AMSCheckoutAppVersion = '1.47.2'; // 兜底版本号
40
+ export var AMSAutoDebitAppVersion = '1.47.2'; // 代扣
41
+ export var AMSEasyPayAppVersion = '1.47.2'; // easypay
42
+ export var AMSCashierPaymentAppVersion = '1.47.2'; // 收银台(卡、apm)
43
+ export var AMSVaultingAppVersion = '1.47.2'; // 绑卡
44
+ export var AMSPaymentElementAppVersion = '1.47.2'; // payment element
45
+ export var ADDRESSElementAppVersion = '1.47.2'; // address element
46
+ export var AUTHElementAppVersion = '1.47.2'; // auth element
@@ -7,7 +7,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7
7
  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; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
9
  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); }
10
- import { sdkVersion } from "../config";
10
+ import json from "../../package.json";
11
11
  import { LogComplianceProcessor } from "../foundation/service/log/processor";
12
12
  import { SPM_MAP } from "./spm-map";
13
13
  export var Logger = /*#__PURE__*/function () {
@@ -292,6 +292,6 @@ export var LogConfig = {
292
292
  version: 'iteration/20231021',
293
293
  mdata: {
294
294
  firstLogTime: Date.now(),
295
- sdkVersion: sdkVersion
295
+ sdkVersion: json === null || json === void 0 ? void 0 : json.version
296
296
  }
297
297
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1766756057-dev.0",
3
+ "version": "0.0.1767075519-dev.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",
@@ -68,7 +68,7 @@
68
68
  "dts-bundle-generator": "^6.13.0",
69
69
  "eslint": "^8.56.0",
70
70
  "eslint-plugin-prettier": "^5.1.3",
71
- "father": "^4.6.12",
71
+ "father": "^4.2.3",
72
72
  "jest": "^29.5.0",
73
73
  "jest-environment-jsdom": "^29.3.1",
74
74
  "prettier": "^2.8.4",