Skip to content

Commit

Permalink
Upgrade @types/aws-lambda, resolving an issue
Browse files Browse the repository at this point in the history
Renovate tried this (on main) at #4811 but got stuck due to
DefinitelyTyped/DefinitelyTyped#50224
  • Loading branch information
glasser committed May 7, 2021
1 parent 8382b61 commit 540456f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 39 deletions.
72 changes: 36 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@josephg/resolvable": "1.0.0",
"@sinonjs/fake-timers": "^7.0.5",
"@types/async-retry": "1.4.2",
"@types/aws-lambda": "8.10.66",
"@types/aws-lambda": "8.10.76",
"@types/body-parser": "1.19.0",
"@types/bunyan": "1.8.6",
"@types/connect": "3.4.34",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-server-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@apollographql/graphql-playground-html": "1.6.27",
"@types/aws-lambda": "^8.10.59",
"@types/aws-lambda": "^8.10.76",
"apollo-server-core": "file:../apollo-server-core",
"apollo-server-env": "file:../apollo-server-env",
"apollo-server-types": "file:../apollo-server-types"
Expand Down
5 changes: 4 additions & 1 deletion packages/apollo-server-lambda/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ export class ApolloServer<
event: EventT,
context: LambdaContext,
): Promise<APIGatewayProxyResult> => {
const eventHeaders = new Headers(event.headers);
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/50224 changed
// the typing of event.headers to be effectively Record<string,
// string|undefined> but there should be no actual undefineds as values.
const eventHeaders = new Headers(event.headers as Record<string, string>);

// Make a request-specific copy of the CORS headers, based on the server
// global CORS headers we've set above.
Expand Down

0 comments on commit 540456f

Please sign in to comment.