npm nock 13.0.0-beta.4
v13.0.0-beta.4

latest releases: 14.0.0-beta.16, 13.5.6, 14.0.0-beta.15...
4 years ago

13.0.0-beta.4 (2020-05-02)

Features

BREAKING CHANGES

  • socketDelay has been removed. Use delayConnection instead.
  • delay, delayConnection, and delayBody are now setters instead of additive.
    example:
nock('http://example.com')
  .get('/')
  .delay(1)
  .delay({ head: 2, body: 3 })
  .delayConnection(4)
  .delayBody(5)
  .delayBody(6)
  .reply()

Previously, the connection would have been delayed by 7 and the body delayed by 14.
Now, the connection will be delayed by 4 and the body delayed by 6.

Don't miss a new nock release

NewReleases is sending notifications on new releases.