@aliyun-obv/api 0.0.49 → 0.0.51
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/dist/api.es.js +7 -5
- package/package.json +3 -3
package/dist/api.es.js
CHANGED
|
@@ -564,12 +564,13 @@ var __async$4 = (__this, __arguments, generator) => {
|
|
|
564
564
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
565
565
|
});
|
|
566
566
|
};
|
|
567
|
+
var _a;
|
|
567
568
|
let slsAccessToken = window.ALIYUN_SLS_CONSOLE_CONFIG.slsAccessToken;
|
|
568
569
|
let slsAccessTokenMode = false;
|
|
569
570
|
const urlQueryObj = urijs(location.search).escapeQuerySpace(false).query(true);
|
|
570
571
|
const supportRefreshToken = urlQueryObj.supportRefreshToken === "true" && window.top !== window.self && parent != null;
|
|
571
572
|
try {
|
|
572
|
-
if (window.ALIYUN_CONSOLE_CONFIG.ENV === "pre") {
|
|
573
|
+
if (((_a = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _a.ENV) === "pre") {
|
|
573
574
|
if (urlQueryObj.slsAccessToken) {
|
|
574
575
|
slsAccessToken = urlQueryObj.slsAccessToken;
|
|
575
576
|
}
|
|
@@ -590,9 +591,9 @@ function waitRefreshToken() {
|
|
|
590
591
|
window.addEventListener(
|
|
591
592
|
"message",
|
|
592
593
|
(event) => {
|
|
593
|
-
var
|
|
594
|
+
var _a2, _b, _c;
|
|
594
595
|
try {
|
|
595
|
-
if (((
|
|
596
|
+
if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "applyAccessToken" && ((_b = event == null ? void 0 : event.data) == null ? void 0 : _b.ticket) === urlQueryObj.sls_ticket) {
|
|
596
597
|
slsAccessToken = (_c = event == null ? void 0 : event.data) == null ? void 0 : _c.accessToken;
|
|
597
598
|
tokenRefreshing = false;
|
|
598
599
|
const queue = refreshPromisesQueue;
|
|
@@ -764,10 +765,11 @@ slsEasyFetch.defaults.afterResponse = (r, options) => __async$3(void 0, null, fu
|
|
|
764
765
|
});
|
|
765
766
|
|
|
766
767
|
function getBaseUrl() {
|
|
767
|
-
|
|
768
|
+
var _a, _b;
|
|
769
|
+
if ((_a = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _a.LOCAL) {
|
|
768
770
|
return `http://pre-observability:${window.location.port}`;
|
|
769
771
|
}
|
|
770
|
-
if (window.ALIYUN_CONSOLE_CONFIG.ENV === "pre") {
|
|
772
|
+
if (((_b = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b.ENV) === "pre") {
|
|
771
773
|
return `https://pre-observability.console.aliyun.com`;
|
|
772
774
|
}
|
|
773
775
|
return `https://observability.console.aliyun.com`;
|
package/package.json
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"urijs": "^1.19.1",
|
|
11
11
|
"lodash": "^4.17.21",
|
|
12
12
|
"@alicloud/console-base-error-prompt-proxy": "^1.9.12",
|
|
13
|
-
"@aliyun-obv/i18n": "0.0.
|
|
14
|
-
"@aliyun-obv/utils": "0.0.
|
|
13
|
+
"@aliyun-obv/i18n": "0.0.51",
|
|
14
|
+
"@aliyun-obv/utils": "0.0.51",
|
|
15
15
|
"@alifd/next": "^1.27.11",
|
|
16
16
|
"styled-components": "^5.2.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {},
|
|
19
|
-
"version": "0.0.
|
|
19
|
+
"version": "0.0.51"
|
|
20
20
|
}
|