Skip to content

Commit

Permalink
feat: upgrade middy
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Dec 31, 2024
1 parent c0c8f30 commit bb3f192
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 101 deletions.
139 changes: 46 additions & 93 deletions package-lock.json

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

14 changes: 7 additions & 7 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
},
"dependencies": {
"node-unrar-js": "^2.0.2",
"@middy/core": "^5.5.1",
"@middy/http-cors": "^5.5.1",
"@middy/http-error-handler": "^5.5.1",
"@middy/http-header-normalizer": "^5.5.1",
"@middy/http-json-body-parser": "^5.5.1",
"@middy/http-response-serializer": "^5.5.1",
"@middy/validator": "^5.5.1",
"@middy/core": "^6.0.0",
"@middy/http-cors": "^6.0.0",
"@middy/http-error-handler": "^6.0.0",
"@middy/http-header-normalizer": "^6.0.0",
"@middy/http-json-body-parser": "^6.0.0",
"@middy/http-response-serializer": "^6.0.0",
"@middy/validator": "^6.0.0",
"@oboku/shared": "^0.8.0",
"@supabase/supabase-js": "^2.39.7",
"abort-controller": "^3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/libs/middy/withMiddy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export const withMiddy = (
.use({
onError: withCors
? cors({
headers: `*`
headers: "*",
origin: "*"
}).onError
: () => {
//
Expand Down

0 comments on commit bb3f192

Please sign in to comment.