@operato/graphql
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -6,2 +6,11 @@ # Change Log | ||
### [1.3.7](https://github.com/hatiolab/operato/compare/v1.3.6...v1.3.7) (2023-06-17) | ||
### :bug: Bug Fix | ||
* busy indicator exception case ([ea17705](https://github.com/hatiolab/operato/commit/ea17705cfb567a5ef31d534166962ed13bdfa44c)) | ||
### [1.3.6](https://github.com/hatiolab/operato/compare/v1.3.5...v1.3.6) (2023-06-17) | ||
@@ -8,0 +17,0 @@ |
@@ -24,3 +24,2 @@ import { createUploadLink } from 'apollo-upload-client'; | ||
const ERROR_HANDLER = ({ operation, graphQLErrors, networkError }) => { | ||
decreaseActiveRequestCounter(); | ||
if (graphQLErrors) { | ||
@@ -36,2 +35,3 @@ document.dispatchEvent(new CustomEvent('notify', { | ||
if (networkError) { | ||
decreaseActiveRequestCounter(); | ||
/* networkError가 ServerParseError 이거나 ServerError 인 경우에만 statusCode를 갖는다. */ | ||
@@ -38,0 +38,0 @@ switch (networkError.statusCode) { |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh@hatiolab.com", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"main": "dist/src/index.js", | ||
@@ -113,3 +113,3 @@ "module": "dist/src/index.js", | ||
}, | ||
"gitHead": "76311585099d9b484bf32b2c54762928a7df323b" | ||
"gitHead": "6e35fb0ee3ba279daf57edde4bfe4762123f0ae8" | ||
} |
@@ -38,4 +38,2 @@ import { createUploadLink } from 'apollo-upload-client' | ||
const ERROR_HANDLER: ErrorLink.ErrorHandler = ({ operation, graphQLErrors, networkError }) => { | ||
decreaseActiveRequestCounter() | ||
if (graphQLErrors) { | ||
@@ -54,2 +52,4 @@ document.dispatchEvent( | ||
if (networkError) { | ||
decreaseActiveRequestCounter() | ||
/* networkError가 ServerParseError 이거나 ServerError 인 경우에만 statusCode를 갖는다. */ | ||
@@ -56,0 +56,0 @@ switch ((networkError as ServerParseError).statusCode) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
153196