@middy/http-router 4.5.2 → 4.5.4

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.d.ts +2 -1
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -5,12 +5,13 @@ import {
5
5
  APIGatewayProxyEvent,
6
6
  APIGatewayProxyEventV2,
7
7
  APIGatewayProxyResult,
8
+ APIGatewayProxyResultV2,
8
9
  Handler as LambdaHandler
9
10
  } from 'aws-lambda'
10
11
 
11
12
  export type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'ANY'
12
13
 
13
- type TResult = ALBResult | APIGatewayProxyResult
14
+ type TResult = ALBResult | APIGatewayProxyResult | APIGatewayProxyResultV2
14
15
 
15
16
  export interface Route<TEvent> {
16
17
  method: Method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-router",
3
- "version": "4.5.2",
3
+ "version": "4.5.4",
4
4
  "description": "HTTP event router for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,11 +66,11 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "4.5.2"
69
+ "@middy/util": "4.5.4"
70
70
  },
71
71
  "devDependencies": {
72
- "@middy/core": "4.5.2",
72
+ "@middy/core": "4.5.4",
73
73
  "@types/aws-lambda": "^8.10.97"
74
74
  },
75
- "gitHead": "ab0fe0f6a6c27b8f2b7b0e6fbde5a7de3b3b00d6"
75
+ "gitHead": "be6949ee2d8862d9af38cedda6746dfa24535f85"
76
76
  }