Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hello-nrfcloud/lambda-helpers
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.77
Choose a base ref
...
head repository: hello-nrfcloud/lambda-helpers
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.78
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 18, 2025

  1. fix: headers may be undefined

    coderbyheart committed Feb 18, 2025
    Copy the full SHA
    9da8ce0 View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/addVersionHeader.ts
  2. +1 −1 src/corsOPTIONS.ts
2 changes: 1 addition & 1 deletion src/addVersionHeader.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ export const addVersionHeader = (
req.response = {

Check warning on line 12 in src/addVersionHeader.ts

GitHub Actions / tests

Unsafe assignment of an `any` value
...req.response,
headers: {

Check warning on line 14 in src/addVersionHeader.ts

GitHub Actions / tests

Unsafe assignment of an `any` value
...req.response.headers,
...(req.response.headers ?? {}),

Check warning on line 15 in src/addVersionHeader.ts

GitHub Actions / tests

Unsafe member access .headers on an `any` value
'x-backend-version': version,
},
}
2 changes: 1 addition & 1 deletion src/corsOPTIONS.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ export const corsOPTIONS = (
req.response = {

Check warning on line 16 in src/corsOPTIONS.ts

GitHub Actions / tests

Unsafe assignment of an `any` value
...req.response,
headers: {

Check warning on line 18 in src/corsOPTIONS.ts

GitHub Actions / tests

Unsafe assignment of an `any` value
...req.response.headers,
...(req.response.headers ?? {}),

Check warning on line 19 in src/corsOPTIONS.ts

GitHub Actions / tests

Unsafe member access .headers on an `any` value
...corsHeaders(req.event, allowedMethods),

Check warning on line 20 in src/corsOPTIONS.ts

GitHub Actions / tests

Unsafe argument of type `any` assigned to a parameter of type `{ headers: APIGatewayProxyEventHeaders; }`
},
}