@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.
- package/ams-checkout.js +4 -3
- package/dist/ams-checkout.min.js +2 -1
- package/dist/ams-checkout.min.js.map +1 -0
- package/esm/config/index.d.ts +7 -0
- package/esm/config/index.js +2 -2
- package/esm/constant/element.d.ts +2 -1
- package/esm/constant/element.js +1 -0
- package/esm/constant/index.d.ts +4 -21
- package/esm/core/component/element/elementController/index.d.ts +3 -3
- package/esm/core/component/element/index.d.ts +4 -1
- package/esm/core/component/element/index.js +19 -4
- package/esm/core/component/element/mock.js +1 -1
- package/esm/core/component/element/modernElementController/adapter.d.ts +19 -0
- package/esm/core/component/element/modernElementController/adapter.js +73 -0
- package/esm/core/component/element/modernElementController/index.d.ts +149 -0
- package/esm/core/component/element/modernElementController/index.js +1665 -0
- package/esm/core/component/element/type.d.ts +14 -17
- package/esm/foundation/service/event-center.js +1 -1
- package/esm/modern/global.d.ts +3 -0
- package/esm/modern/index.d.ts +5 -1
- package/esm/modern/index.js +1 -51
- package/esm/modern/tools.js +1 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/util/logger.js +1 -2
- package/package.json +15 -9
- package/types.d.ts +785 -94
- package/types.untrimmed.d.ts +929 -108
- package/esm/modern/stageName.d.ts +0 -3
- package/esm/modern/stageName.js +0 -1
package/esm/types/index.d.ts
CHANGED
package/esm/util/logger.js
CHANGED
|
@@ -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:
|
|
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.
|
|
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:
|
|
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": "
|
|
42
|
-
"build:father:local": "STAGE_NAME=LOCAL
|
|
43
|
-
"build:father:
|
|
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
|
|
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
|
-
"
|
|
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"
|