@aliyun-obv/api 0.3.44 → 0.3.45-beta.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/dist/api.es.js +16 -7
- package/package.json +1 -1
package/dist/api.es.js
CHANGED
|
@@ -212,6 +212,15 @@ class BaseFetch {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
var _a$2, _b$1, _c;
|
|
215
|
+
const {
|
|
216
|
+
links: {
|
|
217
|
+
LOG4FINANCECONSOLE,
|
|
218
|
+
SLS4SERVICECONSOLE,
|
|
219
|
+
SLSCONSOLE,
|
|
220
|
+
CMSNEXTCONSOLE,
|
|
221
|
+
CMSNEXT4SERVICECONSOLE
|
|
222
|
+
}
|
|
223
|
+
} = slsConsoleRuntime;
|
|
215
224
|
const isLocal = (_a$2 = window == null ? void 0 : window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _a$2.LOCAL;
|
|
216
225
|
const isPre = ((_b$1 = window == null ? void 0 : window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b$1.fEnv) === "pre" || ((_c = window == null ? void 0 : window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _c.ENV) === "pre";
|
|
217
226
|
function is4Service(location2) {
|
|
@@ -241,7 +250,7 @@ function getSLSdomain() {
|
|
|
241
250
|
return window.location.origin;
|
|
242
251
|
}
|
|
243
252
|
const host = window.location.host;
|
|
244
|
-
if (((_b2 = window == null ? void 0 : window.ALIYUN_SLS_CONSOLE_CONFIG) == null ? void 0 : _b2.isSlsConsole) || host.includes("sls") && host.includes("console.aliyun.com")) {
|
|
253
|
+
if (((_b2 = window == null ? void 0 : window.ALIYUN_SLS_CONSOLE_CONFIG) == null ? void 0 : _b2.isSlsConsole) || host.includes("sls") && (host.includes("console.aliyun.com") || host.includes("console.alibabacloud.com"))) {
|
|
245
254
|
return void 0;
|
|
246
255
|
}
|
|
247
256
|
if (isPre) {
|
|
@@ -257,12 +266,12 @@ function getSLSdomain() {
|
|
|
257
266
|
return "https://pre-sls.console.aliyun.com";
|
|
258
267
|
}
|
|
259
268
|
if (is4Finance(window.location)) {
|
|
260
|
-
return `https
|
|
269
|
+
return `https:${LOG4FINANCECONSOLE}`;
|
|
261
270
|
}
|
|
262
271
|
if (is4Service(window.location)) {
|
|
263
|
-
return `https
|
|
272
|
+
return `https:${SLS4SERVICECONSOLE}`;
|
|
264
273
|
}
|
|
265
|
-
return
|
|
274
|
+
return `https:${SLSCONSOLE}`;
|
|
266
275
|
}
|
|
267
276
|
function getObvDomain() {
|
|
268
277
|
var _a2, _b2;
|
|
@@ -294,15 +303,15 @@ function getObvDomain() {
|
|
|
294
303
|
return `https://pre-cmsnext.console.aliyun.com`;
|
|
295
304
|
}
|
|
296
305
|
if (is4Finance(window.location)) {
|
|
297
|
-
return `https
|
|
306
|
+
return `https:${CMSNEXTCONSOLE}`;
|
|
298
307
|
}
|
|
299
308
|
if (is4Service(window.location)) {
|
|
300
|
-
return `https
|
|
309
|
+
return `https:${CMSNEXT4SERVICECONSOLE}`;
|
|
301
310
|
}
|
|
302
311
|
if (location.hostname.includes("observability") || location.hostname.includes("cmsnext")) {
|
|
303
312
|
return location.origin;
|
|
304
313
|
}
|
|
305
|
-
return `https
|
|
314
|
+
return `https:${CMSNEXTCONSOLE}`;
|
|
306
315
|
}
|
|
307
316
|
function getConfig(key) {
|
|
308
317
|
window.ALIYUN_SLS_CONSOLE_CONFIG = window.ALIYUN_SLS_CONSOLE_CONFIG || {};
|
package/package.json
CHANGED