vovk 3.0.0-draft.246 → 3.0.0-draft.248

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.
@@ -9,12 +9,14 @@ const defaultHandler = async (response) => {
9
9
  result = await response.json();
10
10
  }
11
11
  catch (e) {
12
+ console.log('ERROR', e);
12
13
  // handle parsing errors
13
14
  throw new HttpException_1.HttpException(response.status, e?.message ?? exports.DEFAULT_ERROR_MESSAGE);
14
15
  }
15
16
  if (!response.ok) {
16
17
  // handle server errors
17
18
  const errorResponse = result;
19
+ console.log('errorResponse', errorResponse);
18
20
  throw new HttpException_1.HttpException(response.status, errorResponse?.message ?? exports.DEFAULT_ERROR_MESSAGE, errorResponse?.cause ?? errorResponse);
19
21
  }
20
22
  return result;
@@ -9,12 +9,14 @@ const defaultHandler = async (response) => {
9
9
  result = await response.json();
10
10
  }
11
11
  catch (e) {
12
+ console.log('ERROR', e);
12
13
  // handle parsing errors
13
14
  throw new HttpException_1.HttpException(response.status, e?.message ?? exports.DEFAULT_ERROR_MESSAGE);
14
15
  }
15
16
  if (!response.ok) {
16
17
  // handle server errors
17
18
  const errorResponse = result;
19
+ console.log('errorResponse', errorResponse);
18
20
  throw new HttpException_1.HttpException(response.status, errorResponse?.message ?? exports.DEFAULT_ERROR_MESSAGE, errorResponse?.cause ?? errorResponse);
19
21
  }
20
22
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.246",
3
+ "version": "3.0.0-draft.248",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",