@alipay/ams-checkout 0.0.1767873844-dev.0 → 0.0.1767941604-dev.1
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 +3 -3
- package/antom-cls.js +6 -0
- package/dist/ams-checkout.min.js +1 -0
- package/dist/antom-cls.min.js +1 -0
- package/esm/core/component/element/elementController/index.js +5 -21
- package/esm/foundation/core/index.js +1 -1
- package/esm/foundation/service/log/index.d.ts +1 -1
- package/esm/foundation/service/log/index.js +11 -16
- package/esm/index.d.ts +10 -2
- package/esm/index.js +21 -2
- package/esm/modern/antom.d.ts +65 -0
- package/esm/modern/index.d.ts +6 -0
- package/esm/modern/index.js +43 -0
- package/esm/modern/sdkLoader.d.ts +34 -0
- package/esm/modern/sdkLoader.js +112 -0
- package/esm/util/logger.js +1 -6
- package/package.json +10 -4
- package/dist/umd/ams-checkout.min.js +0 -1
package/esm/util/logger.js
CHANGED
|
@@ -220,12 +220,7 @@ export var Logger = /*#__PURE__*/function () {
|
|
|
220
220
|
script.onerror = function () {
|
|
221
221
|
console.error("unable to load Antom script: ".concat(url));
|
|
222
222
|
};
|
|
223
|
-
|
|
224
|
-
if (document.body) {
|
|
225
|
-
document.body.appendChild(script);
|
|
226
|
-
} else if (document.head) {
|
|
227
|
-
document.head.appendChild(script);
|
|
228
|
-
}
|
|
223
|
+
document.body.appendChild(script);
|
|
229
224
|
}
|
|
230
225
|
}, {
|
|
231
226
|
key: "initTracker",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alipay/ams-checkout",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1767941604-dev.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "esm/index.js",
|
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
"dist",
|
|
11
11
|
"esm",
|
|
12
12
|
"ams-checkout.js",
|
|
13
|
+
"antom-cls.js",
|
|
13
14
|
"LEGAL.md",
|
|
14
15
|
"LICENSE",
|
|
15
16
|
"README.md"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
|
-
"
|
|
19
|
+
"extract": "node scripts/deps/extract.mjs && rm -r esm/modern/sdk",
|
|
20
|
+
"build:modern": "tsc -p tsconfig.modern.json && npm run extract",
|
|
21
|
+
"build": "father build && npm run build:modern",
|
|
19
22
|
"build:analyze": "ANALYZE=1 father build",
|
|
20
23
|
"build:type": "dts-bundle-generator -o ./types/antom-web-sdk.d.ts ./src/index.ts --no-banner --silent --no-check",
|
|
21
24
|
"build:w": "father dev",
|
|
@@ -52,10 +55,13 @@
|
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
57
|
"@ali/ci": "^4.72.0",
|
|
58
|
+
"@antintl/opensdk-bridge": "^0.0.20251212104616-dev.8",
|
|
59
|
+
"@antintl/opensdk-debugger": "^0.0.20251212104616-dev.8",
|
|
55
60
|
"@babel/core": "^7.20.7",
|
|
56
61
|
"@babel/preset-env": "^7.20.2",
|
|
57
62
|
"@commitlint/cli": "^17.3.0",
|
|
58
63
|
"@commitlint/config-conventional": "^17.3.0",
|
|
64
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
59
65
|
"@testing-library/jest-dom": "^5.1.1",
|
|
60
66
|
"@testing-library/react": "^9.5.0",
|
|
61
67
|
"@types/jest": "^29.2.4",
|
|
@@ -67,11 +73,11 @@
|
|
|
67
73
|
"babel-plugin-import": "^1.13.0",
|
|
68
74
|
"dts-bundle-generator": "^6.13.0",
|
|
69
75
|
"eslint": "^8.56.0",
|
|
70
|
-
"eslint-plugin-prettier": "^
|
|
76
|
+
"eslint-plugin-prettier": "^4.x",
|
|
71
77
|
"father": "^4.2.3",
|
|
72
78
|
"jest": "^29.5.0",
|
|
73
79
|
"jest-environment-jsdom": "^29.3.1",
|
|
74
|
-
"prettier": "^2.8.
|
|
80
|
+
"prettier": "^2.8.8",
|
|
75
81
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
76
82
|
"prettier-plugin-packagejson": "^2.4.5",
|
|
77
83
|
"serve": "^14.2.5",
|