@alipay/ams-checkout 0.0.1765161958-dev.1 → 0.0.1765161958-dev.3

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
- 'warpper-padding': string;
181
+ 'wrapper-padding': string;
182
182
  }>>;
183
183
  card?: {
184
184
  showBrandIcon?: boolean;
@@ -136,7 +136,7 @@ export function generateIframeSrc(_ref3) {
136
136
  var extendInfo = (paymentSessionObj === null || paymentSessionObj === void 0 ? void 0 : paymentSessionObj.extendInfo) || '';
137
137
  var mid = paymentSessionObj === null || paymentSessionObj === void 0 ? void 0 : paymentSessionObj.clientId;
138
138
  var hostSign = (paymentSession || '').split('&&')[1] || '';
139
- var baseUrl = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ELEMENT_ENVIRONMENT.DEV, 'http://page.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.TEST, 'http://test.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SIT, 'http://test.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.PRE, 'https://pre.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SANDBOX, 'https://checkout.antom.com'), ELEMENT_ENVIRONMENT.PROD, 'https://checkout.antom.com');
139
+ var baseUrl = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ELEMENT_ENVIRONMENT.DEV, 'http://page.alipay.net/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.TEST, 'https://test.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SIT, 'https://test.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.PRE, 'https://pre.ac.alipay.com/page/antom-web-checkout-v2'), ELEMENT_ENVIRONMENT.SANDBOX, 'https://checkout.antom.com'), ELEMENT_ENVIRONMENT.PROD, 'https://checkout.antom.com');
140
140
  var _env = (environment === null || environment === void 0 ? void 0 : environment.toLocaleUpperCase()) || ELEMENT_ENVIRONMENT.DEV;
141
141
  if (!link) {
142
142
  link = "".concat(baseUrl[_env]).concat(pageUrl);
@@ -34,6 +34,7 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
34
34
  containerOfflinePkgId: 'C',
35
35
  containerTotalPkgCount: 'C',
36
36
  webAppUrl: 'C',
37
+ webSDKUrl: 'C',
37
38
  edcDeviceRequest: 'C',
38
39
  config: 'C',
39
40
  initOptions: 'C',
@@ -53,6 +54,8 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
53
54
  actionNames: 'C',
54
55
  isValid: 'C',
55
56
  needChangeSessionForRetry: 'C',
57
+ constructorName: 'C',
58
+ result: 'C',
56
59
  // D 维度信息
57
60
  operationType: 'D',
58
61
  jsApi: 'D',
@@ -94,6 +97,7 @@ _defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
94
97
  timeCost: 'M',
95
98
  pageLoadProgress: 'M',
96
99
  fsDuration: 'M',
100
+ loadDuration: 'M',
97
101
  // 由于部分logerror参数是msg
98
102
  msg: 'C'
99
103
  });
@@ -188,6 +188,8 @@ 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
191
193
  });
192
194
  return this.proxyInstance;
193
195
  }
@@ -252,6 +254,8 @@ export function createBaseProxy(constructorName) {
252
254
  if (!isProxySupports && !isDefinePropertySupports) {
253
255
  logger.logError({
254
256
  title: 'create_proxy_instance_error'
257
+ }, {
258
+ constructorName: constructorName
255
259
  });
256
260
  consoleLogger.error('The browser does not support either Proxy or Object.defineProperty.');
257
261
  }
@@ -57,7 +57,12 @@ export function loadSdk() {
57
57
  logger.logError({
58
58
  title: 'load_sdk_resource_error'
59
59
  }, {
60
- sdkSrc: sdkSrc
60
+ webSDKUrl: sdkSrc
61
+ });
62
+ logger.logInfo({
63
+ title: 'create_antom_instance'
64
+ }, {
65
+ result: 'N'
61
66
  });
62
67
  // 失败时移除缓存脚本
63
68
  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.show;
14
+ this.show = options === null || options === void 0 ? void 0 : 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 : true
55
+ show: debugMode ? showLogger : false
56
56
  });
57
57
 
58
58
  // SPM日志上报用logger 先全部收口到这里,后续loader单独拆包后进行解耦
@@ -7,6 +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 json from "../../package.json";
10
11
  import { LogComplianceProcessor } from "../foundation/service/log/processor";
11
12
  import { SPM_MAP } from "./spm-map";
12
13
  export var Logger = /*#__PURE__*/function () {
@@ -253,6 +254,7 @@ export var LogConfig = {
253
254
  productId: 'ANTOM_SDK',
254
255
  version: 'iteration/20231021',
255
256
  mdata: {
256
- firstLogTime: Date.now()
257
+ firstLogTime: Date.now(),
258
+ sdkVersion: json === null || json === void 0 ? void 0 : json.version
257
259
  }
258
260
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1765161958-dev.1",
3
+ "version": "0.0.1765161958-dev.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",