@middy/http-event-normalizer 7.1.0 → 7.1.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/README.md +2 -2
- package/index.d.ts +14 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Middy http-event-normalizer middleware</h1>
|
|
2
|
+
<h1>Middy `http-event-normalizer` middleware</h1>
|
|
3
3
|
<img alt="Middy logo" src="https://raw.githubusercontent.com/middyjs/middy/main/docs/img/middy-logo.svg"/>
|
|
4
|
-
<p><strong>HTTP
|
|
4
|
+
<p><strong>HTTP event normalizer middleware for the middy framework, the stylish Node.js middleware engine for AWS Lambda</strong></p>
|
|
5
5
|
<p>
|
|
6
6
|
<a href="https://github.com/middyjs/middy/actions/workflows/test-unit.yml"><img src="https://github.com/middyjs/middy/actions/workflows/test-unit.yml/badge.svg" alt="GitHub Actions unit test status"></a>
|
|
7
7
|
<a href="https://github.com/middyjs/middy/actions/workflows/test-dast.yml"><img src="https://github.com/middyjs/middy/actions/workflows/test-dast.yml/badge.svg" alt="GitHub Actions dast test status"></a>
|
package/index.d.ts
CHANGED
|
@@ -6,9 +6,22 @@ import type {
|
|
|
6
6
|
APIGatewayProxyEventMultiValueQueryStringParameters,
|
|
7
7
|
APIGatewayProxyEventPathParameters,
|
|
8
8
|
APIGatewayProxyEventQueryStringParameters,
|
|
9
|
-
// TODO add in VPC Lattice event
|
|
10
9
|
} from "aws-lambda";
|
|
11
10
|
|
|
11
|
+
// TODO: Import from 'aws-lambda' when @types/aws-lambda adds VPC Lattice types
|
|
12
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda
|
|
13
|
+
export interface VPCLatticeEvent {
|
|
14
|
+
body: string | null;
|
|
15
|
+
headers: { [name: string]: string | undefined };
|
|
16
|
+
is_base64_encoded: boolean;
|
|
17
|
+
isBase64Encoded: boolean;
|
|
18
|
+
method: string;
|
|
19
|
+
path: string;
|
|
20
|
+
pathParameters: APIGatewayProxyEventPathParameters;
|
|
21
|
+
query_string_parameters: APIGatewayProxyEventQueryStringParameters | null;
|
|
22
|
+
queryStringParameters: APIGatewayProxyEventQueryStringParameters;
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
export type Event = APIGatewayEvent & {
|
|
13
26
|
multiValueQueryStringParameters: APIGatewayProxyEventMultiValueQueryStringParameters;
|
|
14
27
|
pathParameters: APIGatewayProxyEventPathParameters;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-event-normalizer",
|
|
3
|
-
"version": "7.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "7.1.1",
|
|
4
|
+
"description": "HTTP event normalizer middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22"
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431",
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@
|
|
69
|
+
"@middy/core": "7.1.1",
|
|
70
|
+
"@types/aws-lambda": "^8.0.0"
|
|
70
71
|
}
|
|
71
72
|
}
|