Skip to content

Tags: MaxMood96/nock

Tags

v13.1.1

Toggle v13.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(types): allow readonly arrays for data matcher in types (nock#2215)

v13.1.0

Toggle v13.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: node 16 compatibility (nock#2199)

v13.0.11

Toggle v13.0.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(interceptor): don't require leading slash if Scope has a base pat…

…hname (nock#2168)

v13.0.10

Toggle v13.0.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(recorder): don't automatically resume the response (nock#2160)

v13.0.9

Toggle v13.0.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(playback): consistently check for `destroyed` attribute (nock#2152)

Node, as of 14.1, started migrating the Client Request terminology from
`aborted` to `destroyed`. In order to supported our current Node version
support, 10.x+, we need to check both flags. Nock was already doing this
in the router, but not during playback.

v13.0.8

Toggle v13.0.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

v13.0.7

Toggle v13.0.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(recorder): escape single quotes in path of default output (nock#2137

)

Because the default output of the recorder uses single quotes, any such
quotes in the path would generate invalid Javascript.

v13.0.6

Toggle v13.0.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(intercept): handle global flags during regexp matching (nock#2135)

When matching via a regexp instance, consistently test the entire target string.
Sets the `lastIndex` to zero for cases where the `global` flag is set and the
regexp instance has been tested previously.

fixes: nock#2134

v13.0.5

Toggle v13.0.5's commit message

Verified

This commit was signed with the committer’s verified signature.
mastermatt Matt R. Wilson
fix(overrider): allow calling empty `req.end` multiple times

Node source showing this is expected behavior:
https://github.com/nodejs/node/blob/39a7f7663e8f70fc774105d8fa41b8e4cc69149f/lib/_http_outgoing.js#L816

Two tests were added, one for the regression itself, and one to fix coverage
for a block that lost coverage when the bug was patched.

v13.0.4

Toggle v13.0.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Parallel requests on same Interceptor are exposed correctly in r…

…eply functions (nock#2056)

Fixes regression created in nock#2033.
Reply functions get access to the current request via the Interceptor,
which acts as the context during the function executions.
The previous change, incorrectly moved the line where the request was attached
to the Interceptor up in the flow and out of the same microtask that calls the
reply functions. Causing requests in parallel to lose the reference to the correct request.