@middy/cloudwatch-metrics 6.3.1 → 6.4.0
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/index.js +1 -3
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -23,9 +23,7 @@ const cloudwatchMetricsMiddleware = (opts = {}) => {
|
|
|
23
23
|
await request.context.metrics.flush();
|
|
24
24
|
};
|
|
25
25
|
const cloudwatchMetricsOnError = async (request) => {
|
|
26
|
-
|
|
27
|
-
await cloudwatchMetricsAfter(request);
|
|
28
|
-
} catch (e) {}
|
|
26
|
+
await cloudwatchMetricsAfter(request);
|
|
29
27
|
};
|
|
30
28
|
|
|
31
29
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/cloudwatch-metrics",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Embedded CloudWatch metrics middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -23,7 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"types": "index.d.ts",
|
|
26
|
-
"files": [
|
|
26
|
+
"files": [
|
|
27
|
+
"index.js",
|
|
28
|
+
"index.d.ts"
|
|
29
|
+
],
|
|
27
30
|
"scripts": {
|
|
28
31
|
"test": "npm run test:unit && npm run test:fuzz",
|
|
29
32
|
"test:unit": "node --test",
|