@pisell/core 1.0.49 → 1.0.50

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,5 +1,5 @@
1
1
  export var axiosConfig = {
2
- timeout: 1000 * 60,
2
+ timeout: 1000 * 60 * 2,
3
3
  headers: {
4
4
  "Content-Type": "application/json"
5
5
  }
@@ -89,8 +89,10 @@ export var createRequest = function createRequest(props) {
89
89
  maxRequestTime = 99999999;
90
90
  }
91
91
 
92
- // 如果请求错误或者请求超过5秒,则记录为错误日志
92
+ // 如果请求时间超过最大时间,则记录为警告日志
93
93
  var type = duration > maxRequestTime ? 'warning' : 'info';
94
+
95
+ // 如果请求失败,则记录为错误日志
94
96
  if (isError) {
95
97
  type = 'error';
96
98
  }
@@ -23,7 +23,7 @@ __export(constants_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(constants_exports);
25
25
  var axiosConfig = {
26
- timeout: 1e3 * 60,
26
+ timeout: 1e3 * 60 * 2,
27
27
  headers: {
28
28
  "Content-Type": "application/json"
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/core",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",