lambda-essentials-ts 5.2.1 → 5.2.2

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
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
 
7
+ ## [5.2.2] - 2023-08-25
8
+
9
+ ### Added
10
+
11
+ HttpClient now also logs unexpected (e.g. network) errors that are not coming from Axios
12
+
7
13
  ## [5.2.0] - 2023-06-08
8
14
 
9
15
  ### Added
package/lib/util.js CHANGED
@@ -45,7 +45,10 @@ exports.serializeObject = serializeObject;
45
45
  function serializeAxiosError(error) {
46
46
  var _a;
47
47
  if (!error.response) {
48
- return undefined;
48
+ return {
49
+ status: 500,
50
+ details: error,
51
+ };
49
52
  }
50
53
  const { status, data } = error.response;
51
54
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-essentials-ts",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "A selection of the finest modules supporting authorization, API routing, error handling, logging and sending HTTP requests.",
5
5
  "main": "lib/index.js",
6
6
  "private": false,