Tags: sabrinaluo/nock
Tags
fix: Restore behavior of Interceptor.filteringPath (nock#1543) Calling `filteringPath` on the intercept instance was broken as the transform fn set on the scope had the wrong name. Proxying to the Scope’s method allows for the regex version to work too. The bulk of the changed lines come from moving the tests to their appropriate file since the real logic acts on the Scope. Found when looking at Uncovered lines in coveralls.
feat: Add `conditionally()` (nock#1488) I am building a test framework which depends on nock and to support concurrency, I need to be able shutoff certain scopes (to prevent cross-pollination) when running tests concurrently.
fix: Fix `.matchHeader()` with `allowUnmocked` (nock#1480) - Move header checks into `match()`. - Rename internal method `matchIndependentOfBody()` to `matchAddress()`
fix(intercept): Better error message when options is falsy (nock#1440)
chore(package): update lockfile package-lock.json
fix(socket): When Socket#setTimeout gets a callback, should still emit Ref nock#1404
fix: throw error when leading slash is not present in path (nock#1391) Given nock#1391 (comment), we decided to make nock raise an error whenever the user forgets to add a leading slash into the intercepted path, instead of adding it itself.
refactor(request_overrider): Remove dead code - `response.headers` was added in Node v0.1.5 and `response.rawHeaders` in v0.11.6. They are truthy. - `_headers` was deprecated, and replaced with `getHeader()`, `getHeaders()`, and `setHeader()`: https://nodejs.org/api/deprecations.html#deprecations_dep0066_outgoingmessage_headers_outgoingmessage_headernames
PreviousNext