Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: image ipfs route #211

Merged
merged 7 commits into from
Dec 5, 2023
Merged

refactor: image ipfs route #211

merged 7 commits into from
Dec 5, 2023

Conversation

preschian
Copy link
Member

@preschian preschian commented Dec 1, 2023

Context

Copy link

socket-security bot commented Dec 1, 2023

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
vitest 1.0.1 shell, environment +55 253 MB oreanno
wrangler 3.17.1 None +11 412 MB wrangler-publisher
hono 3.10.2 None +0 460 kB yusukebe
typescript 5.3.2 None +0 32 MB typescript-bot
@cloudflare/workers-types 4.20231121.0 None +0 2.65 MB wrangler-publisher

Copy link

cloudflare-workers-and-pages bot commented Dec 5, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5fe13ac
Status: ✅  Deploy successful!
Preview URL: https://cbe6cdc7.workers-ogi.pages.dev
Branch Preview URL: https://refactor-image-ipfs-route.workers-ogi.pages.dev

View logs

…2 - image test

* test(ipfs.test.ts): change status code from 301 to 302 in ipfs - 302 - html test
@preschian preschian marked this pull request as ready for review December 5, 2023 12:35
@preschian preschian requested a review from vikiival December 5, 2023 12:35
Comment on lines 20 to 21
// TODO: check response from cache
// ----------------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc is this still a TODO?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image/src/routes/ipfs.ts Outdated Show resolved Hide resolved
image/src/routes/ipfs.ts Outdated Show resolved Hide resolved
image/src/routes/ipfs.ts Outdated Show resolved Hide resolved
…to cloudflare-images.ts

refactor(ipfs.ts): replace inline fetch with getImageByPath function
refactor(ipfs.ts): replace body type with IPFSResponseType
feat(types.ts): add IPFSResponseType type
refactor(ipfs.ts): remove redundant await in fetchIPFS call
refactor(ipfs.ts): replace CFIApiResponse with IPFSResponseType
@vikiival
Copy link
Member

vikiival commented Dec 5, 2023

Let's test

@vikiival vikiival merged commit 69e11b2 into main Dec 5, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants