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

feat(ipos): car file support #333

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ref(ipos): remove patch and revert v1 CID
  • Loading branch information
hassnian committed Sep 27, 2024
commit 74dbaeeb159d433574bc3ed7a671a04e5a483cc7
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,5 @@
"engines": {
"pnpm": ">=9",
"node": ">=20"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
12 changes: 0 additions & 12 deletions patches/[email protected]

This file was deleted.

9 changes: 2 additions & 7 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion services/ipos/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"enabled": true
},
"files": {
"ignore": ["node_modules", ".wrangler", ".papi", "patches"]
"ignore": ["node_modules", ".wrangler", ".papi"]
},
"linter": {
"enabled": true,
Expand Down
4 changes: 1 addition & 3 deletions services/ipos/src/utils/ipfs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Patch: `ipfs-car` library has been patched to work with CID v0 which is not supported by the original implementation.
// see `import { pack } from 'ipfs-car/pack'`
import { packToBlob } from 'ipfs-car/pack/blob'
import type { CID } from 'multiformats'

Expand All @@ -12,7 +10,7 @@ export default async function toCar(
})

return {
root: root as CID,
root: root as CID, // v1 CID
car: car as Blob,
}
}
Loading