-
Notifications
You must be signed in to change notification settings - Fork 11
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: directory uploading #208
Conversation
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.
Nice work, +1 for the unit tests! : )
Please check my comments but overall it seems good.
* @param accountData account data | ||
* @param options upload options | ||
*/ | ||
export async function uploadData( |
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.
I see you moved this function from file.ts
to here, but can you elaborate for me please what is the role of the handler.ts
in the service folders and according to what you distingish to put functions to the other main file like here the file.ts
?
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.
file/file.ts
, directory/directory.ts
could be renamed to file/index.ts
, directory/index.ts
.
So, this renamed index.ts
is an aggregation of all functions into functions that are available to the user. They validate user input and pass it to the method from handler.ts
. handler.ts
aggregates a function from utils.ts
and other files.
9f726c3
to
bedfb9b
Compare
Close #205
Version for Node.js and browser. I failed to cover directory selection with real test. Perhaps it will be possible to cover with mocks.
Therefore, a page was created to manually test this functionality
test/manual/index.html
.But the method will only work in the browser with fixes from this branch (
duplex: half
fix): #151.