-
Notifications
You must be signed in to change notification settings - Fork 51
Add the shardSplitThreshold option to this library #92
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
base: main
Are you sure you want to change the base?
Conversation
added shardSplitThreshold to the car pack index
added shardSplitThreshold
vasco-santos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @obo20
Left some inline suggestions to fix the linting job
| maxChildrenPerNode: maxChildrenPerNode || unixfsImporterOptionsDefault.maxChildrenPerNode, | ||
| wrapWithDirectory: wrapWithDirectory === false ? false : unixfsImporterOptionsDefault.wrapWithDirectory | ||
| wrapWithDirectory: wrapWithDirectory === false ? false : unixfsImporterOptionsDefault.wrapWithDirectory, | ||
| ...(shardSplitThreshold) && { shardSplitThreshold : shardSplitThreshold } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tslint job is failing here with:
src/pack/index.ts:24:31
ERROR: 43:37 object-literal-shorthand Expected property shorthand in object literal ('{shardSplitThreshold}').
| ...(shardSplitThreshold) && { shardSplitThreshold : shardSplitThreshold } | |
| ...(shardSplitThreshold) && { shardSplitThreshold } |
| maxChildrenPerNode: maxChildrenPerNode || unixfsImporterOptionsDefault.maxChildrenPerNode, | ||
| wrapWithDirectory: wrapWithDirectory === false ? false : unixfsImporterOptionsDefault.wrapWithDirectory | ||
| wrapWithDirectory: wrapWithDirectory === false ? false : unixfsImporterOptionsDefault.wrapWithDirectory, | ||
| ...(shardSplitThreshold) && { shardSplitThreshold : shardSplitThreshold } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ...(shardSplitThreshold) && { shardSplitThreshold : shardSplitThreshold } | |
| ...(shardSplitThreshold) && { shardSplitThreshold } |
| wrapWithDirectory?: boolean, | ||
| hasher?: MultihashHasher | ||
| hasher?: MultihashHasher, | ||
| shardSplitThreshold?: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter failing here with:
src/pack/index.ts:24:31
ERROR: 24:31 no-trailing-whitespace trailing whitespace
| shardSplitThreshold?: number | |
| shardSplitThreshold?: number |
This adds support for the shardSplitThreshold option to be passed in to js-ipfs-unixfs