@aliyun-obv/api 0.3.14 → 0.3.15
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 -7
- package/package.json +1 -1
package/dist/api.es.js
CHANGED
|
@@ -223,7 +223,11 @@ function getSLSdomain() {
|
|
|
223
223
|
if ((_a2 = window == null ? void 0 : window.__CONSOLE_OBVIZ_DOMAIN__) == null ? void 0 : _a2.getSlsDomain) {
|
|
224
224
|
return window.__CONSOLE_OBVIZ_DOMAIN__.getSlsDomain();
|
|
225
225
|
}
|
|
226
|
+
const { slsHost } = urijs(window.location.search).escapeQuerySpace(false).query(true);
|
|
226
227
|
if (isLocal) {
|
|
228
|
+
if (slsHost != null && slsHost != "") {
|
|
229
|
+
return slsHost;
|
|
230
|
+
}
|
|
227
231
|
if (window.location.hostname.includes("stg")) {
|
|
228
232
|
return `http://sls-stg:${window.location.port}`;
|
|
229
233
|
}
|
|
@@ -237,6 +241,9 @@ function getSLSdomain() {
|
|
|
237
241
|
return void 0;
|
|
238
242
|
}
|
|
239
243
|
if (isPre) {
|
|
244
|
+
if (slsHost != null && slsHost != "") {
|
|
245
|
+
return slsHost;
|
|
246
|
+
}
|
|
240
247
|
if (is4Service(window.location)) {
|
|
241
248
|
return `https://pre-sls4service.console.aliyun.com`;
|
|
242
249
|
}
|
|
@@ -255,11 +262,7 @@ function getObvDomain() {
|
|
|
255
262
|
if ((_a2 = window == null ? void 0 : window.__CONSOLE_OBVIZ_DOMAIN__) == null ? void 0 : _a2.getObvDomain) {
|
|
256
263
|
return window.__CONSOLE_OBVIZ_DOMAIN__.getObvDomain();
|
|
257
264
|
}
|
|
258
|
-
const { slsHost } = urijs(window.location.search).escapeQuerySpace(false).query(true);
|
|
259
265
|
if ((_b2 = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b2.LOCAL) {
|
|
260
|
-
if (slsHost != null && slsHost != "") {
|
|
261
|
-
return slsHost;
|
|
262
|
-
}
|
|
263
266
|
if (location.hostname === "localhost") {
|
|
264
267
|
return `http://pre-observability:${window.location.port}`;
|
|
265
268
|
}
|
|
@@ -272,9 +275,6 @@ function getObvDomain() {
|
|
|
272
275
|
return `http://pre-observability:${window.location.port}`;
|
|
273
276
|
}
|
|
274
277
|
if (isPre) {
|
|
275
|
-
if (slsHost != null && slsHost != "") {
|
|
276
|
-
return slsHost;
|
|
277
|
-
}
|
|
278
278
|
if (is4Service(window.location)) {
|
|
279
279
|
return `https://pre-observability4service.console.aliyun.com`;
|
|
280
280
|
}
|
package/package.json
CHANGED