Skip to content

Commit

Permalink
update min-max requirements for Serverless Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Inqnuam committed Jun 28, 2024
1 parent d47584f commit bc1bf22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
### Minimum requirements

- Node v14.17.0+
- Serverless 2.0.0+
- Serverless 2.0.0+ < 4.0

---

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-aws-lambda",
"version": "4.7.0",
"version": "4.7.1",
"description": "AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.",
"author": "Inqnuam",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions src/lib/parseEvents/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface LambdaEndpoint {
querystrings?: string[];
requestPaths?: string[];
stream?: boolean;
private?: boolean;
}
const supportedEvents = ["http", "httpApi", "alb"];
export const parseEndpoints = (event: any, httpApiPayload: LambdaEndpoint["version"]): LambdaEndpoint | null => {
Expand Down Expand Up @@ -107,6 +108,7 @@ export const parseEndpoints = (event: any, httpApiPayload: LambdaEndpoint["versi
parsendEvent.methods = [httpEvent.method == "*" ? "ANY" : httpEvent.method.toUpperCase()];
}

// RESI API
if (event.http) {
if (event.http.async) {
parsendEvent.async = event.http.async;
Expand All @@ -124,6 +126,9 @@ export const parseEndpoints = (event: any, httpApiPayload: LambdaEndpoint["versi
parsendEvent.requestPaths = Object.keys(paths).filter((x) => paths[x]);
}
}
if (event.http.private) {
parsendEvent.private = true;
}
}
} else {
return null;
Expand Down

0 comments on commit bc1bf22

Please sign in to comment.