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

Move in memory handler to the separate module. #119

Merged
merged 16 commits into from
Feb 18, 2019

Conversation

RomanBurunkov
Copy link
Collaborator

This PR moves memHandler in separate module and adds alpha version of file size to the module output.

That also should fix issue #118

Merge pull request richardgirges#116 from RomanBurunkov/master
Assign module.exports directly to the main module function(since it is currenlty only one function which could be used from outside).
Change tempFileHandler declaration.
Moving memory upload handler to the sepate file to separate logic for upload handling and in attempt to unificate upload handler interface.
Use common upload handler interface instead of variants of in memory and temp file handlers with checking useTempFiles option.
Generalization of the upload handler interface.
Generalization of the upload handler interface.
Add size option
Add file size loging in debug mode
Return empty string for getFilePath method.
@coveralls
Copy link

coveralls commented Feb 12, 2019

Coverage Status

Coverage increased (+0.2%) to 92.135% when pulling 710225d on RomanBurunkov:master into f9d7bbd on richardgirges:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-72.7%) to 19.231% when pulling 376f378 on RomanBurunkov:master into f9d7bbd on richardgirges:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-72.7%) to 19.231% when pulling 376f378 on RomanBurunkov:master into f9d7bbd on richardgirges:master.

@richardgirges
Copy link
Owner

@RomanBurunkov thanks for this. Would you mind emailing me, I'd like to chat with you about something separately: richardgirges@gmail.com

@richardgirges
Copy link
Owner

@RomanBurunkov I noticed the coverage decreased significantly, curious if this is someting you see on your side when running the tests?

@richardgirges richardgirges merged commit 57669b4 into richardgirges:master Feb 18, 2019
@RomanBurunkov
Copy link
Collaborator Author

RomanBurunkov commented Feb 19, 2019

@richardgirges , I believe the coverage rate had increased becasue we now have one more file for the same functionality. And probably because there are two different separate modules for differend handlers. At least that looks more logical, but I'm not sure coverals asses that ;)

And yes I saw the same things on my side.

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.

3 participants