lambda-essentials-ts 5.1.4 → 5.1.5
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 +6 -0
- package/lib/httpClient/httpClient.js +3 -1
- package/package.json +1 -1
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.1.5] - 2022-11-15
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
The fix described in 5.1.4 missed one instance where the bug can occur. This change covers all known instances.
|
|
12
|
+
|
|
7
13
|
## [5.1.4] - 2022-11-08
|
|
8
14
|
|
|
9
15
|
### Changed
|
|
@@ -161,7 +161,9 @@ class HttpClient {
|
|
|
161
161
|
error: serializedAxiosError,
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
const hostname = ((_a = error.config) === null || _a === void 0 ? void 0 : _a.url)
|
|
164
|
+
const hostname = ((_a = error.config) === null || _a === void 0 ? void 0 : _a.url)
|
|
165
|
+
? new url_1.URL(error.config.url, error.config.baseURL).hostname
|
|
166
|
+
: 'N/A';
|
|
165
167
|
throw new clientException_1.ClientException(hostname, serializedAxiosError === null || serializedAxiosError === void 0 ? void 0 : serializedAxiosError.status, serializedAxiosError === null || serializedAxiosError === void 0 ? void 0 : serializedAxiosError.details);
|
|
166
168
|
});
|
|
167
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambda-essentials-ts",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
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,
|