@middy/cloudwatch-metrics 3.1.1 → 3.2.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.d.ts +9 -1
- package/package.json +5 -4
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import middy from '@middy/core'
|
|
2
|
+
import { MetricsLogger } from 'aws-embedded-metrics'
|
|
3
|
+
import type { Context as LambdaContext } from 'aws-lambda'
|
|
2
4
|
export { MetricsLogger } from 'aws-embedded-metrics'
|
|
3
5
|
|
|
4
6
|
interface Options {
|
|
@@ -6,6 +8,12 @@ interface Options {
|
|
|
6
8
|
dimensions?: Array<Record<string, string>>
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
export type Context = LambdaContext & {
|
|
12
|
+
metrics: MetricsLogger
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare function cloudwatchMetrics (
|
|
16
|
+
options?: Options
|
|
17
|
+
): middy.MiddlewareObj<unknown, any, Error, Context>
|
|
10
18
|
|
|
11
19
|
export default cloudwatchMetrics
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/cloudwatch-metrics",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Embedded CloudWatch metrics middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -65,10 +65,11 @@
|
|
|
65
65
|
},
|
|
66
66
|
"homepage": "https://middy.js.org",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"aws-embedded-metrics": "
|
|
68
|
+
"aws-embedded-metrics": "3.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@middy/core": "3.
|
|
71
|
+
"@middy/core": "3.2.0",
|
|
72
|
+
"@types/aws-lambda": "^8.10.101"
|
|
72
73
|
},
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "ac46270daa388b52a81472ae8f9b8808a0136940"
|
|
74
75
|
}
|