-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
fix: call underlying implementation properly #183
Open
fernandolguevara
wants to merge
32
commits into
expressjs:master
Choose a base branch
from
fernandolguevara:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f4a997e
fix: call underlying implementation properly
fernandolguevara 3ad026f
test(response): test response write with cb
fernandolguevara 03361ec
test(response.write): fix test expect
fernandolguevara d76b3cb
fix(response.write): call underlying implementation properly
fernandolguevara 4653825
test(response.write): should have Content-Encoding header
fernandolguevara 2440598
fix(response.write): handle optional arguments
fernandolguevara 2991c82
fix(response.write): handle end(cb)
fernandolguevara 2b3369c
refactor(response-proxy): match nodejs behavior
fernandolguevara 3493e8c
test(compression): avoid arrow fn
fernandolguevara 50ca417
test(compression): add ERR_STREAM_ALREADY_FINISHED
fernandolguevara e87ca6b
fix(package): add missing dep
fernandolguevara 0ec6742
Merge branch 'master' into master
fernandolguevara 48c7ad6
fix(package): format
fernandolguevara 1abb056
fix(package): use sinon 4.5.0 target
fernandolguevara 6d20bec
Merge branch 'master' of github.com:expressjs/compression
fernandolguevara ee0c68c
refactor(lib): remove assert-is-uint8array dependency
fernandolguevara b96d7ac
fix(package): remove semver
fernandolguevara 0736a7f
fix(package): typo in test script
fernandolguevara 27c391f
use sinon 3.3.0
fernandolguevara 96bccad
remove sinon
fernandolguevara bd4ff2b
remove deconstruct
fernandolguevara 50aa251
listen error event
fernandolguevara 1ecf4da
fix res.write proxy
fernandolguevara 088b23c
emit stream error on res
fernandolguevara 3c69597
fix node 0.8/0.10/0.12 issues
fernandolguevara 5ed9a90
fix lint error
fernandolguevara 8d9fb6c
remove console.log
fernandolguevara 17e6933
fix(test): add code coverage
fernandolguevara 68ee980
fix: ask for runtime version once
fernandolguevara 696e58f
chore(ci):added new node versions
fernandolguevara 3a98b98
chore(ci): bring back node 8/9
fernandolguevara b89ebed
Merge pull request #1 from fernandolguevara/add-node-versions
fernandolguevara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
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.
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 feel like this solution is quite hacky and has a high likelihood of breaking in a future Node.js. we really should try to think on a better solution for this than creating a response object and trying to fake a socket object just to get an error. 🤔
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.
we don't have access to the node internal errors... newer runtime versions add new ones, that's the main reason for this hack
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.
Yes, I understand, but the Node.js project seems to be agressive is breaking projects who are "using the api wrong" even though citgm tells them it is broken, at lesst in the https components. Probably should check if this module it is citgm...
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.
Looks like this module is not included it citgm, so really cannot use a hack like this without some blessing from node.js... is this needed if we drop some node.js versions?