@alipay/ams-checkout 0.0.1783663570-dev.4 → 0.0.1783663570-dev.6

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.
@@ -354,6 +354,7 @@ export interface IPaymentSessionMetaData {
354
354
  };
355
355
  skipRenderPaymentMethod?: boolean;
356
356
  needAccountConfirmPage?: boolean;
357
+ modernWeb?: boolean;
357
358
  }
358
359
  export interface IPaymentSessionFactor {
359
360
  merchantInfo?: IMerchantInfo;
@@ -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 () {
@@ -297,6 +296,6 @@ export var LogConfig = {
297
296
  version: 'iteration/20231021',
298
297
  mdata: {
299
298
  firstLogTime: Date.now(),
300
- sdkVersion: json === null || json === void 0 ? void 0 : json.version
299
+ sdkVersion: "0.0.1783663570-dev.6"
301
300
  }
302
301
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1783663570-dev.4",
3
+ "version": "0.0.1783663570-dev.6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "exports": {
@@ -36,14 +36,15 @@
36
36
  "README.md"
37
37
  ],
38
38
  "scripts": {
39
- "build": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father && npm run build:father:umd && npm run build:react",
39
+ "build": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:umd && npm run build:father:tools && npm run build:react",
40
40
  "build:analyze": "ANALYZE=1 father build",
41
- "build:father": "FATHER_TSCONFIG_NAME=tsconfig.build.json father build",
42
- "build:father:local": "STAGE_NAME=LOCAL FATHER_TSCONFIG_NAME=tsconfig.build.json father build",
43
- "build:father:pre": "FATHER_BUILD_TYPE=prebuild father build",
41
+ "build:father:pre": "father build",
42
+ "build:father:pre:local": "STAGE_NAME=LOCAL father build",
43
+ "build:father:tools": "FATHER_BUILD_TYPE=only-umd-tools father build --no-clean",
44
+ "build:father:tools:local": "STAGE_NAME=LOCAL FATHER_BUILD_TYPE=only-umd-tools father build --no-clean",
44
45
  "build:father:umd": "FATHER_BUILD_TYPE=only-umd father build",
45
46
  "build:father:umd:local": "STAGE_NAME=LOCAL FATHER_BUILD_TYPE=only-umd father build",
46
- "build:local": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:local && npm run build:father:umd:local && npm run build:react",
47
+ "build:local": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:umd:local && npm run build:father:tools:local && npm run build:react",
47
48
  "build:react": "tsc --project tsconfig.cjs.json && mv react-js.js react-js.cjs && tsc --project tsconfig.esm.json",
48
49
  "build:type": "dts-bundle-generator -o ./types/antom-web-sdk.d.ts ./src/index.ts --no-banner --silent --no-check",
49
50
  "build:w": "FATHER_BUILD_TYPE=only-umd STAGE_NAME=LOCAL father dev",
@@ -53,7 +54,7 @@
53
54
  "e2e": "nyc playwright test",
54
55
  "e2e:create": "node scripts/e2e-create.js",
55
56
  "e2e:ui": "playwright test --ui",
56
- "extract": "opensdk extract -p esm/modern/sdk",
57
+ "extract": "opensdk extract && tspc -p tsconfig.build.json && rm -rf esm/modern/sdk",
57
58
  "format": "prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"",
58
59
  "generateApi": "intl-oneapi generate && prettier --write src/modern/sdk/oneapi",
59
60
  "lint": "eslint ./src",
@@ -85,12 +86,15 @@
85
86
  ]
86
87
  },
87
88
  "dependencies": {
88
- "@antglobal/create-sdk-loader": "^1.0.5",
89
89
  "axios": "^1.3.4",
90
90
  "proxy-polyfill": "^0.3.2",
91
91
  "uuid": "^9.0.0"
92
92
  },
93
+ "opensdk": {
94
+ "name": "Antom"
95
+ },
93
96
  "devDependencies": {
97
+ "@antglobal/create-sdk-loader": "^1.0.5",
94
98
  "@babel/core": "^7.20.7",
95
99
  "@babel/preset-env": "^7.20.2",
96
100
  "@commitlint/cli": "^17.3.0",
@@ -122,7 +126,9 @@
122
126
  "serve": "^14.2.5",
123
127
  "ts-jest": "^29.0.3",
124
128
  "ts-node": "^10.9.1",
125
- "typescript": "^5.x"
129
+ "ts-patch": "^3.3.0",
130
+ "typescript": "^5.x",
131
+ "typescript-transform-paths": "^3.5.6"
126
132
  },
127
133
  "engines": {
128
134
  "install-node": "20"