@aliyun-obv/api 0.0.56 → 0.0.57

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.
Files changed (2) hide show
  1. package/dist/api.es.js +6 -3
  2. package/package.json +3 -3
package/dist/api.es.js CHANGED
@@ -702,12 +702,15 @@ var __async$3 = (__this, __arguments, generator) => {
702
702
  });
703
703
  };
704
704
  function getSlsBaseUrl() {
705
- var _a, _b;
705
+ var _a, _b, _c;
706
+ if ((_a = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _a.LOCAL) {
707
+ return void 0;
708
+ }
706
709
  const host = window.location.host;
707
710
  if (host.includes("sls") && host.includes("console.aliyun.com")) {
708
711
  return void 0;
709
712
  }
710
- if (((_a = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _a.ENV) === "pre" || ((_b = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b.fEnv) === "pre") {
713
+ if (((_b = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _b.ENV) === "pre" || ((_c = window.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _c.fEnv) === "pre") {
711
714
  return `https://pre-sls.console.aliyun.com`;
712
715
  }
713
716
  return `https://sls.console.aliyun.com`;
@@ -755,7 +758,7 @@ slsEasyFetch.defaults.afterResponse = (r, options) => __async$3(void 0, null, fu
755
758
  });
756
759
  let hasError = false;
757
760
  if (response.url.indexOf("/console/logs/getLogs.json") !== -1) {
758
- const newData = Object.assign({}, data, response.headers.get("x-log-requestid"));
761
+ const newData = Object.assign({}, data, { requestid: response.headers.get("x-log-requestid") });
759
762
  composedData = __spreadProps$1(__spreadValues$1({}, newData), {
760
763
  response
761
764
  });
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.56",
14
- "@aliyun-obv/utils": "0.0.56",
13
+ "@aliyun-obv/i18n": "0.0.57",
14
+ "@aliyun-obv/utils": "0.0.57",
15
15
  "@alifd/next": "^1.27.11",
16
16
  "styled-components": "^5.2.0"
17
17
  },
18
18
  "devDependencies": {},
19
- "version": "0.0.56"
19
+ "version": "0.0.57"
20
20
  }