@middy/cloudwatch-metrics 5.0.2 → 5.1.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.
Files changed (2) hide show
  1. package/index.js +0 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -7,11 +7,9 @@ const cloudwatchMetricsMiddleware = (opts = {})=>{
7
7
  };
8
8
  const cloudwatchMetricsBefore = (request)=>{
9
9
  const metrics = awsEmbeddedMetrics.createMetricsLogger();
10
- // If not set, defaults to aws-embedded-metrics
11
10
  if (namespace) {
12
11
  metrics.setNamespace(namespace);
13
12
  }
14
- // If not set, keeps defaults as defined here https://github.com/awslabs/aws-embedded-metrics-node/#configuration
15
13
  if (dimensions) {
16
14
  metrics.setDimensions(dimensions);
17
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/cloudwatch-metrics",
3
- "version": "5.0.2",
3
+ "version": "5.1.0",
4
4
  "description": "Embedded CloudWatch metrics middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,8 +66,8 @@
66
66
  "aws-embedded-metrics": "4.1.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@middy/core": "5.0.2",
69
+ "@middy/core": "5.1.0",
70
70
  "@types/aws-lambda": "^8.10.101"
71
71
  },
72
- "gitHead": "6d17e155237022f2a0abd095ac7cd99ebfc7fc71"
72
+ "gitHead": "bbdaf5843914921804ba085dd58117273febe6b5"
73
73
  }