@alipay/ams-checkout 0.0.1764297596-dev.9 → 0.0.1764597614-dev.2

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.
@@ -178,7 +178,7 @@ export interface PaymentMountOptions extends BaseMountOptions {
178
178
  'radius-module': string;
179
179
  'radius-component': string;
180
180
  'radius-button': string;
181
- 'wrapper-padding': string;
181
+ 'warpper-padding': string;
182
182
  }>>;
183
183
  card?: {
184
184
  showBrandIcon?: boolean;
@@ -34,7 +34,6 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
34
34
  containerOfflinePkgId: 'C',
35
35
  containerTotalPkgCount: 'C',
36
36
  webAppUrl: 'C',
37
- webSDKUrl: 'C',
38
37
  edcDeviceRequest: 'C',
39
38
  config: 'C',
40
39
  initOptions: 'C',
@@ -54,8 +53,6 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
54
53
  actionNames: 'C',
55
54
  isValid: 'C',
56
55
  needChangeSessionForRetry: 'C',
57
- constructorName: 'C',
58
- result: 'C',
59
56
  // D 维度信息
60
57
  operationType: 'D',
61
58
  jsApi: 'D',
@@ -97,7 +94,6 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
97
94
  timeCost: 'M',
98
95
  pageLoadProgress: 'M',
99
96
  fsDuration: 'M',
100
- loadDuration: 'M',
101
97
  // 由于部分logerror参数是msg
102
98
  msg: 'C'
103
99
  });
@@ -188,8 +188,6 @@ export function createBaseProxy(constructorName) {
188
188
  this.loadSDKAndCreateInstance(constructorName, _newProps);
189
189
  logger.logInfo({
190
190
  title: 'create_proxy_instance_success'
191
- }, {
192
- constructorName: constructorName
193
191
  });
194
192
  return this.proxyInstance;
195
193
  }
@@ -254,8 +252,6 @@ export function createBaseProxy(constructorName) {
254
252
  if (!isProxySupports && !isDefinePropertySupports) {
255
253
  logger.logError({
256
254
  title: 'create_proxy_instance_error'
257
- }, {
258
- constructorName: constructorName
259
255
  });
260
256
  consoleLogger.error('The browser does not support either Proxy or Object.defineProperty.');
261
257
  }
@@ -57,12 +57,7 @@ export function loadSdk() {
57
57
  logger.logError({
58
58
  title: 'load_sdk_resource_error'
59
59
  }, {
60
- webSDKUrl: sdkSrc
61
- });
62
- logger.logInfo({
63
- title: 'create_antom_instance'
64
- }, {
65
- result: 'N'
60
+ sdkSrc: sdkSrc
66
61
  });
67
62
  // 失败时移除缓存脚本
68
63
  script.remove();
@@ -11,7 +11,7 @@ export var ConsoleLogger = /*#__PURE__*/function () {
11
11
  function ConsoleLogger(options) {
12
12
  _classCallCheck(this, ConsoleLogger);
13
13
  _defineProperty(this, "show", false);
14
- this.show = options === null || options === void 0 ? void 0 : options.show;
14
+ this.show = options.show;
15
15
  }
16
16
  _createClass(ConsoleLogger, [{
17
17
  key: "log",
@@ -52,7 +52,7 @@ var _getDebugContext = getDebugContext(),
52
52
  debugMode = _getDebugContext.debugMode,
53
53
  showLogger = _getDebugContext.showLogger;
54
54
  export var consoleLogger = new ConsoleLogger({
55
- show: debugMode ? showLogger : false
55
+ show: debugMode ? showLogger : true
56
56
  });
57
57
 
58
58
  // SPM日志上报用logger 先全部收口到这里,后续loader单独拆包后进行解耦
@@ -7,7 +7,6 @@ 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 json from "../../package.json";
11
10
  import { LogComplianceProcessor } from "../foundation/service/log/processor";
12
11
  import { SPM_MAP } from "./spm-map";
13
12
  export var Logger = /*#__PURE__*/function () {
@@ -254,7 +253,6 @@ export var LogConfig = {
254
253
  productId: 'ANTOM_SDK',
255
254
  version: 'iteration/20231021',
256
255
  mdata: {
257
- firstLogTime: Date.now(),
258
- sdkVersion: json === null || json === void 0 ? void 0 : json.version
256
+ firstLogTime: Date.now()
259
257
  }
260
258
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1764297596-dev.9",
3
+ "version": "0.0.1764597614-dev.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",
@@ -22,6 +22,8 @@
22
22
  "ci": "tnpm run cov",
23
23
  "cov": "jest --coverage --silent",
24
24
  "dev": "father dev",
25
+ "e2e": "nyc playwright test",
26
+ "e2e:ui": "playwright test --ui",
25
27
  "format": "prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"",
26
28
  "lint": "eslint ./src",
27
29
  "test": "jest --coverage --silent",
@@ -52,10 +54,12 @@
52
54
  },
53
55
  "devDependencies": {
54
56
  "@ali/ci": "^4.72.0",
57
+ "@alipay/e2e-cli": "^1.3.0",
55
58
  "@babel/core": "^7.20.7",
56
59
  "@babel/preset-env": "^7.20.2",
57
60
  "@commitlint/cli": "^17.3.0",
58
61
  "@commitlint/config-conventional": "^17.3.0",
62
+ "@playwright/test": "^1.55.1",
59
63
  "@testing-library/jest-dom": "^5.1.1",
60
64
  "@testing-library/react": "^9.5.0",
61
65
  "@types/jest": "^29.2.4",
@@ -65,12 +69,14 @@
65
69
  "babel-jest": "^29.3.1",
66
70
  "babel-loader": "^9.1.0",
67
71
  "babel-plugin-import": "^1.13.0",
72
+ "dotenv": "^16.3.1",
68
73
  "dts-bundle-generator": "^6.13.0",
69
74
  "eslint": "^8.56.0",
70
75
  "eslint-plugin-prettier": "^5.1.3",
71
76
  "father": "^4.2.3",
72
77
  "jest": "^29.5.0",
73
78
  "jest-environment-jsdom": "^29.3.1",
79
+ "nyc": "^17.1.0",
74
80
  "prettier": "^2.8.4",
75
81
  "prettier-plugin-organize-imports": "^3.2.3",
76
82
  "prettier-plugin-packagejson": "^2.4.5",