zmdms-utils 0.0.7 → 0.0.8

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.
@@ -1,6 +1,6 @@
1
1
  declare function getBaseUrl(processObj: any): {
2
- api: any;
3
- file: any;
2
+ API_URL: any;
3
+ FILE_URL: any;
4
4
  };
5
5
 
6
6
  export { getBaseUrl };
@@ -17,8 +17,8 @@ function getBaseUrl(processObj) {
17
17
  };
18
18
  var currentKey = ENV.toLowerCase() || "dev";
19
19
  return {
20
- api: apiBaseUrlObj[currentKey],
21
- file: fileBaseUrlObj[currentKey],
20
+ API_URL: apiBaseUrlObj[currentKey],
21
+ FILE_URL: fileBaseUrlObj[currentKey],
22
22
  };
23
23
  }
24
24
 
@@ -52,7 +52,7 @@ var AxiosRequest = /** @class */ (function () {
52
52
  var _this = this;
53
53
  axios.interceptors.response.use(function (response) {
54
54
  var _a;
55
- console.log(response);
55
+ // console.log(response);
56
56
  // 对返回数据进行解密后 返回给客户端
57
57
  if ((_a = response.config) === null || _a === void 0 ? void 0 : _a.isCrypto) ;
58
58
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/baseUrl.ts CHANGED
@@ -22,7 +22,7 @@ export function getBaseUrl(processObj: any) {
22
22
  const currentKey = ENV.toLowerCase() || "dev";
23
23
 
24
24
  return {
25
- api: apiBaseUrlObj[currentKey],
26
- file: fileBaseUrlObj[currentKey],
25
+ API_URL: apiBaseUrlObj[currentKey],
26
+ FILE_URL: fileBaseUrlObj[currentKey],
27
27
  };
28
28
  }
package/src/request.ts CHANGED
@@ -79,7 +79,7 @@ export class AxiosRequest {
79
79
  private interceptorsResponse() {
80
80
  axios.interceptors.response.use(
81
81
  (response) => {
82
- console.log(response);
82
+ // console.log(response);
83
83
  // 对返回数据进行解密后 返回给客户端
84
84
  if ((response.config as any)?.isCrypto) {
85
85
  }