@alipay/ams-checkout 1.5.10 → 1.6.0
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/esm/config/index.js
CHANGED
@@ -10,8 +10,8 @@ export var marmotMap = {
|
|
10
10
|
dev: 'http://page.alipay.net/page/antom-web-checkout/src/component-app',
|
11
11
|
sit: 'http://page.test.alipay.net/page/antom-web-checkout/src/component-app',
|
12
12
|
pre: 'https://pre.ac.alipay.com/page/antom-web-checkout/src/component-app',
|
13
|
-
sandbox: 'https://
|
14
|
-
light_sandbox: 'https://
|
15
|
-
prod: 'https://
|
13
|
+
sandbox: 'https://cdn.marmot-cloud.com/page/antom-web-checkout/src/component-app',
|
14
|
+
light_sandbox: 'https://cdn.marmot-cloud.com/page/antom-web-checkout/src/component-app',
|
15
|
+
prod: 'https://cdn.marmot-cloud.com/page/antom-web-checkout/src/component-app'
|
16
16
|
};
|
17
17
|
export var sdkVersion = json.version;
|
@@ -94,14 +94,16 @@ var AMSSDK = /*#__PURE__*/function () {
|
|
94
94
|
key: "getStorageId",
|
95
95
|
value: function getStorageId(instanceId) {
|
96
96
|
var storageKey = 'AMSSDK_STORAGE_ID';
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
97
|
+
try {
|
98
|
+
if (window.localStorage) {
|
99
|
+
var storageId = window.localStorage.getItem(storageKey);
|
100
|
+
if (storageId) {
|
101
|
+
return storageId;
|
102
|
+
} else {
|
103
|
+
window.localStorage.setItem(storageKey, instanceId);
|
104
|
+
}
|
103
105
|
}
|
104
|
-
}
|
106
|
+
} catch (error) {/* empty */}
|
105
107
|
return instanceId;
|
106
108
|
}
|
107
109
|
|
@@ -48,7 +48,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
48
48
|
_defineProperty(this, "_componentSign", componentSignEnum.NONE);
|
49
49
|
_defineProperty(this, "_appLocationSearch", void 0);
|
50
50
|
_defineProperty(this, "_renderDisplayType", renderDisplayTypeEnum.popup);
|
51
|
-
this._appVersion = '1.
|
51
|
+
this._appVersion = '1.6.0';
|
52
52
|
this._isInitComponent = false;
|
53
53
|
this._selector = "#".concat(COMPONENT_SECTION_ID);
|
54
54
|
this.createIframeNode = function () {
|
package/esm/util/logger.js
CHANGED
@@ -132,17 +132,19 @@ export var Logger = /*#__PURE__*/function () {
|
|
132
132
|
var _this2 = this;
|
133
133
|
if (this.isLoaded) return;
|
134
134
|
this.isLoaded = true;
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
135
|
+
try {
|
136
|
+
if (typeof localStorage !== 'undefined') {
|
137
|
+
this.loadScript(this.config.scriptUrl, function () {
|
138
|
+
var _window4;
|
139
|
+
(_window4 = window) === null || _window4 === void 0 || _window4.iTracker.initiTracker(_this2.config);
|
140
|
+
setTimeout(function () {
|
141
|
+
_this2.reportLogs();
|
142
|
+
}, 80);
|
143
|
+
});
|
144
144
|
}
|
145
|
-
})
|
145
|
+
} catch (error) {
|
146
|
+
console.error('Failed to initialize iTracker:', error);
|
147
|
+
}
|
146
148
|
}
|
147
149
|
}, {
|
148
150
|
key: "send",
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@alipay/ams-checkout","version":"1.
|
1
|
+
{"name":"@alipay/ams-checkout","version":"1.6.0","description":"","author":"","main":"esm/index.js","module":"esm/index.js","typings":"esm/index.d.ts","files":["dist","esm","LEGAL.md","LICENSE","README.md"],"scripts":{"build":"father build","ci":"npm run lint","cov":"jest --coverage","format":"prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"","lint":"eslint ./src","test":"jest"},"dependencies":{"axios":"^1.3.4","uuid":"^9.0.0"},"devDependencies":{"@babel/core":"^7.20.7","@babel/preset-env":"^7.20.2","@testing-library/jest-dom":"^5.1.1","@testing-library/react":"^9.5.0","@types/jest":"^29.2.4","@types/uuid":"^9.0.0","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"^5.60.0","babel-jest":"^29.3.1","babel-loader":"^9.1.0","babel-plugin-import":"^1.13.0","eslint":"^8.36.0","eslint-plugin-prettier":"latest","father":"^4.2.3","jest":"^29.5.0","jest-environment-jsdom":"^29.3.1","prettier":"^2.8.4","prettier-plugin-organize-imports":"^3.2.3","prettier-plugin-packagejson":"^2.4.5","ts-jest":"^29.0.3","ts-node":"^10.9.1","typescript":"^4.9.5"},"engines":{},"publishConfig":{"access":"public"}}
|