@anjianshi/utils 3.1.1 → 3.1.2
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 +4 -4
- package/request/client.js +1 -1
- package/request/error.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anjianshi/utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Common JavaScript Utils",
|
|
5
5
|
"homepage": "https://github.com/anjianshi/js-packages/utils",
|
|
6
6
|
"bugs": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
33
|
"vconsole": "^3.15.1",
|
|
34
34
|
"@anjianshi/presets-eslint-node": "6.0.0",
|
|
35
|
-
"@anjianshi/presets-prettier": "3.0.5",
|
|
36
|
-
"@anjianshi/presets-eslint-base": "6.0.0",
|
|
37
35
|
"@anjianshi/presets-eslint-typescript": "6.0.0",
|
|
36
|
+
"@anjianshi/presets-eslint-react": "6.0.0",
|
|
37
|
+
"@anjianshi/presets-eslint-base": "6.0.0",
|
|
38
38
|
"@anjianshi/presets-typescript": "3.2.5",
|
|
39
|
-
"@anjianshi/presets-
|
|
39
|
+
"@anjianshi/presets-prettier": "3.0.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.14.0",
|
package/request/client.js
CHANGED
|
@@ -138,7 +138,7 @@ export class BaseRequestClient {
|
|
|
138
138
|
}
|
|
139
139
|
handleError(error) {
|
|
140
140
|
const info = pick(error.options, ['url', 'method']);
|
|
141
|
-
for (const key of ['originalError', 'status', '
|
|
141
|
+
for (const key of ['originalError', 'status', 'responseData']) {
|
|
142
142
|
if (key in error)
|
|
143
143
|
Object.assign(info, pick(error, [key]));
|
|
144
144
|
}
|
package/request/error.js
CHANGED