-
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start with streams * fix JSON decoder * save * Update multipart_parser.js * use streams API in the multipart example * use sreaing api end does not return errors, use 'error' event instead write does not return length anymore * use the new multipartparser which is a stream * revert, add todo * emit error via recommended stream way * octet parser is passtrough * querystringparser is a stream * Update incoming_form.js * Dummy parser is a stream * formatting * listen for errors earlier * decouple, don't self check internals * use existing var * display name of failing test * chore: tweaks Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: merge with latest master Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: switch lib/ to src/ in tests Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: comment failing test, fix ti soon Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: make tests passing; ignore workarounds fixture Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: proper ignore; use tap reporter; Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: some formatting happens... Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> * chore: add to changelog Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com> Co-authored-by: Charlike Mike Reagent <ceo@tunnckocore.com>
- Loading branch information
1 parent
a26cdac
commit 19c252a
Showing
23 changed files
with
516 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ const defaultOptions = { | |
hash: false, | ||
multiples: false, | ||
}; | ||
|
||
exports.defaultOptions = defaultOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { Transform } = require('stream'); | ||
|
||
|
||
class DummyParser extends Transform { | ||
constructor(incomingForm) { | ||
super(); | ||
this.incomingForm = incomingForm; | ||
} | ||
|
||
_flush(callback) { | ||
this.incomingForm.ended = true; | ||
this.incomingForm._maybeEnd(); | ||
callback(); | ||
} | ||
} | ||
|
||
|
||
exports.DummyParser = DummyParser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.