react-toolkits 2.13.33 → 2.13.34

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.34
4
+
5
+ ### Patch Changes
6
+
7
+ - ca6e5e1: feat: add skipRequestInterceptor and skipResponseInterceptor in AxiosRequestConfig
8
+
3
9
  ## 2.13.33
4
10
 
5
11
  ### Patch Changes
package/lib/index.js CHANGED
@@ -389,6 +389,9 @@ var init_Interceptors = __esm({
389
389
  requestInterceptorId = axios2.interceptors.request.use(...interceptors.request);
390
390
  } else {
391
391
  requestInterceptorId = axios2.interceptors.request.use((config) => {
392
+ if (config.skipRequestInterceptor) {
393
+ return config;
394
+ }
392
395
  const headers = new AxiosHeaders(config.headers);
393
396
  config.responseType = config.responseType || "json";
394
397
  if (token) {
@@ -411,6 +414,9 @@ var init_Interceptors = __esm({
411
414
  } else {
412
415
  responseInterceptorId = axios2.interceptors.response.use(
413
416
  (response) => {
417
+ if (response.config.skipResponseInterceptor) {
418
+ return response;
419
+ }
414
420
  const responseType = response.request.responseType || "json";
415
421
  if (responseType === "json") {
416
422
  const data = response.data;