@lark-apaas/client-toolkit 1.2.8-alpha.4 → 1.2.8

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.
@@ -237,8 +237,8 @@ function initAxiosConfig(axiosInstance) {
237
237
  return config;
238
238
  }, (error)=>Promise.reject(error));
239
239
  instance.interceptors.response.use((response)=>response, (error)=>{
240
- if (error.response?.status === 403) {
241
- try {
240
+ try {
241
+ if (error.response?.status === 403) {
242
242
  const method = (error.config?.method || 'GET').toUpperCase();
243
243
  const url = (error.config?.url || '').split('?')[0];
244
244
  logger.debug({
@@ -252,9 +252,9 @@ function initAxiosConfig(axiosInstance) {
252
252
  ],
253
253
  meta: {}
254
254
  });
255
- } catch (e) {}
256
- return error.response;
257
- }
255
+ return error.response;
256
+ }
257
+ } catch (e) {}
258
258
  return Promise.reject(error);
259
259
  });
260
260
  'production' !== process.env.NODE_ENV && instance.interceptors.response.use((response)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.2.8-alpha.4",
3
+ "version": "1.2.8",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [