Skip to content

Commit 8468ae3

Browse files
authored
Merge pull request #79 from dbartholomae/handle-v2-events-in-cors
Handle v2 events in cors
2 parents a89d5ad + bcac7fc commit 8468ae3

File tree

12 files changed

+1158
-339
lines changed

12 files changed

+1158
-339
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/cors",
5+
"comment": "Handle v2 events correctly",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/cors",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/utils",
5+
"comment": "Expose createEventV2 helper",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/utils",
10+
"email": "[email protected]"
11+
}

packages/cors/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ AWS lambda middleware for automatically adding CORS headers.
1313

1414
## Lambda middleware
1515

16-
This middleware is part of the [lambda middleware series](https://dbartholomae.github.io/lambda-middleware/). It can be used independently.
16+
This middleware is part of the [lambda middleware series](https://dbartholomae.github.io/lambda-middleware/). It can be used independently. It works with both
17+
API Gateway and API Gateway V2 type events.
1718

1819
## Usage
1920

0 commit comments

Comments
 (0)