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