@mpxjs/api-proxy
Advanced tools
Comparing version 2.9.39 to 2.9.40
{ | ||
"name": "@mpxjs/api-proxy", | ||
"version": "2.9.39", | ||
"version": "2.9.40", | ||
"description": "convert miniprogram API at each end", | ||
@@ -42,3 +42,3 @@ "module": "src/index.js", | ||
}, | ||
"gitHead": "87957d360b18806f16d169612d924d383ac043c4" | ||
"gitHead": "af534454668449ab020db3566cc5af98049286fb" | ||
} |
@@ -75,3 +75,9 @@ import axios from 'axios' | ||
}).catch(err => { | ||
const res = { errMsg: `request:fail ${err}` } | ||
const response = err?.response || {} | ||
const res = { | ||
errMsg: `request:fail ${err}`, | ||
statusCode: response.status, | ||
header: response.headers, | ||
data: response.data | ||
} | ||
webHandleFail(res, fail, complete) | ||
@@ -78,0 +84,0 @@ if (!fail) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137559
3576