@podium/client 5.4.0 → 5.4.1
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 +7 -0
- package/lib/resolver.content.js +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.4.1](https://github.com/podium-lib/client/compare/v5.4.0...v5.4.1) (2025-09-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* always end timer on error ([#477](https://github.com/podium-lib/client/issues/477)) ([e41a9bc](https://github.com/podium-lib/client/commit/e41a9bce72a16fa0288e8f2df3a3fc67223ba0ad))
|
|
7
|
+
|
|
1
8
|
# [5.4.0](https://github.com/podium-lib/client/compare/v5.3.6...v5.4.0) (2025-08-07)
|
|
2
9
|
|
|
3
10
|
|
package/lib/resolver.content.js
CHANGED
|
@@ -287,6 +287,13 @@ export default class PodletClientContentResolver {
|
|
|
287
287
|
},
|
|
288
288
|
});
|
|
289
289
|
} catch (error) {
|
|
290
|
+
timer({
|
|
291
|
+
labels: {
|
|
292
|
+
status: 'failure',
|
|
293
|
+
statusCode: error.statusCode || 500,
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
|
|
290
297
|
if (error.isBoom) throw error;
|
|
291
298
|
|
|
292
299
|
if (error.name === 'AbortError') {
|
|
@@ -299,13 +306,6 @@ export default class PodletClientContentResolver {
|
|
|
299
306
|
);
|
|
300
307
|
}
|
|
301
308
|
|
|
302
|
-
timer({
|
|
303
|
-
labels: {
|
|
304
|
-
status: 'failure',
|
|
305
|
-
statusCode: error.statusCode || 500,
|
|
306
|
-
},
|
|
307
|
-
});
|
|
308
|
-
|
|
309
309
|
// Network error
|
|
310
310
|
if (outgoing.throwable) {
|
|
311
311
|
throw badGateway(`Error reading content at ${uri}`);
|