@podium/client 5.3.0 → 5.3.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 +8 -0
- package/lib/resolver.content.js +11 -6
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [5.3.1](https://github.com/podium-lib/client/compare/v5.3.0...v5.3.1) (2025-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add statusCode label to podium_client_resolver_content_resolve metric ([#456](https://github.com/podium-lib/client/issues/456)) ([e8d45b0](https://github.com/podium-lib/client/commit/e8d45b0564f59573a80b5cdfccc7382713251e27))
|
|
7
|
+
* error with statusCode label ([9b0682e](https://github.com/podium-lib/client/commit/9b0682e27b1b685c23df59e55f8651b0632bf998))
|
|
8
|
+
|
|
1
9
|
# [5.3.0](https://github.com/podium-lib/client/compare/v5.2.7...v5.3.0) (2025-02-07)
|
|
2
10
|
|
|
3
11
|
|
package/lib/resolver.content.js
CHANGED
|
@@ -181,6 +181,7 @@ export default class PodletClientContentResolver {
|
|
|
181
181
|
timer({
|
|
182
182
|
labels: {
|
|
183
183
|
status: 'failure',
|
|
184
|
+
statusCode,
|
|
184
185
|
},
|
|
185
186
|
});
|
|
186
187
|
|
|
@@ -205,6 +206,7 @@ export default class PodletClientContentResolver {
|
|
|
205
206
|
timer({
|
|
206
207
|
labels: {
|
|
207
208
|
status: 'failure',
|
|
209
|
+
statusCode,
|
|
208
210
|
},
|
|
209
211
|
});
|
|
210
212
|
|
|
@@ -238,6 +240,7 @@ export default class PodletClientContentResolver {
|
|
|
238
240
|
timer({
|
|
239
241
|
labels: {
|
|
240
242
|
status: 'success',
|
|
243
|
+
statusCode,
|
|
241
244
|
},
|
|
242
245
|
});
|
|
243
246
|
|
|
@@ -276,6 +279,13 @@ export default class PodletClientContentResolver {
|
|
|
276
279
|
this.#log.warn('error while piping content stream', err);
|
|
277
280
|
}
|
|
278
281
|
});
|
|
282
|
+
|
|
283
|
+
timer({
|
|
284
|
+
labels: {
|
|
285
|
+
status: 'success',
|
|
286
|
+
statusCode,
|
|
287
|
+
},
|
|
288
|
+
});
|
|
279
289
|
} catch (error) {
|
|
280
290
|
if (error.isBoom) throw error;
|
|
281
291
|
|
|
@@ -292,6 +302,7 @@ export default class PodletClientContentResolver {
|
|
|
292
302
|
timer({
|
|
293
303
|
labels: {
|
|
294
304
|
status: 'failure',
|
|
305
|
+
statusCode: error.statusCode || 500,
|
|
295
306
|
},
|
|
296
307
|
});
|
|
297
308
|
|
|
@@ -311,12 +322,6 @@ export default class PodletClientContentResolver {
|
|
|
311
322
|
return outgoing;
|
|
312
323
|
}
|
|
313
324
|
|
|
314
|
-
timer({
|
|
315
|
-
labels: {
|
|
316
|
-
status: 'success',
|
|
317
|
-
},
|
|
318
|
-
});
|
|
319
|
-
|
|
320
325
|
this.#log.debug(
|
|
321
326
|
`successfully read content from remote resource - resource: ${outgoing.name} - url: ${uri}`,
|
|
322
327
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podium/client",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@podium/eslint-config": "1.0.5",
|
|
106
|
+
"@podium/podlet": "5.2.4",
|
|
106
107
|
"@podium/semantic-release-config": "2.0.0",
|
|
107
108
|
"@podium/test-utils": "3.1.0-next.5",
|
|
108
109
|
"@podium/typescript-config": "1.0.0",
|