Skip to content

Commit

Permalink
Merge pull request #178 from humanmade/presigned-params
Browse files Browse the repository at this point in the history
Support alternative method of passing Presigned params
  • Loading branch information
joehoyle authored Feb 29, 2024
2 parents 15c77f0 + 36d08bf commit f304c48
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 139 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ jobs:
with:
node-version: 18.x
- run: npm install
- run: npm run test
- run: npx jest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ vars.S3_BUCKET }}
S3_REGION: ${{ vars.S3_REGION }}

7 changes: 7 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ declare var awslambda: {
streamifyResponse: (
handler: StreamifyHandler
) => ( event: APIGatewayProxyEventV2, context: ResponseStream ) => void,
HttpResponseStream: {
from( response: ResponseStream, metadata: {
headers?: Record<string, string>,
statusCode?: number,
cookies?: string[],
} ): ResponseStream
}
};

Loading

0 comments on commit f304c48

Please sign in to comment.