@anjianshi/utils 3.8.0 → 3.8.1
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/package.json +2 -2
- package/request/client.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anjianshi/utils",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Common JavaScript Utils",
|
|
5
5
|
"homepage": "https://github.com/anjianshi/js-packages/utils",
|
|
6
6
|
"bugs": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"typescript": "^5.8.3",
|
|
40
40
|
"vconsole": "^3.15.1",
|
|
41
41
|
"@anjianshi/presets-eslint-node": "6.1.2",
|
|
42
|
-
"@anjianshi/presets-eslint-typescript": "6.1.2",
|
|
43
42
|
"@anjianshi/presets-prettier": "3.2.0",
|
|
43
|
+
"@anjianshi/presets-eslint-typescript": "6.1.2",
|
|
44
44
|
"@anjianshi/presets-eslint-react": "6.1.3",
|
|
45
45
|
"@anjianshi/presets-typescript": "3.2.5",
|
|
46
46
|
"@anjianshi/presets-eslint-base": "6.1.2"
|
package/request/client.js
CHANGED
|
@@ -51,7 +51,7 @@ export class BaseRequestClient {
|
|
|
51
51
|
return this.handleError(failed('Request Timeouted Out', 'RequestTimedOut', { options }));
|
|
52
52
|
}
|
|
53
53
|
// 失败情形“请求发起失败”
|
|
54
|
-
return this.handleError(failed('Request
|
|
54
|
+
return this.handleError(failed('Send Request Failed', 'SendRequestFailed', { options, originalError: error }));
|
|
55
55
|
}
|
|
56
56
|
// 失败情形“失败状态码”
|
|
57
57
|
if (!response.status.toString().startsWith('2')) {
|