Bugfix/snyk fix june 2026 - #33
Open
daniellmorrisGP wants to merge 10 commits into
Open
Conversation
…pm-package Make so we can directly use the npm package from this repo
…llback Add server close callback
When a request timed out the 408 was sent, but the outbound provider promise kept running. If it later resolved or rejected, the .then()/.catch() handlers tried to call res.send() on an already-sent response, throwing ERR_HTTP_HEADERS_SENT with no handler — causing a fatal unhandledRejection. Both handlers now check res.headersSent and bail out with an error log instead of attempting to write to the closed response. Also removes simple-mock as a dependency (was incorrectly in dependencies rather than devDependencies) and replaces its single use with an inline spy.
- Use named request export from chai-http v5 (chai.request no longer attached via plugin) - Replace chai.request(url) with chaiRequest.execute(url) - Remove user-agent header from expected headers (superagent v10 no longer sends it)
semantic-release had no .releaserc or CI workflows configured. ts-node was superseded by tsx, already configured in .mocharc.json. Removes 443 packages and reduces audit vulnerabilities from 10 to 5.
Bugfix/timeout issue
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix snyk issues