@yolo-croket-dev/core 1.7.25-slowquery.21 → 1.7.25-slowquery.22

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.
@@ -302,6 +302,18 @@ let RPCInterceptor = class RPCInterceptor {
302
302
  abortController.abort();
303
303
  return (0, rxjs_1.throwError)(() => new Error(this.DEFAULT_TIMEOUT_MESSAGE));
304
304
  },
305
+ }), (0, operators_1.catchError)((error) => {
306
+ // eslint-disable-next-line no-console
307
+ console.log('AbortInterceptor: 에러 발생', {
308
+ error: error.message,
309
+ isAborted: abortController.signal.aborted,
310
+ });
311
+ // abort된 경우와 일반 에러를 구분
312
+ if (abortController.signal.aborted) {
313
+ return (0, rxjs_1.throwError)(() => new Error(`REQUEST_ABORTED: ${this.DEFAULT_TIMEOUT_MESSAGE}`));
314
+ }
315
+ // 다음 handler로 넘기고싶다.
316
+ return next.handle();
305
317
  }), (0, operators_1.tap)({
306
318
  next: async (val) => {
307
319
  val.isError = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.25-slowquery.21",
3
+ "version": "1.7.25-slowquery.22",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",