Skip to content

Commit

Permalink
chore(deps): update itty-router
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Jun 20, 2024
1 parent ad30680 commit 2eb29aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion functions/grapher/thumbnail/[slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const onRequestGet: PagesFunction = async (ctx) => {
console.log("Handling", request.url, request.headers.get("User-Agent"))

return router
.handle(request, url, { ...env, url }, ctx)
.fetch(request, url, { ...env, url }, ctx)
.then((resp: Response) => {
if (shouldCache) {
resp.headers.set(
Expand Down
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@cloudflare/pages-plugin-sentry": "^1.1.1",
"@ourworldindata/grapher": "workspace:^",
"@ourworldindata/utils": "workspace:^",
"itty-router": "^4.0.23",
"itty-router": "^5.0.17",
"stripe": "^14.20.0",
"svg2png-wasm": "^1.4.1"
},
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12536,10 +12536,10 @@ __metadata:
languageName: node
linkType: hard

"itty-router@npm:^4.0.23":
version: 4.0.23
resolution: "itty-router@npm:4.0.23"
checksum: 10/b412f80f7d3bf78293144a43c47053c9873c98565e58aa188a66306cc6018ad3801fa157b0d694e9e1719cbc0424fcd89951f1916699eff6606f30b0645afa3e
"itty-router@npm:^5.0.17":
version: 5.0.17
resolution: "itty-router@npm:5.0.17"
checksum: 10/5af87433b7ce1dc5c72c70bbf75e9676082381e6c101ac14fd5621e9d8a7e25cae97506b8654812b508d7f717aa8a881393888b4091112e33089d7b1aabd53d3
languageName: node
linkType: hard

Expand Down Expand Up @@ -15515,7 +15515,7 @@ __metadata:
"@cloudflare/workers-types": "npm:^4.20240614.0"
"@ourworldindata/grapher": "workspace:^"
"@ourworldindata/utils": "workspace:^"
itty-router: "npm:^4.0.23"
itty-router: "npm:^5.0.17"
stripe: "npm:^14.20.0"
svg2png-wasm: "npm:^1.4.1"
languageName: unknown
Expand Down

0 comments on commit 2eb29aa

Please sign in to comment.