This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are the required changes requested by @dignifiedquire in #968
UDPATE: I just noticed @victorbjelkholm requested changes, I'll implement them and push them to this branch as well.
Changes:
use slice instead of splice
remove noop since promisify always defines a callback
use async reduce instead of eachOfSeries
no duplicate logging + returning error
smallCamelCase for non-constructors
fix indentations
use callbacks instead of promises.
use
pull.through
instead ofpull.drain
so response isn't completely held in memory before respondinguse
switch
since there are too many conditions to checkuse templating engine. (still in discussion, no clear decision yet. Let me know when you guys decide)
internal
cat
with pull streams for efficiency. (outside the scope of this feature. but a very cool idea that I think we should have)Please Let me know if there are any other changes required. Thanks for your help 👍